CN113489906B - 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 PDF

Info

Publication number
CN113489906B
CN113489906B CN202110797784.5A CN202110797784A CN113489906B CN 113489906 B CN113489906 B CN 113489906B CN 202110797784 A CN202110797784 A CN 202110797784A CN 113489906 B CN113489906 B CN 113489906B
Authority
CN
China
Prior art keywords
coordinate
touch
difference value
picture
point difference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110797784.5A
Other languages
Chinese (zh)
Other versions
CN113489906A (en
Inventor
张宇铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Celar Automation Equipment Co ltd
Original Assignee
Changsha Celar Automation Equipment 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 Changsha Celar Automation Equipment Co ltd filed Critical Changsha Celar Automation Equipment Co ltd
Priority to CN202110797784.5A priority Critical patent/CN113489906B/en
Publication of CN113489906A publication Critical patent/CN113489906A/en
Application granted granted Critical
Publication of CN113489906B publication Critical patent/CN113489906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/62Control of parameters via user interfaces
    • 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/67Focus control based on electronic image sensor signals
    • 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

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

Method and device for controlling shooting equipment, computer equipment and storage medium
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 refers to 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, in the conventional technology, if a mouse is used to realize control, the problem of inconvenient operation exists, and if a rocker is used to control, the problem of increased hardware cost exists, for example, when the mouse is used in tower crane monitoring, the mouse is used in a cab to control, the problem of inconvenient operation exists, and if the rocker is used to 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 foregoing, it is desirable 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 target display picture center point 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.
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 to control 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 storing a computer program and a processor implementing the following steps when the computer program is executed:
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.
According to the method, the device, the computer equipment and the storage medium for controlling the shooting equipment, the first touch coordinate and the second touch coordinate are obtained through 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 center point of the target display picture is determined according to the first touch coordinate, the current display picture is moved until the center point corresponding to the current display picture reaches the coordinate of the center 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, and in the whole process, the zooming is controlled through the first touch coordinate and the second touch coordinate obtained through touching and sliding.
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 construction 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 this embodiment is described as applying the method to a shooting system integrated with a control module, it is understood that the method may also be applied to a control platform, which is connected to the shooting device and controls the shooting device to perform shooting jobs. 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.
The zooming refers to making the shot object look closer or farther, and includes both zooming in and zooming out, wherein the zooming in can make the shot object be observed more closely, and the 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 central point coordinate of a target display picture 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 central point coordinate of the target display picture according to the central point coordinate of the target display picture and the central point corresponding to the current display picture, and the central point corresponding to the current display picture is moved to the central point coordinate of the target display picture 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.
According to the method for controlling the shooting equipment, the first touch coordinate and the second touch coordinate are obtained through 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 center point of the target display picture is determined according to the first touch coordinate, the current display picture is moved until the center point corresponding to the current display picture reaches the coordinate of the center 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, and in the whole process, the zooming is controlled through the first touch coordinate and the second touch coordinate obtained through touching and sliding.
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 smaller 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 the 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 rotation is completed, and obtain a real-time display picture according to the rotation acquisition picture.
Furthermore, 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 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 finger slides on the corresponding touch screen, the rotating speed of the shooting system is higher, and when the finger slides on the corresponding touch screen, the rotating speed of the shooting system is lower. 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 collection picture can be obtained after the rotation is completed, and a real-time display picture can be obtained according to the rotation collection 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 coordinate point differences 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 the 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, and 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. And when the absolute value of the X1-X2 is smaller than the absolute value of the Y1-Y2 and the absolute value of the Y1-Y2 is larger than the trigger rotation threshold, determining that the specific rotation direction is upward rotation. And when the absolute value of X1-X2 is smaller than the absolute value of Y1-Y2 and the absolute value of Y2-Y1 is larger than the trigger rotation threshold, determining that the specific rotation direction is 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, determining that the specific rotation direction is leftward rotation, and when the absolute value of X1-X2 is greater than the absolute value of Y1-Y2 and X2-X1 is greater than the trigger rotation threshold, determining that the specific rotation direction is rightward rotation, wherein the trigger rotation threshold is a trigger condition for generating a rotation instruction and can be set automatically 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 picture corresponding to the touch screen, and determines a new center point of the display picture, that is, a target display picture center point, at this time, the first touch coordinate includes two coordinate points (X1, Y1) and (X2, Y2), the terminal calculates a coordinate center point coordinate between the two coordinate points, and uses the coordinate center point coordinate as the target display picture center point coordinate. For example, the coordinates (X, Y) of the center point of the coordinates are calculated in a manner of X = (X1 + X2)/2, 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 screen until the center point corresponding to the current display screen reaches the center point coordinate of the target display screen includes:
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 pixels and the rotation angles refers to a corresponding relationship between a unit pixel distance in a picture shot by the shooting system and the rotation angles of the shooting system, namely, each pixel corresponds to how many rotation angles, and the corresponding relationship between the picture pixels and the rotation angles can be obtained through a pre-test.
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 a pixel point in the current display picture and a pixel point in a picture pixel, namely a unit pixel point in the current display picture corresponds to a plurality of pixel points in the picture pixel.
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 coordinates and the second touch coordinates 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 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, zooming out the shot picture.
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, when the control mode is zoom, the shooting system can determine a specific zoom mode by 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 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 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 zoom trigger condition, the shooting system can enlarge a shooting picture, when any coaxial coordinate point difference value existing in the second coordinate point difference value is not greater than the corresponding coordinate point difference value in the first coordinate point difference value and the coaxial coordinate point difference value reaches the preset zoom trigger condition, the shooting system can reduce the shooting picture, and the specific zoom mode can reduce 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 point in the first touch coordinate may be (X1, Y1) and (X2, Y2), the coordinate information of the coordinate point in the second touch coordinate may be (X3, Y3) and (X4, Y4), and the photographing system may determine the specific zoom mode by calculating a first coordinate point difference (X2-X1 and Y2-Y1) between different coordinate points in the first touch coordinate and calculating a second coordinate point difference (X4-X3, Y4-Y3) between different coordinate points in the second touch coordinate, and comparing coaxial coordinate point differences (X2-X1 and X4-X3, Y2-Y1, and Y4-Y3) corresponding to the same coordinate axis in the first coordinate difference and the second coordinate point difference.
Further, the process of determining the specific zooming manner may specifically be: and when X4-X3 is larger than X2-X1 and the difference value between X4-X3 and X2-X1 reaches a preset zooming trigger condition, or Y4-Y3 is larger 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-up, and zooming up the shot picture. And when the X4-X3 is not more than X2-X1 and the difference value between the X4-X3 and the X2-X1 reaches a preset zooming trigger condition, or the Y4-Y3 is not more than 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-out, and zooming out the shot 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 method comprises the steps that a control platform monitors touch operation on a display screen in real time, when the touch operation on the display screen is monitored, the touch operation is responded, a first touch coordinate and a second touch coordinate corresponding to the touch operation on the display screen by a user are obtained, when the control mode of a shooting device is zooming is determined according to the first touch coordinate and the second touch coordinate, a coordinate center point between different coordinate points in the first touch coordinate is calculated, a target display picture center point coordinate is obtained, a center point corresponding to a current display picture and a picture pixel and rotation angle corresponding relation are obtained, wherein the picture pixel and rotation angle corresponding relation is the picture pixel of the picture collected by the shooting device and the rotation angle corresponding relation of the shooting device, an offset pixel point is determined according to the center point corresponding to the current display picture and the target display picture center point coordinate, the to-be-rotated angle of the shooting device is determined according to-be-rotated angle rotating instructions, angle rotating instructions are output to the shooting device to carry out angle rotation according to-be-rotated angle, the current display picture is moved until the current display picture reaches the target display picture coordinate, the first touch coordinate and the second touch coordinate are output to the shooting device to carry out zooming display picture collected and displayed on the real-time, and the shooting device, and zooming display picture is obtained.
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 a first touch coordinate, calculating a second coordinate point difference value between different coordinate points in a 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, outputting a picture enlarging instruction to the shooting equipment to control the shooting equipment to enlarge a shot picture when any coaxial coordinate point difference value exists in the second coordinate point difference value and 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 trigger condition, and outputting a picture reducing instruction to the shooting equipment to control the shooting equipment to reduce the shot picture when any coaxial coordinate point difference value exists in the second coordinate point difference value and 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 the preset zooming trigger condition.
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 a dome camera needs to be controlled, a user can operate a touch screen on a 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 device 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 device 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 device, a zooming instruction is output according to the first touch coordinate and the second touch coordinate, the shooting device is controlled to zoom, a zooming collection picture output after zooming of the shooting device is received, and a real-time display picture is obtained according to the zooming collection 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 limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. 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 frame until a center point corresponding to the current display frame reaches a center point coordinate of the target display frame, and perform zooming according to the first touch coordinate and the second touch coordinate;
and the display module 408 is configured to obtain the zoom collecting image after zooming, and obtain a real-time display image according to the zoom collecting image.
According to the device for controlling the shooting equipment, the first touch coordinate and the second touch coordinate are obtained through 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 center point of the target display picture is determined according to the first touch coordinate, the current display picture is moved until the center point corresponding to the current display picture reaches the coordinate of the center 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, and in the whole process, the zooming is controlled through the first touch coordinate and the second touch coordinate obtained through touching and sliding.
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 an 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, so as to obtain a target display 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 of 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 a 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 having a computer program stored therein and a processor that when executing the computer program 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 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 a 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 target display picture center point coordinate.
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, on which a computer program is stored 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 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, acquiring 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 a 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 target display picture center point coordinate.
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.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure 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 specific and detailed, but not to be understood 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 application 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;
acquiring a zooming acquisition picture after zooming, and acquiring a real-time display picture according to the zooming acquisition picture;
the 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, wherein the first coordinate point difference value and the second coordinate point difference value comprise a difference value of a first coordinate axis direction and a second coordinate axis direction;
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, zooming out the shot 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 determining the control mode as a rotational mode when the number of coordinate points in the first touch coordinate and the number of coordinate points in the second touch coordinate are less than two 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 according to 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 offset pixel points according to the center point corresponding to the current display picture and the center point coordinates 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. 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;
the display module is used for acquiring a zooming acquisition picture after zooming and obtaining a real-time display picture according to the zooming acquisition picture;
the control module is further used for 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, the first coordinate point difference value and the second coordinate point difference value comprise a difference value of a first coordinate axis direction and a second coordinate axis direction, comparing 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, amplifying a shot picture when any coaxial coordinate point difference value in the second coordinate point difference value is larger than a coaxial coordinate point difference value in the first coordinate point difference value and reaches a preset zoom trigger condition, and reducing the shot picture when any coaxial coordinate point difference value in the second coordinate point difference value is not larger than a coaxial coordinate point difference value in the first coordinate point difference value and reaches the preset zoom trigger condition.
8. The device of claim 7, wherein the processing module is further configured to determine the control mode as zoom when both the number of coordinate points in the first touch coordinate and the number of coordinate points in the second touch coordinate are two, and to determine the control mode as rotation when both the number of coordinate points in the first touch coordinate and the number of coordinate points in the second touch coordinate are less than two.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 6 when executing the computer program.
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 according to any one of claims 1 to 6.
CN202110797784.5A 2021-07-14 2021-07-14 Method and device for controlling shooting equipment, computer equipment and storage medium Active CN113489906B (en)

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 CN113489906A (en) 2021-10-08
CN113489906B true 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007240964A (en) * 2006-03-09 2007-09-20 Casio Comput Co Ltd Display device
JP2013218573A (en) * 2012-04-10 2013-10-24 Sharp Corp Display device and method of controlling display device
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

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7469381B2 (en) * 2007-01-07 2008-12-23 Apple Inc. List scrolling and document translation, scaling, and rotation on a touch-screen display
KR100830467B1 (en) * 2006-07-13 2008-05-20 엘지전자 주식회사 A video device having a touch panel and a method of performing a zoom function in the video device
JP2009176114A (en) * 2008-01-25 2009-08-06 Mitsubishi Electric Corp Touch panel device and user interface device
US8723988B2 (en) * 2009-07-17 2014-05-13 Sony Corporation Using a touch sensitive display to control magnification and capture of digital images by an electronic device
CN101763194A (en) * 2009-12-15 2010-06-30 鸿富锦精密工业(深圳)有限公司 Method and electronic device for realizing zooming of display content on touch pad
JP2011217284A (en) * 2010-04-01 2011-10-27 Olympus Imaging Corp Image pickup device
CN102163108B (en) * 2011-04-26 2013-07-10 广东威创视讯科技股份有限公司 Method and device for identifying multiple touch points
JP5772802B2 (en) * 2012-11-29 2015-09-02 コニカミノルタ株式会社 Information processing apparatus, information processing apparatus control method, and information processing apparatus control program
JP6465625B2 (en) * 2014-10-10 2019-02-06 キヤノン株式会社 Control device, control method therefor, and program
CN106254765B (en) * 2016-07-19 2019-04-12 Oppo广东移动通信有限公司 Zoom processing method and device for double cameras and terminal equipment
CN107241549A (en) * 2017-06-16 2017-10-10 广东欧珀移动通信有限公司 The imaging method and imaging device of dual camera
CN107506133B (en) * 2017-08-24 2020-09-18 歌尔股份有限公司 Operation track response method and system of projection touch system
CN110113525B (en) * 2019-04-18 2021-01-05 惠州Tcl移动通信有限公司 Shooting preview method and device, storage medium and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007240964A (en) * 2006-03-09 2007-09-20 Casio Comput Co Ltd Display device
JP2013218573A (en) * 2012-04-10 2013-10-24 Sharp Corp Display device and method of controlling display device
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
移动终端静电力触觉再现与交互;王庆龙;《中国博士学位论文全文数据库(电子期刊)信息科技辑》;20210315;第1-32,68-101页 *

Also Published As

Publication number Publication date
CN113489906A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
US6452628B2 (en) Camera control and display device using graphical user interface
US8094204B2 (en) Image movement based device control method, program, and apparatus
US9841944B2 (en) Method for processing information and electronic apparatus
US11402992B2 (en) Control method, electronic device and non-transitory computer readable recording medium device
JP6618644B2 (en) Control device, control method, and program
CN111010512A (en) Display control method and electronic equipment
JP6312046B2 (en) Image processing system, image processing method, and program
JPWO2013118373A1 (en) Image processing apparatus, image processing method, and program
CN111696216A (en) Three-dimensional augmented reality panorama fusion method and system
CN104267931B (en) A kind of information processing method and electronic equipment
CN107592458B (en) Shooting method and mobile terminal
US9906710B2 (en) Camera pan-tilt-zoom (PTZ) control apparatus
WO2024012268A1 (en) Virtual operation method and apparatus, electronic device, and readable storage medium
CN111246181A (en) Robot monitoring method, system, equipment and storage medium
CN112422812B (en) Image processing method, mobile terminal and storage medium
US20130127984A1 (en) System and Method for Fast Tracking and Visualisation of Video and Augmenting Content for Mobile Devices
CN104123062B (en) A kind of information processing method and electronic equipment
CN116301489A (en) Processing method, system and related device for displaying complete map boundary
US10606457B2 (en) Shake event detection system
CN111583329A (en) Augmented reality glasses display method and device, electronic equipment and storage medium
CN113489906B (en) Method and device for controlling shooting equipment, computer equipment and storage medium
CN103870115B (en) Information processing method and electronic equipment
CN113873159B (en) Image processing method, device and electronic equipment
CN117455989A (en) Indoor scene SLAM tracking method and device, head-mounted equipment and medium
CN104571791A (en) Information processing method and electronic equipment

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