CN113489906A - Method and device for controlling shooting equipment, computer equipment and storage medium - Google Patents
Method and device for controlling shooting equipment, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113489906A CN113489906A CN202110797784.5A CN202110797784A CN113489906A CN 113489906 A CN113489906 A CN 113489906A CN 202110797784 A CN202110797784 A CN 202110797784A CN 113489906 A CN113489906 A CN 113489906A
- Authority
- CN
- China
- Prior art keywords
- coordinate
- touch
- picture
- display picture
- touch coordinate
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/695—Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application relates to a method and a device for controlling a shooting device, a computer device and a storage medium. The method comprises the following steps: responding to touch operation, and acquiring a first touch coordinate and a second touch coordinate; when the control mode is zoom according to the first touch coordinate and the second touch coordinate, determining the coordinate of the center point of the target display picture according to the first touch coordinate; moving the current display picture until the center point corresponding to the current display picture reaches the center point coordinate of the target display picture, and zooming according to the first touch coordinate and the second touch coordinate; and acquiring a zooming acquisition picture after zooming, and acquiring a real-time display picture according to the zooming acquisition picture. The method can solve the problem of inconvenient control operation by using the mouse, and in addition, the cost can be saved because no hardware device is additionally arranged.
Description
Technical Field
The present application relates to the field of shooting device control technologies, and in particular, to a method and an apparatus for controlling a shooting device, a computer device, and a storage medium.
Background
With the development of internet technology, a network-integrated camera appears, which refers to an integrated camera that can be controlled by using a network, wherein the integrated camera is a camera with a built-in lens and capable of automatically focusing. For example, the integrated camera may specifically be a dome camera.
In the traditional technology, when the network integrated camera is controlled, the rotation and zooming of the network integrated camera are mainly realized through a mouse or a rocker, wherein the control is realized through the mouse by clicking functional keys for controlling the up-down, left-right movement, zooming and movement speed change displayed on a screen interface by using the mouse, and the control is realized through swinging the rocker left and right by using the rocker.
However, the conventional technology has the problem of inconvenient operation if the mouse is used for realizing control, and has the problem of increased hardware cost if the rocker is used for control, for example, when the mouse is used for monitoring a tower crane, the mouse is used for controlling in a cab to have the problem of inconvenient operation, and if the rocker is used for control, the rocker needs to be arranged in the cab, so that the problem of increased hardware cost exists.
Disclosure of Invention
In view of the above, there is a need to provide a method, an apparatus, a computer device and a storage medium for controlling a photographing device, which can be operated conveniently and cost-effectively.
A method of controlling a photographing apparatus, the method comprising:
responding to touch operation, and acquiring a first touch coordinate and a second touch coordinate;
when the control mode is zoom according to the first touch coordinate and the second touch coordinate, determining the coordinate of the center point of the target display picture according to the first touch coordinate;
moving the current display picture until the center point corresponding to the current display picture reaches the center point coordinate of the target display picture, and zooming according to the first touch coordinate and the second touch coordinate;
and acquiring a zooming acquisition picture after zooming, and acquiring a real-time display picture according to the zooming acquisition picture.
In one embodiment, further comprising:
when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both two, determining that the control mode is zooming;
and when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both less than two, determining that the control mode is rotation.
In one embodiment, when the number of coordinate points in the first touch coordinate and the number of coordinate points in the second touch coordinate are both less than two, after determining that the control manner is rotation, the method further includes:
rotating according to the first touch coordinate and the second touch coordinate;
and acquiring a rotated acquisition picture, and acquiring a real-time display picture according to the rotated acquisition picture.
In one embodiment, rotating according to the first touch coordinate and the second touch coordinate includes:
calculating a coordinate point difference value between coordinate points corresponding to the same coordinate axis in the first touch coordinate and the second touch coordinate;
and comparing coordinate point difference values corresponding to different coordinate axes, and rotating according to a comparison result.
In one embodiment, determining the coordinates of the center point of the target display screen according to the first touch coordinates comprises:
and calculating a coordinate center point between different coordinate points in the first touch coordinate to obtain a coordinate of the center point of the target display picture.
In one embodiment, moving the current display until the center point corresponding to the current display reaches the center point coordinates of the target display comprises:
acquiring a central point corresponding to a current display picture and a corresponding relation between picture pixels and a rotation angle;
determining an offset pixel point according to a center point corresponding to the current display picture and the coordinates of the center point of the target display picture;
determining a to-be-rotated angle corresponding to a central point corresponding to the current display picture according to the offset pixel point, the corresponding relation between the picture pixel and the rotation angle and a preset pixel transformation coefficient, wherein the pixel transformation coefficient is used for expressing the corresponding relation between the pixel point in the current display picture and the pixel point in the picture pixel;
and rotating according to the angle to be rotated, and moving the current display picture.
In one embodiment, zooming according to the first touch coordinate and the second touch coordinate comprises:
calculating a first coordinate point difference value between different coordinate points in the first touch coordinate, and calculating a second coordinate point difference value between different coordinate points in the second touch coordinate;
comparing coaxial coordinate point difference values corresponding to the same coordinate axis in the first coordinate point difference value and the second coordinate point difference value;
when any coaxial coordinate point difference value in the second coordinate point difference value is larger than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zooming triggering condition, amplifying a shot picture;
and when any coaxial coordinate point difference value in the second coordinate point difference value is not larger than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zooming triggering condition, reducing the shot picture.
An apparatus for controlling a photographing device, the apparatus comprising:
the response module is used for responding to touch operation and acquiring a first touch coordinate and a second touch coordinate;
the processing module is used for determining the coordinate of the center point of the target display picture according to the first touch coordinate when the control mode is zoom according to the first touch coordinate and the second touch coordinate;
the control module is used for moving the current display picture until the center point corresponding to the current display picture reaches the center point coordinate of the target display picture, and zooming according to the first touch coordinate and the second touch coordinate;
and the display module is used for acquiring the zooming acquisition picture after zooming and obtaining a real-time display picture according to the zooming acquisition picture.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
responding to touch operation, and acquiring a first touch coordinate and a second touch coordinate;
when the control mode is zoom according to the first touch coordinate and the second touch coordinate, determining the coordinate of the center point of the target display picture according to the first touch coordinate;
moving the current display picture until the center point corresponding to the current display picture reaches the center point coordinate of the target display picture, and zooming according to the first touch coordinate and the second touch coordinate;
and acquiring a zooming acquisition picture after zooming, and acquiring a real-time display picture according to the zooming acquisition picture.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
responding to touch operation, and acquiring a first touch coordinate and a second touch coordinate;
when the control mode is zoom according to the first touch coordinate and the second touch coordinate, determining the coordinate of the center point of the target display picture according to the first touch coordinate;
moving the current display picture until the center point corresponding to the current display picture reaches the center point coordinate of the target display picture, and zooming according to the first touch coordinate and the second touch coordinate;
and acquiring a zooming acquisition picture after zooming, and acquiring a real-time display picture according to the zooming acquisition picture.
The method, the device, the computer equipment and the storage medium for controlling the shooting equipment obtain the first touch coordinate and the second touch coordinate by responding to touch operation, when the control mode is zooming is determined according to the first touch coordinate and the second touch coordinate, the coordinate of the central point of the target display picture is determined according to the first touch coordinate, the current display picture is moved until the central point corresponding to the current display picture reaches the coordinate of the central point of the target display picture, zooming is carried out according to the first touch coordinate and the second touch coordinate, a zooming acquisition picture after zooming is obtained, a real-time display picture is obtained according to the zooming acquisition picture, the whole process is realized by touching and sliding the obtained first touch coordinate and the second touch coordinate, the problem that the mouse is used for controlling operation in the prior art is inconvenient is solved, in addition, and because no hardware device is additionally arranged, the cost can be saved.
Drawings
Fig. 1 is a flowchart illustrating a method of controlling a photographing apparatus according to an embodiment;
fig. 2 is an application scenario diagram of a method of controlling a photographing apparatus in one embodiment;
fig. 3 is a flowchart illustrating a method of controlling a photographing apparatus in another embodiment;
FIG. 4 is a block diagram showing the configuration of an apparatus for controlling a photographing device in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, a method for controlling a shooting device is provided, and the embodiment is described as being applied to a shooting system integrated with a control module, and it is understood that the method can also be applied to a control platform, and the control platform is connected with the shooting device and controls the shooting device to carry out shooting operation. In this embodiment, the method includes the steps of:
and 102, responding to touch operation, and acquiring a first touch coordinate and a second touch coordinate.
Specifically, the shooting system listens for a touch operation in real time, where the touch operation refers to an operation of performing touch on a touch screen corresponding to the shooting system, and the touch screen may specifically be a display screen, a virtual screen, or the like, and this embodiment is not specifically limited here. For example, the touch operation may specifically refer to a single finger of the user touching the corresponding touch screen. For another example, the touch operation may specifically refer to a user touching the corresponding touch screen with two fingers. The first touch coordinate is a coordinate acquired when the touch operation is intercepted. The second touch coordinate is determined after the user performs the touch operation for the first time and slides on the corresponding touch screen. For example, when a user clicks any screen position on the corresponding touch screen with a finger and slides a distance on the corresponding touch screen with the finger, the first touch coordinate represents the screen position clicked by the user, and the second touch coordinate represents the screen position where the finger stays after the user slides a distance from the screen position clicked by the user.
Further, when the touch operation is intercepted, the shooting system acquires a first touch coordinate of the user clicking the corresponding touch screen at the moment, continues intercepting the sliding of the user finger on the corresponding touch screen, and acquires a second touch coordinate of the finger staying at the moment when the finger sliding is suspended. For example, when the user continues to listen to the sliding of the finger on the corresponding touch screen, the shooting system may obtain the dwell time of the finger of the user at each position on the corresponding touch screen, and when the dwell time reaches a preset dwell time threshold, the shooting system may position the corresponding dwell position as the second touch coordinate, where the preset dwell time threshold may be set as needed.
And 104, when the control mode is zoom according to the first touch coordinate and the second touch coordinate, determining the coordinate of the center point of the target display picture according to the first touch coordinate.
Zooming refers to making a shot object look closer or farther, zooming includes both zooming in and zooming out, zooming in can make the shot object view closer, and zooming out can capture a wider space. The target display picture is a picture to be displayed on the corresponding touch screen, the target display picture corresponds to a picture collected and output by the shooting system, and the coordinate of the center point of the target display picture is the coordinate of the center point of the target display picture.
Specifically, after the first touch coordinate and the second touch coordinate are obtained, the shooting system determines the corresponding control mode according to the number of the coordinate points in the first touch coordinate and the second touch coordinate, and when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both two, that is, when the user operates the corresponding touch screen by using two fingers, the shooting system determines that the control mode is zooming. After the control mode is determined to be zooming, the shooting system needs to determine the center point coordinate of the target display picture, which corresponds to the center point of the area that the user wants to zoom (zoom in or zoom out), according to the first touch coordinate.
And 106, moving the current display picture until the center point corresponding to the current display picture reaches the center point coordinate of the target display picture, and zooming according to the first touch coordinate and the second touch coordinate.
Specifically, a current display picture is displayed on a touch screen corresponding to the shooting system, after a target display picture central point coordinate is determined, the shooting system acquires a central point corresponding to the current display picture, and determines how to rotate the shooting system if the central point corresponding to the current display picture is moved to the target display picture central point coordinate according to the target display picture central point coordinate and the central point corresponding to the current display picture, and the central point corresponding to the current display picture is moved to the target display picture central point coordinate by performing corresponding rotation.
Specifically, the shooting system determines whether the specific zooming mode is zooming-in or zooming-out according to the coordinate point in the first touch coordinate and the coordinate point in the second touch coordinate, further determines a zooming multiple according to the coordinate point after determining the specific zooming mode, and zooms according to the specific zooming mode and the zooming multiple. When the zoom factor is determined according to the coordinate point, the shooting system determines the coordinate distance according to the coordinate point, and determines the zoom factor according to the corresponding relationship between the preset coordinate distance and the unit zoom factor, wherein the corresponding relationship between the coordinate distance and the unit zoom factor can be set automatically as required, for example, the corresponding relationship between the coordinate distance and the unit zoom factor can be specifically amplified by 1 time when every 20 pixels are added.
And step 108, acquiring the zoomed acquisition picture, and acquiring a real-time display picture according to the zoomed acquisition picture.
The real-time display frame refers to a display frame displayed on the corresponding touch screen in real time.
Specifically, after zooming, the shooting system obtains a zoomed acquisition image, and outputs the zoomed acquisition image to the corresponding touch screen, so as to display a real-time display image on the corresponding touch screen.
The method for controlling the shooting equipment acquires the first touch coordinate and the second touch coordinate by responding to the touch operation, determines the coordinate of the central point of the target display picture according to the first touch coordinate when the control mode is zooming according to the first touch coordinate and the second touch coordinate, moves the current display picture until the central point corresponding to the current display picture reaches the coordinate of the central point of the target display picture, zooms according to the first touch coordinate and the second touch coordinate, acquires the zoomed acquisition picture, acquires the real-time display picture according to the zoomed acquisition picture, and realizes the zooming control by touching and sliding the first touch coordinate and the second touch coordinate obtained by the real-time display picture in the whole process, thereby solving the problem of inconvenient control operation by using a mouse in the prior art, in addition, no additional hardware device is needed, the cost can be saved.
In one embodiment, further comprising:
when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both two, determining that the control mode is zooming;
and when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both less than two, determining that the control mode is rotation.
Specifically, according to the operation habit, the correspondence between the touch screen mode and the control mode is preset, and when the touch screen mode is one-finger touch, the control mode can be regarded as rotation, and when the touch screen mode is two-finger touch, the control mode can be regarded as zooming. The shooting system can determine whether the touch screen mode of the user is single-finger touch or double-finger touch through the number of coordinate points in the first touch coordinate and the second touch coordinate, when the number of the coordinate points in the first touch coordinate and the second touch coordinate is less than two, the touch screen mode is represented as single-finger touch, the shooting system can determine that the control mode is rotation, when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are two, the touch screen mode is represented as double-finger touch, and the shooting system can determine that the control mode is zooming.
In this embodiment, the determination of the control mode can be realized according to the number of coordinate points in the first touch coordinate and the number of coordinate points in the second touch coordinate.
In one embodiment, when the number of coordinate points in the first touch coordinate and the number of coordinate points in the second touch coordinate are both less than two, after determining that the control manner is rotation, the method further includes:
rotating according to the first touch coordinate and the second touch coordinate;
and acquiring a rotated acquisition picture, and acquiring a real-time display picture according to the rotated acquisition picture.
Specifically, after the control mode is determined to be rotation, the shooting system can determine whether the specific rotation direction is leftward rotation, rightward rotation, upward rotation or downward rotation according to the first touch coordinate and the coordinate point in the second touch coordinate, rotate according to the specific rotation mode, acquire a rotated rotation acquisition picture after the rotation is completed, and obtain a real-time display picture according to the rotation acquisition picture.
Further, when multiple rotations need to be performed, a user can continuously slide on the corresponding touch screen by using a single finger, when the shooting system monitors a touch operation, new first touch coordinates and second touch coordinates can be obtained, and a new specific rotation direction is determined again according to the new first touch coordinates and the new second touch coordinates. When the shooting system rotates for many times, the speed of the shooting system rotating is in positive correlation with the speed of the finger sliding on the corresponding touch screen, the faster the finger slides on the corresponding touch screen, the faster the shooting system rotates, and the slower the finger slides on the corresponding touch screen, the slower the shooting system rotates. In this embodiment, the single rotation angle at which the photographing system rotates can be set by itself as required.
In this embodiment, by rotating according to the first touch coordinate and the second touch coordinate, a rotated rotation acquisition picture can be obtained after the rotation is completed, and a real-time display picture can be obtained according to the rotation acquisition picture.
In one embodiment, rotating according to the first touch coordinate and the second touch coordinate includes:
calculating a coordinate point difference value between coordinate points corresponding to the same coordinate axis in the first touch coordinate and the second touch coordinate;
and comparing coordinate point difference values corresponding to different coordinate axes, and rotating according to a comparison result.
Specifically, according to a preset coordinate system and a coordinate origin, the shooting system can determine coordinate information of a coordinate point in a first touch coordinate and coordinate information of a coordinate point in a second touch coordinate, and further can determine a specific rotation direction by calculating a coordinate point difference between coordinate points corresponding to the same coordinate axis in the first touch coordinate and the second touch coordinate and comparing the coordinate point difference corresponding to different coordinate points, and rotate according to the specific rotation direction.
For example, the preset coordinate system may be an XOY coordinate system, the origin of coordinates may be any point on the touch screen, the coordinate information of the coordinate point in the first touch coordinate may be (X1, Y1), the coordinate information of the coordinate point in the second touch coordinate may be (X2, Y2), and the photographing system may determine a specific rotation direction by calculating coordinate point differences (i.e., X1-X2, Y1-Y2) between coordinate points (X1 and X2, Y1 and Y2) corresponding to the same coordinate axis, and comparing the coordinate point differences (i.e., X1-X2 and Y1-Y2) corresponding to different coordinate axes, so as to rotate according to the specific rotation direction. Note that, for the convenience of calculation, an absolute value may be calculated here when the coordinate point difference is calculated.
Further, the specific rotation direction in this embodiment is exemplified to determine the left rotation direction and the right rotation direction with respect to the corresponding touch screen, and the end of the corresponding touch screen close to the ground is taken as the downward rotation direction, and the end of the corresponding touch screen far from the ground is taken as the upward rotation direction. When the absolute values of X1-X2 are less than the absolute values of Y1-Y2 and the absolute values of Y1-Y2 are greater than the trigger rotation threshold, the specific rotation direction is determined to be upward rotation. When the absolute value of X1-X2 is less than the absolute value of Y1-Y2 and the absolute value of Y2-Y1 is greater than the trigger rotation threshold, the specific rotation direction is determined to be downward rotation. And when the absolute value of X1-X2 is greater than the absolute value of Y1-Y2 and X1-X2 is greater than a trigger rotation threshold value, determining that the specific rotation direction is a left rotation, and when the absolute value of X1-X2 is greater than the absolute value of Y1-Y2 and X2-X1 is greater than a trigger rotation threshold value, determining that the specific rotation direction is a right rotation, wherein the trigger rotation threshold value is a trigger condition for generating a rotation instruction and can be set by self as required.
In this embodiment, by calculating a coordinate point difference between coordinate points corresponding to the same coordinate axis in the first touch coordinate and the second touch coordinate, coordinate point differences corresponding to different coordinate axes are compared, and rotation can be performed according to the comparison result.
In one embodiment, determining the coordinates of the center point of the target display screen according to the first touch coordinates comprises:
and calculating a coordinate center point between different coordinate points in the first touch coordinate to obtain a coordinate of the center point of the target display picture.
Specifically, after the control mode is determined to be zoom, the shooting system needs to adjust a center point of a display screen corresponding to the touch screen, and determine a new center point of the display screen, that is, a target display screen center point, at this time, the first touch coordinate includes two coordinate points (X1, Y1) and (X2, Y2), and the terminal calculates a coordinate center point coordinate between the two coordinate points, and uses the coordinate center point coordinate as the target display screen center point coordinate. For example, the coordinate center point coordinate (X, Y) is calculated by X ═ X1+ X2)/2 and Y ═ Y1+ Y2)/2.
In this embodiment, the coordinate of the center point of the target display screen can be obtained according to the coordinate center point by calculating the coordinate center point between different coordinate points in the first touch coordinate.
In one embodiment, moving the current display until the center point corresponding to the current display reaches the center point coordinates of the target display comprises:
acquiring a central point corresponding to a current display picture and a corresponding relation between picture pixels and a rotation angle;
determining an offset pixel point according to a center point corresponding to the current display picture and the coordinates of the center point of the target display picture;
determining a to-be-rotated angle corresponding to a central point corresponding to the current display picture according to the offset pixel point, the corresponding relation between the picture pixel and the rotation angle and a preset pixel transformation coefficient, wherein the pixel transformation coefficient is used for expressing the corresponding relation between the pixel point in the current display picture and the pixel point in the picture pixel;
and rotating according to the angle to be rotated, and moving the current display picture.
The corresponding relationship between the picture pixel and the rotation angle refers to a corresponding relationship between a unit pixel distance in a picture shot by a shooting system and the rotation angle of the shooting system, that is, each pixel corresponds to how many rotation angles, and the corresponding relationship between the picture pixel and the rotation angle can be obtained through a pre-test, for example, the corresponding relationship between the picture pixel and the rotation angle can be obtained through testing how many degrees the picture shot by the shooting system needs to rotate from the leftmost side to the rightmost side and how many degrees the picture needs to rotate from the uppermost side to the lowermost side, and then according to the rotation angle obtained through the test and the pixel size corresponding to the picture shot by the shooting system.
The offset pixel points are used for representing pixel point distances between a center point corresponding to the current display picture and a center point of the target display picture, and the pixel point distances refer to the number of pixel points which are different. The pixel transformation coefficient is used for expressing the corresponding relation between the pixel points in the current display picture and the pixel points in the picture pixels, namely the unit pixel points in the current display picture correspond to the pixel points in the picture pixels.
Specifically, the shooting system can obtain a central point corresponding to a current display picture and a corresponding relation between picture pixels and a rotation angle, determine offset pixel points between the central point corresponding to the current display picture and a central point of a target display picture according to the central point corresponding to the current display picture and coordinates of the central point of the target display picture, calculate corresponding offset pixel points in the picture pixels according to the offset pixel points and a preset pixel transformation coefficient, finally calculate a to-be-rotated angle according to the corresponding offset pixel points and the corresponding relation between the picture pixels and the rotation angle, rotate according to the to-be-rotated angle, and move the current display picture until the central point corresponding to the current display picture reaches the coordinates of the central point of the target display picture.
In this embodiment, the offset pixel point is determined according to the center point corresponding to the current display picture and the coordinates of the center point of the target display picture by acquiring the center point corresponding to the current display picture and the corresponding relationship between the picture pixel and the rotation angle, and the to-be-rotated angle corresponding to the center point corresponding to the current display picture can be determined according to the offset pixel point, the corresponding relationship between the picture pixel and the rotation angle, and the preset pixel transformation coefficient, so that the to-be-rotated angle is rotated according to the to-be-rotated angle.
In one embodiment, zooming according to the first touch coordinate and the second touch coordinate comprises:
calculating a first coordinate point difference value between different coordinate points in the first touch coordinate, and calculating a second coordinate point difference value between different coordinate points in the second touch coordinate;
comparing coaxial coordinate point difference values corresponding to the same coordinate axis in the first coordinate point difference value and the second coordinate point difference value;
when any coaxial coordinate point difference value in the second coordinate point difference value is larger than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zooming triggering condition, amplifying a shot picture;
and when any coaxial coordinate point difference value in the second coordinate point difference value is not larger than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zooming triggering condition, reducing the shot picture.
Specifically, according to a preset coordinate system and a coordinate origin, the photographing system can determine coordinate information of a coordinate point in a first touch coordinate and coordinate information of a coordinate point in a second touch coordinate, when the control mode is determined to be zooming, the photographing system indicates that a user operates the corresponding touch screen by using two fingers, the photographing system can determine a specific zooming mode by calculating a first coordinate point difference value between different coordinate points in the first touch coordinate, calculating a second coordinate point difference value between different coordinate points in the second touch coordinate, and comparing the first coordinate point difference value and a coaxial coordinate point difference value corresponding to the same coordinate axis in the second coordinate point difference value, when any coaxial coordinate point difference value exists in the second coordinate point difference value, the coaxial coordinate point difference value is greater than the corresponding coaxial coordinate point difference value in the first coordinate point difference value, and the coaxial coordinate point difference value reaches a preset zooming trigger condition, and when any coaxial coordinate point difference value in the second coordinate point difference value is not greater than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zooming triggering condition, the shooting system reduces the shooting picture.
For example, the preset coordinate system may be an XOY coordinate system, the origin of coordinates may be any point on the touch screen, the coordinate information of the coordinate points in the first touch coordinates may be (X1, Y1) and (X2, Y2), the coordinate information of the coordinate points in the second touch coordinates may be (X3, Y3) and (X4, Y4), the photographing system calculates a first coordinate point difference value between different coordinate points in the first touch coordinates (X2-X1 and Y2-Y1), and calculating a second coordinate point difference value (X4-X3, Y4-Y3) between different coordinate points in the second touch coordinate, and comparing coaxial coordinate point difference values (X2-X1 and X4-X3, Y2-Y1 and Y4-Y3) corresponding to the same coordinate axis in the first coordinate point difference value and the second coordinate point difference value, thereby determining a specific zoom mode.
Further, the process of determining the specific zooming manner may specifically be: and when the X4-X3 is larger than the X2-X1 and the difference value between the X4-X3 and the X2-X1 reaches the preset zooming trigger condition, or the Y4-Y3 is larger than the Y2-Y1 and the difference value between the Y4-Y3 and the Y2-Y1 reaches the preset zooming trigger condition, determining that the specific zooming mode is zooming-up, and zooming-up the shot picture. And when the X4-X3 is not more than X2-X1 and the difference value between X4-X3 and X2-X1 reaches the preset zooming trigger condition, or Y4-Y3 is not more than Y2-Y1 and the difference value between Y4-Y3 and Y2-Y1 reaches the preset zooming trigger condition, determining that the specific zooming mode is zooming out, and zooming out the shooting picture.
In this embodiment, by calculating a first coordinate point difference between different coordinate points in the first touch coordinate and calculating a second coordinate point difference between different coordinate points in the second touch coordinate, the coaxial coordinate point difference corresponding to the same coordinate axis in the first coordinate point difference and the second coordinate point difference is compared, and zooming can be performed according to the comparison result.
In one embodiment, as shown in fig. 2, an application scenario is provided to describe the method for controlling the shooting device, in this embodiment, the method for controlling the shooting device is applied to a control platform 202, the control platform 202 is connected to a shooting device 204 to control the shooting device to perform shooting, and the control platform 202 includes a display 206, which may be a liquid crystal display or an electronic ink display. The control platform monitors touch operation on the display screen in real time, responds to the touch operation when the touch operation on the display screen is monitored, acquires a first touch coordinate and a second touch coordinate corresponding to the touch operation on the display screen by a user, calculates a coordinate center point between different coordinate points in the first touch coordinate when the control mode of the shooting equipment is determined to be zooming according to the first touch coordinate and the second touch coordinate, acquires a target display picture center point coordinate, acquires a center point corresponding to a current display picture and a picture pixel and rotation angle corresponding relation, wherein the picture pixel and rotation angle corresponding relation is a picture pixel of a picture acquired by the shooting equipment and rotation angle corresponding relation of the shooting equipment, determines an offset pixel point according to the center point corresponding to the current display picture and the target display picture center point coordinate, and determines the offset pixel point according to the offset pixel point, The method comprises the steps of determining a to-be-rotated angle of a shooting device according to the corresponding relation of picture pixels and the rotated angle and a preset pixel transformation coefficient, outputting an angle rotation instruction to the shooting device according to the to-be-rotated angle to perform angle rotation, moving a current display picture until a central point corresponding to the current display picture reaches a central point coordinate of a target display picture, outputting a zooming instruction to the shooting device according to a first touch coordinate and a second touch coordinate, controlling the shooting device to zoom, obtaining a zooming acquisition picture acquired after the shooting device zooms, obtaining a real-time display picture according to the zooming acquisition picture, and displaying the real-time display picture on a display screen.
Wherein, according to first touch coordinate and second touch coordinate output zoom instruction to shooting equipment, control shooting equipment zooms and includes: calculating a first coordinate point difference value between different coordinate points in the first touch coordinate, calculating a second coordinate point difference value between different coordinate points in the second touch coordinate, comparing the first coordinate point difference value with a coaxial coordinate point difference value corresponding to the same coordinate axis in the second coordinate point difference value, when any coaxial coordinate point difference value in the second coordinate point difference value is larger than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zooming triggering condition, outputting a picture amplifying instruction to the shooting equipment to control the shooting equipment to amplify the shot picture, when any coaxial coordinate point difference value in the second coordinate point difference value is not larger than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zooming triggering condition, outputting a picture zooming-out instruction to the shooting equipment, and controlling the shooting equipment to zoom out the shot picture.
When the control mode of the shooting equipment is determined to be rotation according to the first touch coordinate and the second touch coordinate, calculating a coordinate point difference value between coordinate points corresponding to the same coordinate axis in the first touch coordinate and the second touch coordinate, comparing the coordinate point difference values corresponding to different coordinate axes, outputting a rotation instruction to the shooting equipment according to a comparison result, controlling the shooting equipment to rotate, acquiring a rotation acquisition picture acquired after the shooting equipment rotates, acquiring a real-time display picture according to the rotation acquisition picture, and displaying the real-time display picture on a display screen.
In one embodiment, as shown in fig. 3, an application scenario of the method of controlling a photographing apparatus of the present application is provided, and the method of controlling a photographing apparatus of the present application is applicable to control of a dome camera using an onvif protocol.
When the dome camera needs to be controlled, a user can operate a touch screen on the terminal, when a screen touch event is intercepted, the terminal can obtain a first touch coordinate and a second touch coordinate (namely a touch screen (touch point coordinate)), when the number of coordinate points in the first touch coordinate and the number of coordinate points in the second touch coordinate are both two, the control mode of the shooting equipment is determined to be zooming, the coordinate of the central point of a target display picture is determined according to the first touch coordinate, the shooting equipment is controlled to rotate according to the coordinate of the central point of the target display picture, a current display picture is moved until the central point corresponding to the current display picture reaches the coordinate of the central point of the target display picture, the current display picture is collected and output by the shooting equipment, a zooming instruction is output according to the first touch coordinate and the second touch coordinate, and the shooting equipment is controlled to zoom, and receiving a zooming acquisition picture output by the shooting equipment after zooming, and obtaining a real-time display picture according to the zooming acquisition picture. When the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both smaller than two, the control mode of the shooting device is determined to be rotation, a rotation instruction is output according to the first touch coordinate and the second touch coordinate, the shooting device is controlled to rotate, a rotation acquisition picture output after the shooting device rotates is received, and a real-time display picture is obtained according to the rotation acquisition picture (namely, the touch points are converted into specific commands through corresponding algorithms, and the spherical camera is controlled corresponding to onvif protocol commands).
It should be understood that, although the steps in the flowcharts related to the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in each flowchart related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In one embodiment, as shown in fig. 4, there is provided an apparatus for controlling a photographing device, including: a response module 402, a processing module 404, a control module 406, and a display module 408, wherein:
a response module 402, configured to respond to a touch operation and obtain a first touch coordinate and a second touch coordinate;
the processing module 404 is configured to determine coordinates of a center point of the target display image according to the first touch coordinate when the control mode is zoom according to the first touch coordinate and the second touch coordinate;
the control module 406 is configured to move the current display picture until a center point corresponding to the current display picture reaches a center point coordinate of the target display picture, and zoom according to the first touch coordinate and the second touch coordinate;
and the display module 408 is configured to obtain a zoom acquisition picture after zooming, and obtain a real-time display picture according to the zoom acquisition picture.
The device for controlling the shooting equipment acquires the first touch coordinate and the second touch coordinate by responding to touch operation, determines the coordinate of the central point of the target display picture according to the first touch coordinate when the control mode is zooming according to the first touch coordinate and the second touch coordinate, moves the current display picture until the central point corresponding to the current display picture reaches the coordinate of the central point of the target display picture, zooms according to the first touch coordinate and the second touch coordinate, acquires a zoomed acquisition picture after zooming, acquires a real-time display picture according to the zoomed acquisition picture, and realizes zooming control by touching and sliding the first touch coordinate and the second touch coordinate obtained by touching and sliding in the whole process, thereby solving the problem of inconvenient control operation by using a mouse in the prior art, in addition, no additional hardware device is required, the cost can be saved.
In one embodiment, the processing module is further configured to determine that the control manner is zooming when the number of coordinate points in the first touch coordinate and the number of coordinate points in the second touch coordinate are both two, and determine that the control manner is rotating when the number of coordinate points in the first touch coordinate and the number of coordinate points in the second touch coordinate are both less than two.
In one embodiment, the control module is further configured to rotate according to the first touch coordinate and the second touch coordinate, acquire a rotated rotation acquisition picture, and obtain a real-time display picture according to the rotation acquisition picture.
In one embodiment, the control module is further configured to calculate a coordinate point difference between coordinate points corresponding to the same coordinate axis in the first touch coordinate and the second touch coordinate, compare the coordinate point differences corresponding to different coordinate axes, and rotate according to the comparison result.
In an embodiment, the processing module is further configured to calculate a coordinate center point between different coordinate points in the first touch coordinate, and obtain a target display screen center point coordinate.
In an embodiment, the control module is further configured to obtain a center point corresponding to the current display picture and a corresponding relationship between a picture pixel and a rotation angle, determine an offset pixel point according to the center point corresponding to the current display picture and a coordinate of the center point of the target display picture, determine a to-be-rotated angle corresponding to the center point corresponding to the current display picture according to the offset pixel point, the corresponding relationship between the picture pixel and the rotation angle, and a preset pixel transformation coefficient, where the pixel transformation coefficient is used to represent the corresponding relationship between the pixel point in the current display picture and the pixel point in the picture pixel, rotate according to the to-be-rotated angle, and move the current display picture.
In one embodiment, the control module is further configured to calculate a first coordinate point difference value between different coordinate points in the first touch coordinate, calculate a second coordinate point difference value between different coordinate points in the second touch coordinate, compare a coaxial coordinate point difference value corresponding to the same coordinate axis in the first coordinate point difference value and the second coordinate point difference value, perform zoom-in when any coaxial coordinate point difference value exists in the second coordinate point difference value and is greater than a corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zoom trigger condition, perform zoom-out when any coaxial coordinate point difference value exists in the second coordinate point difference value and is not greater than a corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches the preset zoom trigger condition.
For specific embodiments of the apparatus for controlling a shooting device, reference may be made to the above embodiments of the method for controlling a shooting device, and details are not described here. The respective modules in the above-described apparatus for controlling a photographing device may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of controlling a photographing apparatus. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: responding to touch operation, acquiring a first touch coordinate and a second touch coordinate, when the control mode is zoom according to the first touch coordinate and the second touch coordinate, determining a center point coordinate of a target display picture according to the first touch coordinate, moving the current display picture until a center point corresponding to the current display picture reaches the center point coordinate of the target display picture, zooming according to the first touch coordinate and the second touch coordinate, acquiring a zoomed acquisition picture, and acquiring a real-time display picture according to the zoomed acquisition picture.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both two, determining that the control mode is zooming, and when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both less than two, determining that the control mode is rotation.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and rotating according to the first touch coordinate and the second touch coordinate to obtain a rotated rotation acquisition picture, and obtaining a real-time display picture according to the rotation acquisition picture.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and calculating a coordinate point difference value between coordinate points corresponding to the same coordinate axis in the first touch coordinate and the second touch coordinate, comparing the coordinate point difference values corresponding to different coordinate axes, and rotating according to the comparison result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and calculating a coordinate center point between different coordinate points in the first touch coordinate to obtain a coordinate of the center point of the target display picture.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the method comprises the steps of obtaining a central point corresponding to a current display picture and a corresponding relation between picture pixels and a rotation angle, determining an offset pixel point according to the central point corresponding to the current display picture and a central point coordinate of a target display picture, determining a to-be-rotated angle corresponding to the central point corresponding to the current display picture according to the offset pixel point, the corresponding relation between the picture pixels and the rotation angle and a preset pixel transformation coefficient, wherein the pixel transformation coefficient is used for representing the corresponding relation between the pixel points in the current display picture and the pixel points in the picture pixels, rotating according to the to-be-rotated angle, and moving the current display picture.
In one embodiment, the processor, when executing the computer program, further performs the steps of: calculating a first coordinate point difference value between different coordinate points in the first touch coordinate, calculating a second coordinate point difference value between different coordinate points in the second touch coordinate, comparing the first coordinate point difference value with a coaxial coordinate point difference value corresponding to the same coordinate axis in the second coordinate point difference value, amplifying a shot picture when any coaxial coordinate point difference value exists in the second coordinate point difference value and is greater than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zooming trigger condition, and reducing the shot picture when any coaxial coordinate point difference value exists in the second coordinate point difference value and is not greater than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches the preset zooming trigger condition.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: responding to touch operation, acquiring a first touch coordinate and a second touch coordinate, when the control mode is zoom according to the first touch coordinate and the second touch coordinate, determining a center point coordinate of a target display picture according to the first touch coordinate, moving the current display picture until a center point corresponding to the current display picture reaches the center point coordinate of the target display picture, zooming according to the first touch coordinate and the second touch coordinate, acquiring a zoomed acquisition picture, and acquiring a real-time display picture according to the zoomed acquisition picture.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both two, determining that the control mode is zooming, and when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both less than two, determining that the control mode is rotation.
In one embodiment, the computer program when executed by the processor further performs the steps of: and rotating according to the first touch coordinate and the second touch coordinate to obtain a rotated rotation acquisition picture, and obtaining a real-time display picture according to the rotation acquisition picture.
In one embodiment, the computer program when executed by the processor further performs the steps of: and calculating a coordinate point difference value between coordinate points corresponding to the same coordinate axis in the first touch coordinate and the second touch coordinate, comparing the coordinate point difference values corresponding to different coordinate axes, and rotating according to the comparison result.
In one embodiment, the computer program when executed by the processor further performs the steps of: and calculating a coordinate center point between different coordinate points in the first touch coordinate to obtain a coordinate of the center point of the target display picture.
In one embodiment, the computer program when executed by the processor further performs the steps of: the method comprises the steps of obtaining a central point corresponding to a current display picture and a corresponding relation between picture pixels and a rotation angle, determining an offset pixel point according to the central point corresponding to the current display picture and a central point coordinate of a target display picture, determining a to-be-rotated angle corresponding to the central point corresponding to the current display picture according to the offset pixel point, the corresponding relation between the picture pixels and the rotation angle and a preset pixel transformation coefficient, wherein the pixel transformation coefficient is used for representing the corresponding relation between the pixel points in the current display picture and the pixel points in the picture pixels, rotating according to the to-be-rotated angle, and moving the current display picture.
In one embodiment, the computer program when executed by the processor further performs the steps of: calculating a first coordinate point difference value between different coordinate points in the first touch coordinate, calculating a second coordinate point difference value between different coordinate points in the second touch coordinate, comparing the first coordinate point difference value with a coaxial coordinate point difference value corresponding to the same coordinate axis in the second coordinate point difference value, amplifying a shot picture when any coaxial coordinate point difference value exists in the second coordinate point difference value and is greater than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zooming trigger condition, and reducing the shot picture when any coaxial coordinate point difference value exists in the second coordinate point difference value and is not greater than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches the preset zooming trigger condition.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method of controlling a photographing apparatus, the method comprising:
responding to touch operation, and acquiring a first touch coordinate and a second touch coordinate;
when the control mode is zoom according to the first touch coordinate and the second touch coordinate, determining the coordinate of the center point of the target display picture according to the first touch coordinate;
moving the current display picture until the center point corresponding to the current display picture reaches the center point coordinate of the target display picture, and zooming according to the first touch coordinate and the second touch coordinate;
and acquiring a zooming acquisition picture after zooming, and acquiring a real-time display picture according to the zooming acquisition picture.
2. The method of claim 1, further comprising:
when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both two, determining that the control mode is zooming;
and when the number of the coordinate points in the first touch coordinate and the number of the coordinate points in the second touch coordinate are both less than two, determining that the control mode is rotation.
3. The method of claim 2, wherein when the number of coordinate points in the first touch coordinate and the number of coordinate points in the second touch coordinate are both less than two, determining the control manner as the rotation further comprises:
rotating according to the first touch coordinate and the second touch coordinate;
and acquiring a rotated acquisition picture, and acquiring a real-time display picture according to the rotated acquisition picture.
4. The method of claim 3, wherein the rotating according to the first touch coordinate and the second touch coordinate comprises:
calculating a coordinate point difference value between coordinate points corresponding to the same coordinate axis in the first touch coordinate and the second touch coordinate;
and comparing coordinate point difference values corresponding to different coordinate axes, and rotating according to a comparison result.
5. The method of claim 1, wherein determining target display center point coordinates according to the first touch coordinates comprises:
and calculating a coordinate center point between different coordinate points in the first touch coordinate to obtain a target display picture center point coordinate.
6. The method of claim 1, wherein the moving the current display until the center point corresponding to the current display reaches the center point coordinates of the target display comprises:
acquiring a central point corresponding to a current display picture and a corresponding relation between picture pixels and a rotation angle;
determining an offset pixel point according to the center point corresponding to the current display picture and the coordinates of the center point of the target display picture;
determining a to-be-rotated angle corresponding to a central point corresponding to the current display picture according to the offset pixel points, the corresponding relation between the picture pixels and the rotation angle and a preset pixel transformation coefficient, wherein the pixel transformation coefficient is used for representing the corresponding relation between the pixel points in the current display picture and the pixel points in the picture pixels;
and rotating according to the angle to be rotated, and moving the current display picture.
7. The method of claim 1, wherein zooming according to the first touch coordinate and the second touch coordinate comprises:
calculating a first coordinate point difference value between different coordinate points in the first touch coordinate, and calculating a second coordinate point difference value between different coordinate points in the second touch coordinate;
comparing the coaxial coordinate point difference corresponding to the same coordinate axis in the first coordinate point difference and the second coordinate point difference;
when any coaxial coordinate point difference value in the second coordinate point difference value is larger than a corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zooming triggering condition, amplifying a shot picture;
and when any coaxial coordinate point difference value in the second coordinate point difference value is not larger than the corresponding coaxial coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches a preset zooming triggering condition, reducing the shot picture.
8. An apparatus for controlling a photographing device, the apparatus comprising:
the response module is used for responding to touch operation and acquiring a first touch coordinate and a second touch coordinate;
the processing module is used for determining the coordinate of the center point of the target display picture according to the first touch coordinate when the control mode is zoom according to the first touch coordinate and the second touch coordinate;
the control module is used for moving a current display picture until a center point corresponding to the current display picture reaches the center point coordinate of the target display picture, and zooming according to the first touch coordinate and the second touch coordinate;
and the display module is used for acquiring the zooming acquisition picture after zooming and obtaining a real-time display picture according to the zooming acquisition picture.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110797784.5A CN113489906B (en) | 2021-07-14 | 2021-07-14 | Method and device for controlling shooting equipment, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110797784.5A CN113489906B (en) | 2021-07-14 | 2021-07-14 | Method and device for controlling shooting equipment, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113489906A true CN113489906A (en) | 2021-10-08 |
CN113489906B CN113489906B (en) | 2022-11-15 |
Family
ID=77939421
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110797784.5A Active CN113489906B (en) | 2021-07-14 | 2021-07-14 | Method and device for controlling shooting equipment, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113489906B (en) |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007240964A (en) * | 2006-03-09 | 2007-09-20 | Casio Comput Co Ltd | Display device |
US20090189877A1 (en) * | 2008-01-25 | 2009-07-30 | Washino Hiroyuki | Touch panel device and user interface device |
US20100002016A1 (en) * | 2006-07-13 | 2010-01-07 | Lg Electronics Inc. | Method of controlling touch panel display device and touch panel display device using the same |
US20110013049A1 (en) * | 2009-07-17 | 2011-01-20 | Sony Ericsson Mobile Communications Ab | Using a touch sensitive display to control magnification and capture of digital images by an electronic device |
US20110141145A1 (en) * | 2009-12-15 | 2011-06-16 | Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd | Electronic device and method capable of zooming images |
CN102163108A (en) * | 2011-04-26 | 2011-08-24 | 广东威创视讯科技股份有限公司 | Method and device for identifying multiple touch points |
JP2011217284A (en) * | 2010-04-01 | 2011-10-27 | Olympus Imaging Corp | Image pickup device |
CN102981727A (en) * | 2007-01-07 | 2013-03-20 | 苹果公司 | List scrolling and document translation, scaling, and rotation on a touch-screen display |
JP2013218573A (en) * | 2012-04-10 | 2013-10-24 | Sharp Corp | Display device and method of controlling display device |
US20140145991A1 (en) * | 2012-11-29 | 2014-05-29 | Konica Minolta, Inc. | Information processing apparatus installed with touch panel as user interface |
CN103902222A (en) * | 2014-03-27 | 2014-07-02 | 青岛海信移动通信技术股份有限公司 | Touch screen slide adjusting method, touch screen slide adjusting device and touch device |
JP2015102946A (en) * | 2013-11-22 | 2015-06-04 | キヤノン株式会社 | Information processing apparatus, control method of information processing apparatus, and program |
CN106254765A (en) * | 2016-07-19 | 2016-12-21 | 广东欧珀移动通信有限公司 | Zoom processing method, device and the terminal unit of dual camera |
CN107241549A (en) * | 2017-06-16 | 2017-10-10 | 广东欧珀移动通信有限公司 | The imaging method and imaging device of dual camera |
US20170310882A1 (en) * | 2014-10-10 | 2017-10-26 | Canon Kabushiki Kaisha | Control apparatus, method of controlling the same and program |
CN107506133A (en) * | 2017-08-24 | 2017-12-22 | 歌尔股份有限公司 | Project the operation trace response method and system of touch-control system |
CN110113525A (en) * | 2019-04-18 | 2019-08-09 | 惠州Tcl移动通信有限公司 | Shooting preview method, apparatus, storage medium and mobile terminal |
-
2021
- 2021-07-14 CN CN202110797784.5A patent/CN113489906B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007240964A (en) * | 2006-03-09 | 2007-09-20 | Casio Comput Co Ltd | Display device |
US20100002016A1 (en) * | 2006-07-13 | 2010-01-07 | Lg Electronics Inc. | Method of controlling touch panel display device and touch panel display device using the same |
CN102981727A (en) * | 2007-01-07 | 2013-03-20 | 苹果公司 | List scrolling and document translation, scaling, and rotation on a touch-screen display |
US20090189877A1 (en) * | 2008-01-25 | 2009-07-30 | Washino Hiroyuki | Touch panel device and user interface device |
US20110013049A1 (en) * | 2009-07-17 | 2011-01-20 | Sony Ericsson Mobile Communications Ab | Using a touch sensitive display to control magnification and capture of digital images by an electronic device |
US20110141145A1 (en) * | 2009-12-15 | 2011-06-16 | Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd | Electronic device and method capable of zooming images |
JP2011217284A (en) * | 2010-04-01 | 2011-10-27 | Olympus Imaging Corp | Image pickup device |
CN102163108A (en) * | 2011-04-26 | 2011-08-24 | 广东威创视讯科技股份有限公司 | Method and device for identifying multiple touch points |
JP2013218573A (en) * | 2012-04-10 | 2013-10-24 | Sharp Corp | Display device and method of controlling display device |
US20140145991A1 (en) * | 2012-11-29 | 2014-05-29 | Konica Minolta, Inc. | Information processing apparatus installed with touch panel as user interface |
JP2015102946A (en) * | 2013-11-22 | 2015-06-04 | キヤノン株式会社 | Information processing apparatus, control method of information processing apparatus, and program |
CN103902222A (en) * | 2014-03-27 | 2014-07-02 | 青岛海信移动通信技术股份有限公司 | Touch screen slide adjusting method, touch screen slide adjusting device and touch device |
US20170310882A1 (en) * | 2014-10-10 | 2017-10-26 | Canon Kabushiki Kaisha | Control apparatus, method of controlling the same and program |
CN106254765A (en) * | 2016-07-19 | 2016-12-21 | 广东欧珀移动通信有限公司 | Zoom processing method, device and the terminal unit of dual camera |
CN107241549A (en) * | 2017-06-16 | 2017-10-10 | 广东欧珀移动通信有限公司 | The imaging method and imaging device of dual camera |
CN107506133A (en) * | 2017-08-24 | 2017-12-22 | 歌尔股份有限公司 | Project the operation trace response method and system of touch-control system |
CN110113525A (en) * | 2019-04-18 | 2019-08-09 | 惠州Tcl移动通信有限公司 | Shooting preview method, apparatus, storage medium and mobile terminal |
Non-Patent Citations (1)
Title |
---|
王庆龙: "移动终端静电力触觉再现与交互", 《中国博士学位论文全文数据库(电子期刊)信息科技辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN113489906B (en) | 2022-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11402992B2 (en) | Control method, electronic device and non-transitory computer readable recording medium device | |
US20150121229A1 (en) | Method for Processing information and Electronic Apparatus | |
JP6312046B2 (en) | Image processing system, image processing method, and program | |
CN111010512A (en) | Display control method and electronic equipment | |
CN104272726A (en) | Display image formation device and display image formation method | |
JP2019062575A (en) | Control device, control method, and program | |
CN104267931B (en) | A kind of information processing method and electronic equipment | |
WO2024012268A1 (en) | Virtual operation method and apparatus, electronic device, and readable storage medium | |
CN107592458B (en) | Shooting method and mobile terminal | |
US9906710B2 (en) | Camera pan-tilt-zoom (PTZ) control apparatus | |
CN104123062B (en) | A kind of information processing method and electronic equipment | |
CN107194871B (en) | Image processing method and mobile terminal | |
CN112667139A (en) | Robot operation method, device, equipment and storage medium based on augmented reality | |
US8648916B2 (en) | Control of an image capturing device | |
CN116107531A (en) | Interface display method and device | |
CN103870115B (en) | Information processing method and electronic equipment | |
CN113489906B (en) | Method and device for controlling shooting equipment, computer equipment and storage medium | |
JP5266416B1 (en) | Test system and test program | |
CN111880660A (en) | Display screen control method and device, computer equipment and storage medium | |
CN111583329A (en) | Augmented reality glasses display method and device, electronic equipment and storage medium | |
CN117455989A (en) | Indoor scene SLAM tracking method and device, head-mounted equipment and medium | |
CN116244028A (en) | Interface display method and device and electronic equipment | |
CN104571791A (en) | Information processing method and electronic equipment | |
CN113873159A (en) | Image processing method and device and electronic equipment | |
JP5662787B2 (en) | Mobile terminal and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |