WO2017167279A1 - Image acquisition method, electronic device, and computer storage medium - Google Patents

Image acquisition method, electronic device, and computer storage medium Download PDF

Info

Publication number
WO2017167279A1
WO2017167279A1 PCT/CN2017/079026 CN2017079026W WO2017167279A1 WO 2017167279 A1 WO2017167279 A1 WO 2017167279A1 CN 2017079026 W CN2017079026 W CN 2017079026W WO 2017167279 A1 WO2017167279 A1 WO 2017167279A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
electronic device
control
image acquisition
driving
Prior art date
Application number
PCT/CN2017/079026
Other languages
French (fr)
Chinese (zh)
Inventor
孙晓路
陈子冲
Original Assignee
纳恩博(北京)科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 纳恩博(北京)科技有限公司 filed Critical 纳恩博(北京)科技有限公司
Publication of WO2017167279A1 publication Critical patent/WO2017167279A1/en

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/66Remote control of cameras or camera parts, e.g. by remote control devices

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to an image acquisition method, an electronic device, and a computer storage medium.
  • the embodiment of the present invention solves the technical problem that the operation is complicated when the user controls the robot to shoot in the prior art by providing an image acquisition method, an electronic device, and a computer storage medium.
  • an image acquisition method which is applied to an electronic device, the electronic device having an image acquisition device, and the image collection method includes:
  • the driving control instruction is used to instruct the electronic device to travel along a preset driving track
  • the device control strategy is obtained during the travel of the electronic device along the preset travel trajectory.
  • the preset driving track includes:
  • controlling the image acquisition device based on the obtained image acquisition device control strategy, and controlling the image collection device to perform image collection includes:
  • the current shooting direction of the image capturing device is adjusted to be the preset shooting direction during the driving of the electronic device along the preset driving track.
  • controlling the image acquisition device based on the obtained image acquisition device control strategy, and controlling the image collection device to perform image collection includes:
  • the image capturing device is controlled to perform image capturing based on the preset shooting time to obtain a video file.
  • an electronic device having an image capture device, the electronic device further comprising:
  • a first obtaining unit configured to obtain a driving control command, where the driving control command is used to instruct the electronic device to travel along a preset driving track
  • a first control unit configured to control the electronic device to travel along the preset driving track based on the driving control instruction
  • a second control unit configured to control the image acquisition device to perform image acquisition based on the obtained image capture device control strategy; wherein the image capture device control strategy is obtained before the electronic device travels along the preset travel track Or, the image capture device control strategy is obtained during the traveling of the electronic device along the preset travel trajectory.
  • the preset driving track includes:
  • the second control unit includes:
  • a first determining module configured to determine a preset shooting direction based on a shooting direction control instruction in the image capturing device control policy
  • An adjustment module configured to adjust the position during the driving of the electronic device along a preset driving trajectory
  • the current shooting direction of the image capturing device is the preset shooting direction.
  • the second control unit includes:
  • a second determining module configured to determine a preset shooting duration based on a shooting duration control command in the image capturing device control policy
  • a third determining module configured to determine a preset shooting distance based on a shooting distance control instruction in the image capturing device control policy
  • a fourth determining module configured to determine a traveling speed based on the preset shooting distance and the preset shooting time length
  • the control module is configured to control the image acquisition device to perform image acquisition based on the preset shooting duration during the driving of the electronic device along the preset driving track at the traveling speed, to obtain a video file.
  • a computer storage medium stores computer executable instructions configured to perform image acquisition according to an embodiment of the present invention. method.
  • the user may send a driving control instruction to the electronic device, so that the electronic device automatically travels along the preset driving track indicated by the driving control instruction, and the user does not need to intervene during the driving process, thereby simplifying the operation of the user.
  • the user can concentrate on controlling the image capturing device to perform shooting, which is beneficial to achieve a satisfactory shooting effect, and effectively solves the technical problem that the operation is complicated when the user controls the electronic device to shoot in the prior art.
  • a plurality of image acquisition device control strategies are provided, and the user may send any image acquisition device control strategy to the electronic device, so that the image acquisition device performs imaging according to the requirements in the image acquisition device control strategy. Easy to operate, it is conducive to achieve satisfactory results.
  • FIG. 1 is a flowchart of an image collection method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a straight travel track in an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a circular traveling track in an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a customized driving track in an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of an image collection method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural view of a self-balancing vehicle according to an embodiment of the present invention.
  • the embodiment of the present invention solves the technical problem that the operation is complicated when the user controls the robot to shoot in the prior art by providing an image acquisition method and an electronic device.
  • An image acquisition method is applied to an electronic device, the electronic device includes an image acquisition device, and the image acquisition method includes: obtaining a travel control command, the travel control command indicating a preset travel track; and based on the travel control Directing to control the electronic device to travel along the preset driving track; controlling the image capturing device to perform image acquisition based on the obtained image capturing device control strategy; wherein the image capturing device control strategy is along the electronic device
  • the preset driving track is obtained before the driving, or the image capturing device control strategy is obtained during the driving of the electronic device along the preset driving track.
  • the embodiment provides an image acquisition method, which is applied to an electronic device (for example, a ground robot), and the electronic device includes an image collection device (for example, a camera or a camera), as shown in FIG.
  • an electronic device for example, a ground robot
  • an image collection device for example, a camera or a camera
  • Step S101 Obtain a driving control command for instructing the electronic device to travel along a preset driving track.
  • the electronic device is connected to the control device by wire or wirelessly, and the electronic device and the control device can communicate with each other.
  • the user can control the electronic device to freely travel by controlling the device, and control the image capturing device on the electronic device to perform image capturing (for example, taking a picture or photographing), and at the same time, the image collecting device can be fixed on the electronic device through the pan/tilt, and the user can pass
  • the control device controls the pan/tilt rotation to change the shooting direction of the image capture device.
  • control device may be a device independent of the electronic device (for example: a smart phone, or a tablet computer, or a laptop computer, or a desktop computer, or a smart TV, or a smart key, etc.); or The control device can also be directly disposed on the electronic device as part of the electronic device.
  • the driving control command includes a preset driving track for controlling the electronic device to travel along the preset driving track, wherein the preset driving track may be: a straight driving track as shown in FIG. 2 . Track_1, or the circular travel track track_2 shown in Fig. 3, or the custom travel track track_3 as shown in Fig. 4, the custom travel track is freely defined by the user.
  • the user can select any driving track as the preset driving track on the control device.
  • the user selects the customized driving track, the user needs to manually draw the customized driving track on the touch screen of the control device.
  • Step S102 Control the electronic device to travel along the preset driving track based on the driving control instruction.
  • the VIO Vehicle Inertial Odometry
  • the VIO Vehicle Inertial Odometry
  • the PID Proportion Integration Differentiation
  • the preset driving path is automatically driven. During the automatic driving of the electronic device along the preset driving track, the user does not need to intervene again, which simplifies the user's operation, and the user can concentrate on controlling the image capturing device to perform shooting, which is beneficial to obtain a satisfactory shooting effect.
  • Step S103 Control the image acquisition device to perform image acquisition based on the obtained image acquisition device control strategy.
  • the image capture device control strategy may include some instructions for controlling the image capture device, such as a photographing instruction, or starting a recording instruction, or ending a recording instruction, and the like.
  • the image collection device control strategy may be obtained before performing step S102, or obtained during the execution of step S102.
  • the user can send an image capture device control strategy to the electronic device through the control device, so that the electronic device can control the image capture device to perform image acquisition based on the image capture device control strategy.
  • the user may send the image acquisition device control strategy to the electronic device through the control device before the electronic device travels along the preset driving track; the user may also send the electronic device to the electronic device through the control device while the electronic device is traveling along the preset driving track.
  • Image acquisition device control strategy may be used to send the image acquisition device control strategy.
  • step S103 is performed in the process of performing step S102, that is, in the process of driving the electronic device along the preset driving track, the image capturing device is controlled to perform image capturing based on the obtained image capturing device control strategy.
  • the user may send a driving control instruction to the electronic device, so that the electronic device automatically runs along the preset driving track indicated by the driving control instruction, and the user is in the automatic driving process along the preset driving path of the electronic device.
  • the user can concentrate on controlling the image acquisition device for shooting, which is beneficial to obtain satisfactory shooting results.
  • step S103 includes:
  • the image capturing device is controlled to end the imaging.
  • step S103 includes:
  • the preset shooting direction is determined based on the shooting direction control command in the image capturing device control strategy; and the current shooting direction of the image capturing device is adjusted to the preset shooting direction during the driving of the electronic device along the preset driving track.
  • the image capturing device control strategy may further include a shooting direction control instruction indicating a preset shooting direction, and the user may send an image including the shooting direction control instruction to the electronic device by using the control device.
  • Acquisition device control strategy After receiving the image acquisition device control strategy, the electronic device determines a preset shooting direction based on the shooting direction control command, and controls the pan/tilt rotation to adjust the current shooting direction of the image capturing device to the preset shooting direction.
  • the preset shooting direction may be: front A1, rear b1, left c1, and right d1.
  • the preset shooting direction may be: front A2, rear b2, left c2, and right d2.
  • the preset shooting direction may be: Front a3, rear b3, left c3, and right d3.
  • the shooting direction may also be set by the user to any direction, for example, displaying the preset driving track and the current position of the electronic device on the touch screen of the control device, and displaying a representation at the current position of the electronic device.
  • the icon of the image capture device the user can manually rotate the direction of the icon on the touch screen to set an arbitrary shooting direction.
  • step S103 includes:
  • Determining a preset shooting duration based on a shooting duration control command in the image capture device control strategy determining a preset shooting distance based on the shooting distance control command in the image capturing device control strategy; based on the preset shooting distance, and The preset shooting time is determined, and the driving speed is determined; during the driving of the electronic device at the driving speed along the preset driving track, the image capturing device is controlled to perform image capturing during the preset shooting time to obtain a video file.
  • the shooting distance may also be included in the image acquisition device control strategy.
  • a control command and a shooting duration control command the shooting distance control command instructing a preset shooting distance, the shooting duration control command indicating a preset shooting time, the user may send the shooting distance control instruction and the shooting duration to the electronic device through the control device
  • the image acquisition device control strategy of the control command may be included in the image acquisition device control strategy.
  • the duration ⁇ the driving speed” calculates the driving speed; further controls the electronic device to travel along the preset driving trajectory at the driving speed, and captures a video of a preset shooting duration.
  • the preset driving track is a straight traveling track
  • the preset shooting time is 30 seconds
  • the traveling speed is determined to be 0.5 m/s.
  • the control electronic device is 0.5 m/s. The speed travels along a straight line.
  • the image acquisition device is controlled to perform image acquisition for 30 seconds to obtain a 30 second video file.
  • the preset driving track is a circular driving track
  • the preset shooting time is 20 seconds
  • the traveling speed is determined to be 1 meter/second.
  • the control electronic device is 1 meter/ The speed of the second travels along the circular driving trajectory.
  • the image capturing device is controlled to perform image acquisition for 20 seconds to obtain a 20-second video file.
  • the traveling speed of the electronic device can be measured in real time by using the VIO technology, and the traveling speed of the electronic device is adjusted in time when the traveling speed of the electronic device is different from the calculated traveling speed.
  • the user can freely set any instruction in the image acquisition device control strategy on the control device (for example, a shooting instruction, a start recording instruction, an end recording instruction, a shooting direction control instruction, a shooting duration control instruction, The shooting distance control command, and the like, so that the electronic image device controls the image capturing device to perform shooting during the driving along the preset trajectory, and achieves a satisfactory shooting effect.
  • a shooting instruction for example, a shooting instruction, a start recording instruction, an end recording instruction, a shooting direction control instruction, a shooting duration control instruction, The shooting distance control command, and the like.
  • the image capture device control strategy may include any one or more of the above-mentioned photographing instruction, start recording instruction, end recording instruction, shooting direction control instruction, shooting duration control command, and shooting distance control command. instruction.
  • an embodiment of the present invention further provides an electronic device.
  • the electronic device has an image capturing device. As shown in FIG. 5, the electronic device further includes:
  • a first obtaining unit 201 configured to obtain a driving control instruction, where the driving control instruction is used to instruct the electronic device to travel along a preset driving track;
  • the first control unit 202 is configured to control the electronic device to travel along a preset driving track based on the driving control instruction;
  • the second control unit 203 is configured to control the image acquisition device to perform image acquisition based on the obtained image acquisition device control strategy; wherein the image acquisition device control strategy runs along the preset in the electronic device Obtained before the trajectory, or the image capture device control strategy is obtained during the travel of the electronic device along the preset travel trajectory.
  • the preset driving track includes:
  • the second control unit 203 includes:
  • a first determining module configured to determine a preset shooting direction based on a shooting direction control instruction in an image capture device control strategy
  • the adjustment module is configured to adjust a current shooting direction of the image capturing device to a preset shooting direction during the driving of the electronic device along the preset driving track.
  • the second control unit 203 includes:
  • a second determining module configured to determine a preset shooting duration based on a shooting duration control command in an image capture device control strategy
  • a third determining module configured to determine a preset shooting distance based on a shooting distance control instruction in an image capture device control strategy
  • a fourth determining module configured to determine a driving speed based on a preset shooting distance and a preset shooting time length
  • the control module is configured to control the image acquisition device to perform image acquisition based on the preset shooting duration during the driving of the electronic device along the preset driving trajectory at the traveling speed, to obtain a video file.
  • the electronic device that is used in this embodiment is an electronic device that is used in the image capturing method in the embodiment of the present invention. Therefore, those skilled in the art can understand the present embodiment based on the image capturing method introduced in the embodiment of the present invention.
  • the specific implementation of the electronic device and its various variations are not described in detail herein for how the electronic device implements the method in the embodiment of the present invention. As long as the electronic device used in the method for image acquisition in the embodiments of the present invention is implemented by those skilled in the art, it is within the scope of the present invention.
  • the user may send a driving control instruction to the electronic device, so that the electronic device automatically travels along the preset driving track indicated by the driving control instruction, and the user does not need to intervene during the driving process, thereby simplifying the operation of the user.
  • the user can concentrate on controlling the image capturing device to perform shooting, which is beneficial to achieve a satisfactory shooting effect, and effectively solves the technical problem that the operation is complicated when the user controls the electronic device to shoot in the prior art.
  • a plurality of image acquisition device control strategies are further provided, and the user may send any image acquisition device control strategy to the electronic device, so that the image acquisition device performs imaging according to the requirements in the image acquisition device control strategy. Easy to operate, it is conducive to achieve satisfactory shooting results fruit.
  • the embodiment provides an image acquisition method, which is applied to a self-balancing vehicle.
  • the self-balancing vehicle includes an image capturing device (for example, a camera or a camera).
  • the image collecting method includes :
  • Step S301 Obtain a driving control command for instructing the self-balancing vehicle to travel along a preset driving track.
  • the self-balancing vehicle mainly has two types of single wheel and two wheels, and its operation principle is mainly based on a basic principle called “Dynamic Stabilization", which utilizes the interior of the vehicle body.
  • the gyroscope and accelerometer are used to detect changes in the attitude of the car body, and the servo control system is used to accurately drive the motor to adjust accordingly to maintain the balance of the system.
  • the self-balancing vehicle includes a power system that can drive a self-balancing vehicle on the road (eg straight, turn, reverse, curve, etc.).
  • the self-balancing vehicle is connected to a control device by wire or wirelessly, and the self-balancing vehicle and the control device can communicate.
  • the user can control the self-balancing vehicle to drive freely, and control the image acquisition device on the self-balancing vehicle to perform image acquisition (for example, photographing or photographing).
  • the image capturing device can be fixed on the self-balancing vehicle through the pan/tilt.
  • the user can control the pan/tilt rotation by controlling the device to change the shooting direction of the image capture device.
  • control device may be a device independent of the self-balancing vehicle (for example: a smart phone, or a tablet computer, or a laptop computer, or a desktop computer, or a smart TV, or a smart key, etc.); Alternatively, the control device can also be placed directly on the self-balancing vehicle as part of a self-balancing vehicle.
  • the driving control command includes a preset driving track for controlling the self-balancing vehicle to travel along the preset driving track, wherein the preset driving track may be: the line shown in FIG. The travel track track_1, or the circular travel track track_2 shown in FIG. 3, or the custom travel track track_3 as shown in FIG. 4, is freely defined by the user.
  • the user can select any driving track as the preset driving track on the control device.
  • the user needs to manually draw the customized driving track on the touch screen of the control device.
  • Step S302 Control the self-balancing vehicle to travel along the preset driving track based on the driving control command.
  • the VIO technology can be used to measure the position, driving direction and driving speed of the self-balancing vehicle in real time, and calculate the angular velocity of the self-balancing vehicle according to the difference between the direction vector of the current traveling speed and the tangential direction of the preset driving track.
  • the electronic turning is controlled based on the calculated angular velocity, thereby changing the traveling direction of the self-balancing vehicle.
  • the PID control algorithm can be used to control the self-balancing vehicle to automatically travel along the preset driving track.
  • the user does not need to Interventions simplify the user's operation, and the user can concentrate on controlling the image capture device for shooting, which is beneficial to obtain satisfactory shooting results.
  • Step S303 Control the image acquisition device to perform image acquisition based on the obtained image acquisition device control strategy.
  • the image capture device control strategy may include some instructions for controlling the image capture device, such as a photographing instruction, or starting a recording instruction, or ending a recording instruction, and the like.
  • the image collection device control strategy may be obtained before performing step S302, or obtained during the execution of step S302.
  • the user can send an image acquisition device control strategy to the self-balancing vehicle through the control device, so that the self-balancing vehicle can control the image acquisition device to perform image acquisition based on the image acquisition device control strategy.
  • the user can send the image acquisition device control strategy to the self-balancing vehicle through the control device before the self-balancing vehicle travels along the preset driving track; the user can also pass the control device to the self-balancing vehicle along the preset driving track during the driving process.
  • the self-balancing vehicle sends an image acquisition device control strategy.
  • step S303 is performed in the process of performing step S302, that is, during the driving of the self-balancing vehicle along the preset driving track, the image capturing device is controlled to perform image acquisition based on the obtained image capturing device control strategy.
  • the user may send a driving control command to the self-balancing vehicle, so that the self-balancing vehicle automatically travels along the preset driving track indicated by the driving control command, and automatically travels in the self-balancing vehicle along the preset driving path.
  • the user does not need to intervene again, which simplifies the user's operation, and the user can concentrate on controlling the image capturing device to shoot, which is beneficial to obtain a satisfactory shooting effect.
  • step S303 includes:
  • the image capturing device is controlled to end the imaging.
  • step S303 includes:
  • the preset shooting direction is determined based on the shooting direction control command in the image acquisition device control strategy; during the driving of the self-balancing vehicle along the preset driving track, the current shooting direction of the image capturing device is adjusted to be the preset shooting direction.
  • the image capture device control strategy may further include a shooting direction control command indicating a preset shooting direction, and the user may send the shooting direction control to the self-balancing vehicle through the control device.
  • the commanded image acquisition device controls the strategy. After receiving the control strategy of the image acquisition device by the self-balancing vehicle, based on the shooting direction control command therein, Determining a preset shooting direction and controlling the pan/tilt rotation to adjust the current shooting direction of the image capturing device to a preset shooting direction.
  • the preset shooting direction may be It is: front a1, rear b1, left c1 and right d1.
  • the preset shooting direction may be It is: front a2, rear b2, left c2 and right d2.
  • the preset shooting direction is It can be: front a3, rear b3, left c3 and right d3.
  • the shooting direction can also be set to any direction by the user, for example, displaying the preset driving track and the current position of the self-balancing vehicle on the touch screen of the control device, and also displaying the current position of the self-balancing vehicle.
  • An icon representing the image capture device the user can manually rotate the direction of the icon on the touch screen to set an arbitrary shooting direction.
  • step S303 includes:
  • the image capture device control strategy may further include a shooting distance control command and a shooting duration control command, where the shooting distance control command indicates a preset shooting distance, and the shooting duration control command indicates a preset shooting time
  • the user can send an image capture device control strategy including the shooting distance control command and the shooting duration control command to the self-balancing vehicle through the control device.
  • the shooting time ⁇ the driving speed calculates the driving speed; further controls the self-balancing vehicle to travel along the preset driving trajectory at the driving speed, and shoots a video of a preset duration.
  • the preset driving track is a straight traveling track
  • the preset shooting time is 30 seconds
  • the traveling speed is determined to be 0.5 m/s.
  • the self-balancing car is controlled at 0.5 m/ The speed of the second travels along a straight line.
  • the image acquisition device is controlled to perform image acquisition for 30 seconds to obtain a 30 second video file.
  • the preset driving track is a circular driving track
  • the preset shooting time is 20 seconds
  • the traveling speed is determined to be 1 meter/second.
  • the self-balancing car is controlled to 1 meter. / The speed of the second travels along the circular driving trajectory.
  • the image capturing device is controlled to perform image acquisition for 20 seconds to obtain a 20-second video file.
  • the VIO technology can be used to measure the running speed of the self-balancing vehicle in real time.
  • the self-balancing vehicle can be adjusted in time. speed.
  • the user can freely set any instruction in the image acquisition device control strategy on the control device (for example, a shooting instruction, a start recording instruction, an end recording instruction, a shooting direction control instruction, a shooting duration control instruction, Shooting distance control commands, etc.), so that the image capturing device is controlled to shoot during the self-balancing vehicle along the preset trajectory to achieve satisfactory shooting results.
  • a shooting instruction for example, a shooting instruction, a start recording instruction, an end recording instruction, a shooting direction control instruction, a shooting duration control instruction, Shooting distance control commands, etc.
  • the image capture device may be equipped with multiple lenses (for example, a standard lens and a wide-angle lens), and the image capture device control strategy further includes a switch lens control command indicating a preset lens that the user can pass
  • the control device transmits an image capture device control strategy including the switch lens control command to the self-balancing vehicle. After receiving the image acquisition device control strategy by the self-balancing vehicle, based on the switching lens control command therein, a preset lens is determined, and the currently used lens is switched to the preset lens.
  • the user sends an image capture device control strategy to the self-balancing vehicle through the control device, and the image capture device control strategy includes a switch lens control command, the switch The preset lens indicated by the lens control command is a wide-angle lens, and the self-balancing vehicle switches the currently used lens to a wide-angle lens based on the switching lens control finger.
  • the image capture device control strategy may include any one or more of the above-mentioned photographing instruction, start recording instruction, end recording instruction, shooting direction control instruction, shooting duration control command, and shooting distance control command. instruction.
  • an embodiment of the present invention further provides a self-balancing vehicle.
  • the self-balancing vehicle has an image capturing device. As shown in FIG. 7, the self-balancing vehicle further includes:
  • a second obtaining unit 401 configured to obtain a driving control instruction, where the driving control instruction is used to instruct the self-balancing vehicle to travel along a preset driving track;
  • the third control unit 402 is configured to control the self-balancing vehicle to travel along the preset driving track based on the driving control instruction;
  • the fourth control unit 403 is configured to control the image capturing device to perform image acquisition based on the obtained image capturing device control strategy; wherein the image capturing device control strategy is obtained before the self-balancing vehicle travels along the preset driving track, or the image capturing device The control strategy is obtained during the journey of the self-balancing vehicle along the preset travel trajectory.
  • the preset driving track includes:
  • the fourth control unit 403 includes:
  • a first determining module configured to determine a preset shooting direction based on a shooting direction control instruction in an image capture device control strategy
  • the adjustment module is configured to adjust the current shooting direction of the image capturing device to a preset shooting direction during the driving of the self-balancing vehicle along the preset driving track.
  • the fourth control unit 403 includes:
  • a second determining module configured to determine a preset shooting duration based on a shooting duration control command in an image capture device control strategy
  • a third determining module configured to determine a preset shooting distance based on a shooting distance control instruction in the image capturing device control strategy
  • a fourth determining module configured to determine a driving speed based on the preset shooting distance and the preset shooting time length
  • control module configured to control the image acquisition device to perform image acquisition based on the preset shooting duration during the driving of the self-balancing vehicle along the preset driving trajectory, to obtain a video file.
  • the self-balancing vehicle described in this embodiment is an electronic device used in the image capturing method in the embodiment of the present invention
  • those skilled in the art can understand the present implementation based on the image capturing method introduced in the embodiment of the present invention.
  • the specific embodiment of the self-balancing vehicle and its various variations are not described in detail herein for how the self-balancing vehicle implements the method in the embodiment of the present invention.
  • the person skilled in the art implements the self-balancing vehicle used in the image capturing method in the embodiment of the present invention, it is within the scope of the present invention.
  • the user can send a driving control command to the self-balancing vehicle, so that the self-balancing vehicle automatically travels along the preset driving track indicated by the driving control instruction, and the user does not need to intervene during the driving process, which simplifies.
  • the user's operation the user can concentrate on controlling the image acquisition device for shooting, which is beneficial to achieve a satisfactory shooting effect, and effectively solves the technical problem that the operation is complicated when the user controls the electronic device to shoot in the prior art.
  • a plurality of image acquisition device control strategies are also provided, and the user can send any image acquisition device control strategy to the self-balancing vehicle, so that the image acquisition device performs the requirements in the image acquisition device control strategy.
  • Camera easy to operate, is conducive to achieve satisfactory results.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may employ an entirely hardware embodiment, an entirely software embodiment, Or in the form of an embodiment of the software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk.
  • optical disk A medium that can store program code.
  • the above-described integrated unit of the embodiment of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a stand-alone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a removable storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.
  • an embodiment of the present invention further provides a computer readable storage medium, the storage medium comprising a set of computer executable instructions for performing an image collection method according to an embodiment of the present invention.

Abstract

Disclosed is an image acquisition method, applied in an electronic device which comprises an image acquisition means. The method comprises: obtaining a traveling control instruction which is used for instructing the electronic device to travel along a preset traveling trajectory; controlling the electronic device to travel along the preset traveling trajectory on the basis of the traveling control instruction; and controlling the image acquisition means to acquire an image on the basis of an obtained image acquisition means control policy, wherein the image acquisition means control policy is obtained before the electronic device travels along the preset traveling trajectory, or the image acquisition means control policy is obtained in the process that the electronic device travels along the preset traveling trajectory. The present invention effectively resolves the technical problem in the prior art of complex operation when a user controls an electronic device for photographing. Also disclosed are an electronic device and a computer storage medium.

Description

一种图像采集方法及电子设备、计算机存储介质Image acquisition method and electronic device, computer storage medium 技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种图像采集方法及电子设备、计算机存储介质。The present invention relates to the field of electronic technologies, and in particular, to an image acquisition method, an electronic device, and a computer storage medium.
背景技术Background technique
在使用摄像机录像时,对摄像机机身的稳定性有着很高的要求。在电影拍摄过程中,通常需要滑轨、摇臂等专业设备来保证摄像机机身的稳定性,从而达到满意的拍摄效果。When using camera recording, there is a high demand for the stability of the camera body. In the film shooting process, professional equipment such as slide rails and rocker arms are usually required to ensure the stability of the camera body, so as to achieve satisfactory shooting results.
随着机器人产业的兴起和云台技术的发展,摄像机开始被安放到机器人(例如:无人机、或地面机器人)上,利用机器人录像变成一大热门领域,甚至逐渐取代一些专用的摄像设备。With the rise of the robot industry and the development of cloud platform technology, cameras have been placed on robots (such as drones or ground robots), using robot video to become a hot field, and even gradually replacing some dedicated camera equipment. .
目前,在用户操控机器人进行拍摄时,需要用户同时熟练地控制机器人和云台,才能达到较为满意的拍摄效果。然而,对普通用户来说,熟练地操控机器人并不容易(例如:操控机器人环绕行驶这样简单的过程,都需要经过大量训练的专业操控人员来完成),再加上云台的控制操作,这使得拍摄过程过于复杂,对普通用户来说难以完成。At present, when the user manipulates the robot for shooting, the user is required to skillfully control the robot and the pan/tilt at the same time, so as to achieve a satisfactory shooting effect. However, it is not easy for ordinary users to manipulate the robot skillfully (for example, the simple process of manipulating the robot around the wheel requires a large number of trained professional operators), plus the control operation of the gimbal. The shooting process is too complicated and difficult for ordinary users to complete.
综上,在现有技术中,在用户操控机器人进行拍摄时,存在操作复杂的技术问题。In summary, in the prior art, when the user manipulates the robot to perform shooting, there is a technical problem of complicated operation.
发明内容Summary of the invention
本发明实施例通过提供一种图像采集方法及电子设备、计算机存储介质,解决了现有技术中在用户操控机器人进行拍摄时,存在操作复杂的技术问题。The embodiment of the present invention solves the technical problem that the operation is complicated when the user controls the robot to shoot in the prior art by providing an image acquisition method, an electronic device, and a computer storage medium.
在本发明的一实施例中,提供了一种图像采集方法,应用于电子设备中,所述电子设备具有图像采集装置,所述图像采集方法,包括:In an embodiment of the present invention, an image acquisition method is provided, which is applied to an electronic device, the electronic device having an image acquisition device, and the image collection method includes:
获得行驶控制指令,所述行驶控制指令用于指示所述电子设备沿预设行驶轨迹行驶;Obtaining a driving control instruction, the driving control instruction is used to instruct the electronic device to travel along a preset driving track;
基于所述行驶控制指令,控制所述电子设备沿所述预设行驶轨迹行驶;Controlling the electronic device to travel along the preset driving track based on the driving control instruction;
基于获得的图像采集装置控制策略,控制所述图像采集装置进行图像采集;其中,所述图像采集装置控制策略在所述电子设备沿所述预设行驶轨迹行驶之前获得,或,所述图像采集装置控制策略在所述电子设备沿所述预设行驶轨迹行驶的过程中获得。Controlling, by the image capturing device control strategy, the image capturing device to perform image capturing; wherein the image capturing device control strategy is obtained before the electronic device travels along the preset driving track, or the image is collected The device control strategy is obtained during the travel of the electronic device along the preset travel trajectory.
在一可实施方式中,所述预设行驶轨迹,包括:In an implementation manner, the preset driving track includes:
直线行驶轨迹;或 Straight path; or
环形行驶轨迹;或Ring travel track; or
自定义行驶轨迹。Customize the driving track.
在一可实施方式中,所述基于获得的图像采集装置控制策略,控制所述图像采集装置进行图像采集,包括:In an implementation manner, the controlling the image acquisition device based on the obtained image acquisition device control strategy, and controlling the image collection device to perform image collection, includes:
基于所述图像采集装置控制策略中的拍摄方向控制指令,确定预设拍摄方向;Determining a preset shooting direction based on a shooting direction control instruction in the image acquisition device control strategy;
在所述电子设备沿预设行驶轨迹行驶过程中,调整所述图像采集装置的当前拍摄方向为所述预设拍摄方向。The current shooting direction of the image capturing device is adjusted to be the preset shooting direction during the driving of the electronic device along the preset driving track.
在一可实施方式中,所述基于获得的图像采集装置控制策略,控制所述图像采集装置进行图像采集,包括:In an implementation manner, the controlling the image acquisition device based on the obtained image acquisition device control strategy, and controlling the image collection device to perform image collection, includes:
基于所述图像采集装置控制策略中的拍摄时长控制指令,确定预设拍摄时长;Determining a preset shooting duration based on a shooting duration control command in the image capture device control strategy;
基于所述图像采集装置控制策略中的拍摄距离控制指令,确定预设拍摄距离;Determining a preset shooting distance based on a shooting distance control instruction in the image acquisition device control strategy;
基于所述预设拍摄距离、以及所述预设拍摄时长,确定行驶速度;Determining the traveling speed based on the preset shooting distance and the preset shooting time length;
在所述电子设备以所述行驶速度沿所述预设行驶轨迹行驶过程中,基于所述预设拍摄时长,控制所述图像采集装置进行图像采集,获得一视频文件。During the driving of the electronic device along the preset driving track at the traveling speed, the image capturing device is controlled to perform image capturing based on the preset shooting time to obtain a video file.
在本发明的另一实施例中,提供了一种电子设备,所述电子设备具有图像采集装置,所述电子设备还包括:In another embodiment of the present invention, an electronic device is provided, the electronic device having an image capture device, the electronic device further comprising:
第一获得单元,配置为获得行驶控制指令,所述行驶控制指令用于指示所述电子设备沿预设行驶轨迹行驶;a first obtaining unit configured to obtain a driving control command, where the driving control command is used to instruct the electronic device to travel along a preset driving track;
第一控制单元,配置为基于所述行驶控制指令,控制所述电子设备沿所述预设行驶轨迹行驶;a first control unit configured to control the electronic device to travel along the preset driving track based on the driving control instruction;
第二控制单元,配置为基于获得的图像采集装置控制策略,控制所述图像采集装置进行图像采集;其中,所述图像采集装置控制策略在所述电子设备沿所述预设行驶轨迹行驶之前获得,或,所述图像采集装置控制策略在所述电子设备沿所述预设行驶轨迹行驶的过程中获得。a second control unit configured to control the image acquisition device to perform image acquisition based on the obtained image capture device control strategy; wherein the image capture device control strategy is obtained before the electronic device travels along the preset travel track Or, the image capture device control strategy is obtained during the traveling of the electronic device along the preset travel trajectory.
在一可实施方式中,所述预设行驶轨迹,包括:In an implementation manner, the preset driving track includes:
直线行驶轨迹;或Straight path; or
环形行驶轨迹;或Ring travel track; or
自定义行驶轨迹。Customize the driving track.
在一可实施方式中,所述第二控制单元,包括:In an implementation manner, the second control unit includes:
第一确定模块,配置为基于所述图像采集装置控制策略中的拍摄方向控制指令,确定预设拍摄方向;a first determining module, configured to determine a preset shooting direction based on a shooting direction control instruction in the image capturing device control policy;
调整模块,配置为在所述电子设备沿预设行驶轨迹行驶过程中,调整所 述图像采集装置的当前拍摄方向为所述预设拍摄方向。An adjustment module configured to adjust the position during the driving of the electronic device along a preset driving trajectory The current shooting direction of the image capturing device is the preset shooting direction.
在一可实施方式中,所述第二控制单元,包括:In an implementation manner, the second control unit includes:
第二确定模块,配置为基于所述图像采集装置控制策略中的拍摄时长控制指令,确定预设拍摄时长;a second determining module, configured to determine a preset shooting duration based on a shooting duration control command in the image capturing device control policy;
第三确定模块,配置为基于所述图像采集装置控制策略中的拍摄距离控制指令,确定预设拍摄距离;a third determining module, configured to determine a preset shooting distance based on a shooting distance control instruction in the image capturing device control policy;
第四确定模块,配置为基于所述预设拍摄距离、以及所述预设拍摄时长,确定行驶速度;a fourth determining module, configured to determine a traveling speed based on the preset shooting distance and the preset shooting time length;
控制模块,配置为在所述电子设备以所述行驶速度沿所述预设行驶轨迹行驶过程中,基于所述预设拍摄时长,控制所述图像采集装置进行图像采集,获得一视频文件。The control module is configured to control the image acquisition device to perform image acquisition based on the preset shooting duration during the driving of the electronic device along the preset driving track at the traveling speed, to obtain a video file.
在本发明的另一实施例中,还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的图像采集方法。In another embodiment of the present invention, a computer storage medium is also provided, wherein the computer storage medium stores computer executable instructions configured to perform image acquisition according to an embodiment of the present invention. method.
本发明实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
1、在本发明实施例中,用户可以向电子设备发送行驶控制指令,以使得电子设备沿行驶控制指令所指示的预设行驶轨迹自动行驶,行驶过程用户无需再进行干预,简化了用户的操作,用户可以专心控制图像采集装置进行拍摄,有利于达到满意的拍摄效果,有效地解决了现有技术中在用户操控电子设备进行拍摄时,存在操作复杂的技术问题。1. In the embodiment of the present invention, the user may send a driving control instruction to the electronic device, so that the electronic device automatically travels along the preset driving track indicated by the driving control instruction, and the user does not need to intervene during the driving process, thereby simplifying the operation of the user. The user can concentrate on controlling the image capturing device to perform shooting, which is beneficial to achieve a satisfactory shooting effect, and effectively solves the technical problem that the operation is complicated when the user controls the electronic device to shoot in the prior art.
2、在本发明实施例中,提供有多种图像采集装置控制策略,用户可以向电子设备发送任一图像采集装置控制策略,以使得图像采集装置按照图像采集装置控制策略中的要求进行摄像,操作方便,有利于达到满意的拍摄效果。2. In the embodiment of the present invention, a plurality of image acquisition device control strategies are provided, and the user may send any image acquisition device control strategy to the electronic device, so that the image acquisition device performs imaging according to the requirements in the image acquisition device control strategy. Easy to operate, it is conducive to achieve satisfactory results.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。本实施例的附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings of the present embodiments are only for the purpose of illustrating the preferred embodiments and are not intended to limit the invention. In the drawing:
图1为本发明实施例中的一种图像采集方法的流程图;1 is a flowchart of an image collection method according to an embodiment of the present invention;
图2为本发明实施例中的直线行驶轨迹的示意图;2 is a schematic diagram of a straight travel track in an embodiment of the present invention;
图3为本发明实施例中的环形行驶轨迹的示意图;3 is a schematic diagram of a circular traveling track in an embodiment of the present invention;
图4为本发明实施例中的自定义行驶轨迹的示意图;4 is a schematic diagram of a customized driving track in an embodiment of the present invention;
图5为本发明实施例中的一种电子设备的结构示意图;FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention; FIG.
图6为本发明实施例中的一种图像采集方法的流程图; FIG. 6 is a flowchart of an image collection method according to an embodiment of the present invention;
图7为本发明实施例中的一种自平衡车的结构示意图。FIG. 7 is a schematic structural view of a self-balancing vehicle according to an embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.
本发明实施例通过提供一种图像采集方法及电子设备,解决了现有技术中在用户操控机器人进行拍摄时,存在操作复杂的技术问题。The embodiment of the present invention solves the technical problem that the operation is complicated when the user controls the robot to shoot in the prior art by providing an image acquisition method and an electronic device.
本发明实施例的技术方案为解决上述技术问题,总体思路如下:The technical solution of the embodiment of the present invention is to solve the above technical problem, and the general idea is as follows:
一种图像采集方法,应用于电子设备中,所述电子设备包括图像采集装置,所述图像采集方法,包括:获得行驶控制指令,所述行驶控制指令指示预设行驶轨迹;基于所述行驶控制指令,控制所述电子设备沿所述预设行驶轨迹行驶;基于获得的图像采集装置控制策略,控制所述图像采集装置进行图像采集;其中,所述图像采集装置控制策略在所述电子设备沿所述预设行驶轨迹行驶之前获得,或,所述图像采集装置控制策略在所述电子设备沿所述预设行驶轨迹行驶的过程中获得。An image acquisition method is applied to an electronic device, the electronic device includes an image acquisition device, and the image acquisition method includes: obtaining a travel control command, the travel control command indicating a preset travel track; and based on the travel control Directing to control the electronic device to travel along the preset driving track; controlling the image capturing device to perform image acquisition based on the obtained image capturing device control strategy; wherein the image capturing device control strategy is along the electronic device The preset driving track is obtained before the driving, or the image capturing device control strategy is obtained during the driving of the electronic device along the preset driving track.
为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。In order to better understand the above technical solutions, the above technical solutions will be described in detail below in conjunction with the drawings and specific embodiments.
实施例一Embodiment 1
本实施例提供了一种图像采集方法,应用于电子设备(例如:地面机器人)中,所述电子设备包括图像采集装置(例如:照相机、或摄影机),如图1所示,所述图像采集方法,包括:The embodiment provides an image acquisition method, which is applied to an electronic device (for example, a ground robot), and the electronic device includes an image collection device (for example, a camera or a camera), as shown in FIG. Methods, including:
步骤S101:获得行驶控制指令,该行驶控制指令用于指示电子设备沿预设行驶轨迹行驶。Step S101: Obtain a driving control command for instructing the electronic device to travel along a preset driving track.
在具体实施过程中,电子设备通过有线方式或无线方式与控制设备连接,电子设备与控制设备之间可以进行通信。用户可以通过控制设备控制电子设备自由行驶、以及控制电子设备上的图像采集装置进行图像采集(例如:拍照、或摄像),同时,图像采集装置可以通过云台固定在电子设备上,用户可以通过控制设备控制云台转动,从而改变图像采集装置的拍摄方向。In a specific implementation process, the electronic device is connected to the control device by wire or wirelessly, and the electronic device and the control device can communicate with each other. The user can control the electronic device to freely travel by controlling the device, and control the image capturing device on the electronic device to perform image capturing (for example, taking a picture or photographing), and at the same time, the image collecting device can be fixed on the electronic device through the pan/tilt, and the user can pass The control device controls the pan/tilt rotation to change the shooting direction of the image capture device.
在具体实施过程中,控制设备可以是与电子设备为相互独立的设备(例如:智能手机、或平板电脑、或笔记本电脑、或台式机电脑、或智能电视、或智能钥匙、等等);或者,该控制设备还可以直接设置在电子设备上,作为电子设备的一部分。 In a specific implementation process, the control device may be a device independent of the electronic device (for example: a smart phone, or a tablet computer, or a laptop computer, or a desktop computer, or a smart TV, or a smart key, etc.); or The control device can also be directly disposed on the electronic device as part of the electronic device.
在具体实施过程中,所述行驶控制指令中包含预设行驶轨迹,用于控制电子设备沿该预设行驶轨迹行驶,其中,所述预设行驶轨迹可以为:图2所示的直线行驶轨迹track_1,或图3所示的环形行驶轨迹track_2,或如图4所示的自定义行驶轨迹track_3,该自定义行驶轨迹由用户自由定义。用户可以在控制设备上选任一行驶轨迹作为所述预设行驶轨迹,在用户选择自定义行驶轨迹时,用户需要手动在控制设备的触摸屏上画出该自定义行驶轨迹。In a specific implementation process, the driving control command includes a preset driving track for controlling the electronic device to travel along the preset driving track, wherein the preset driving track may be: a straight driving track as shown in FIG. 2 . Track_1, or the circular travel track track_2 shown in Fig. 3, or the custom travel track track_3 as shown in Fig. 4, the custom travel track is freely defined by the user. The user can select any driving track as the preset driving track on the control device. When the user selects the customized driving track, the user needs to manually draw the customized driving track on the touch screen of the control device.
步骤S102:基于行驶控制指令,控制电子设备沿预设行驶轨迹行驶。Step S102: Control the electronic device to travel along the preset driving track based on the driving control instruction.
在具体实施过程中,可以利用VIO(Visual Inertial Odometry,视觉惯导测距)技术实时测量电子设备的位置、行驶方向和行驶速度,并根据当前行驶速度的方向矢量与预设行驶轨迹切向的差值,计算出电子设备的角速度,并基于计算出的角速度控制电子设备转弯,从而改变电子设备的行驶方向,同时,还可以利用PID(Proportion Integration Differentiation,比例积分微分)控制算法控制电子设备沿预设行驶轨迹自动行驶。在电子设备沿预设行驶轨迹自动行驶过程中,用户无需再进行干预,简化了用户的操作,用户可以专心控制图像采集装置进行拍摄,有利于获得满意的拍摄效果。In the specific implementation process, the VIO (Visual Inertial Odometry) technology can be used to measure the position, driving direction and traveling speed of the electronic device in real time, and tangential to the preset driving path according to the direction vector of the current traveling speed. The difference is used to calculate the angular velocity of the electronic device, and the electronic device is controlled to turn according to the calculated angular velocity, thereby changing the traveling direction of the electronic device. At the same time, the PID (Proportion Integration Differentiation) control algorithm can also be used to control the electronic device along the edge. The preset driving path is automatically driven. During the automatic driving of the electronic device along the preset driving track, the user does not need to intervene again, which simplifies the user's operation, and the user can concentrate on controlling the image capturing device to perform shooting, which is beneficial to obtain a satisfactory shooting effect.
步骤S103:基于获得的图像采集装置控制策略,控制图像采集装置进行图像采集。Step S103: Control the image acquisition device to perform image acquisition based on the obtained image acquisition device control strategy.
在具体实施过程中,该图像采集装置控制策略中可以包含一些用于控制图像采集装置的指令,例如:拍照指令,或开始录像指令,或结束录像指令,等等。In a specific implementation process, the image capture device control strategy may include some instructions for controlling the image capture device, such as a photographing instruction, or starting a recording instruction, or ending a recording instruction, and the like.
在具体实施过程中,图像采集装置控制策略可以在执行步骤S102之前获得,或在执行步骤S102过程中获得。In a specific implementation process, the image collection device control strategy may be obtained before performing step S102, or obtained during the execution of step S102.
举例来讲,用户可以通过控制设备向电子设备发送图像采集装置控制策略,以使得电子设备能够基于该图像采集装置控制策略,控制图像采集装置进行图像采集。其中,用户可以在电子设备沿预设行驶轨迹行驶之前,通过控制设备向电子设备发送图像采集装置控制策略;用户也可以在电子设备沿预设行驶轨迹行驶过程中,通过控制设备向电子设备发送图像采集装置控制策略。For example, the user can send an image capture device control strategy to the electronic device through the control device, so that the electronic device can control the image capture device to perform image acquisition based on the image capture device control strategy. The user may send the image acquisition device control strategy to the electronic device through the control device before the electronic device travels along the preset driving track; the user may also send the electronic device to the electronic device through the control device while the electronic device is traveling along the preset driving track. Image acquisition device control strategy.
在具体实施过程中,在执行步骤S102的过程中执行步骤S103,即,在电子设备沿预设行驶轨迹行驶过程中,基于获得的图像采集装置控制策略,控制图像采集装置进行图像采集。In a specific implementation process, step S103 is performed in the process of performing step S102, that is, in the process of driving the electronic device along the preset driving track, the image capturing device is controlled to perform image capturing based on the obtained image capturing device control strategy.
在本发明实施例中,用户可以向电子设备发送一行驶控制指令,以使得电子设备沿行驶控制指令所指示的预设行驶轨迹自动行驶,在电子设备沿预设行驶轨迹自动行驶过程中,用户无需再进行干预,简化了用户的操作,用户可以专心控制图像采集装置进行拍摄,有利于获得满意的拍摄效果。 In the embodiment of the present invention, the user may send a driving control instruction to the electronic device, so that the electronic device automatically runs along the preset driving track indicated by the driving control instruction, and the user is in the automatic driving process along the preset driving path of the electronic device. No need to intervene, simplifying the user's operation, the user can concentrate on controlling the image acquisition device for shooting, which is beneficial to obtain satisfactory shooting results.
作为一种可选的实施方式,步骤S103,包括:As an optional implementation manner, step S103 includes:
基于图像采集装置控制策略中的拍照指令,控制图像采集装置拍照;或基于图像采集装置控制策略中的开始录像指令,控制图像采集装置开始摄像;或基于图像采集装置控制策略中的结束录像指令,控制图像采集装置结束摄像。Controlling the image acquisition device to take a picture based on the photographing instruction in the image acquisition device control strategy; or controlling the image acquisition device to start imaging based on the start recording instruction in the image acquisition device control strategy; or based on the end recording instruction in the image acquisition device control strategy, The image capturing device is controlled to end the imaging.
作为一种可选的实施方式,步骤S103,包括:As an optional implementation manner, step S103 includes:
基于图像采集装置控制策略中的拍摄方向控制指令,确定预设拍摄方向;在电子设备沿预设行驶轨迹行驶过程中,调整图像采集装置的当前拍摄方向为预设拍摄方向。The preset shooting direction is determined based on the shooting direction control command in the image capturing device control strategy; and the current shooting direction of the image capturing device is adjusted to the preset shooting direction during the driving of the electronic device along the preset driving track.
在具体实施过程中,在该图像采集装置控制策略中还可以包含拍摄方向控制指令,该拍摄方向控制指令指示预设拍摄方向,用户可以通过控制设备向电子设备发送包含该拍摄方向控制指令的图像采集装置控制策略。在电子设备接收到该图像采集装置控制策略后,基于其中的拍摄方向控制指令,确定预设拍摄方向,并控制云台转动,从而调整图像采集装置的当前拍摄方向为预设拍摄方向。In the specific implementation process, the image capturing device control strategy may further include a shooting direction control instruction indicating a preset shooting direction, and the user may send an image including the shooting direction control instruction to the electronic device by using the control device. Acquisition device control strategy. After receiving the image acquisition device control strategy, the electronic device determines a preset shooting direction based on the shooting direction control command, and controls the pan/tilt rotation to adjust the current shooting direction of the image capturing device to the preset shooting direction.
举例来讲,如图2所示,在电子设备沿直线行驶轨迹track_1行驶时,电子设备当前位置为P1,以电子设备前进的方向作为前方a1,那么,所述预设拍摄方向可以为:前方a1、后方b1、左方c1和右方d1。For example, as shown in FIG. 2, when the electronic device travels along the straight track trajectory track_1, the current position of the electronic device is P1, and the direction in which the electronic device advances is taken as the front a1, then the preset shooting direction may be: front A1, rear b1, left c1, and right d1.
举例来讲,如图3所示,在电子设备沿环形行驶轨迹track_2行驶时,电子设备当前位置为P2,以电子设备前进的方向作为前方a2,那么,所述预设拍摄方向可以为:前方a2、后方b2、左方c2和右方d2。For example, as shown in FIG. 3, when the electronic device travels along the circular traveling track track_2, the current position of the electronic device is P2, and the direction in which the electronic device advances is taken as the front a2, then the preset shooting direction may be: front A2, rear b2, left c2, and right d2.
举例来讲,如图4所示,在电子设备沿自定义行驶轨迹track_3行驶时,电子设备当前位置为P3,以电子设备前进的方向作为前方a3,那么,所述预设拍摄方向可以为:前方a3、后方b3、左方c3和右方d3。For example, as shown in FIG. 4, when the electronic device travels along the customized driving track track_3, the current position of the electronic device is P3, and the direction in which the electronic device advances is taken as the front a3. Then, the preset shooting direction may be: Front a3, rear b3, left c3, and right d3.
另外,该拍摄方向也可以由用户设定为任意方向,例如,在控制设备的触摸屏上显示所述预设行驶轨迹、以及电子设备的当前位置,且在电子设备的当前位置处还显示一表示图像采集装置的图标,用户可以用手在触摸屏上转动该图标的方向,从而设定任意拍摄方向。In addition, the shooting direction may also be set by the user to any direction, for example, displaying the preset driving track and the current position of the electronic device on the touch screen of the control device, and displaying a representation at the current position of the electronic device. The icon of the image capture device, the user can manually rotate the direction of the icon on the touch screen to set an arbitrary shooting direction.
作为一种可选的实施方式,步骤S103,包括:As an optional implementation manner, step S103 includes:
基于图像采集装置控制策略中的拍摄时长控制指令,确定预设拍摄时长;基于所述图像采集装置控制策略中的拍摄距离控制指令,确定预设拍摄距离;基于所述预设拍摄距离、以及所述预设拍摄时长,确定行驶速度;在电子设备以所述行驶速度沿预设行驶轨迹行驶过程中,在所述预设拍摄时长内,控制图像采集装置进行图像采集,获得一视频文件。Determining a preset shooting duration based on a shooting duration control command in the image capture device control strategy; determining a preset shooting distance based on the shooting distance control command in the image capturing device control strategy; based on the preset shooting distance, and The preset shooting time is determined, and the driving speed is determined; during the driving of the electronic device at the driving speed along the preset driving track, the image capturing device is controlled to perform image capturing during the preset shooting time to obtain a video file.
在具体实施过程中,在该图像采集装置控制策略中还可以包含拍摄距离 控制指令和拍摄时长控制指令,该拍摄距离控制指令指示一预设拍摄距离,该拍摄时长控制指令指示一预设拍摄时长,用户可以通过控制设备向电子设备发送包含该拍摄距离控制指令和拍摄时长控制指令的图像采集装置控制策略。在电子设备接收到该图像采集装置控制策略后,基于其中的拍摄距离控制指令和拍摄时长控制指令,确定预设拍摄距离和预设拍摄时长,再基于等式“预设拍摄距离=预设拍摄时长×行驶速度”,计算出行驶速度;进一步控制电子设备以该行驶速度沿预设行驶轨迹行驶,并拍摄一段预设拍摄时长的视频。In the specific implementation process, the shooting distance may also be included in the image acquisition device control strategy. a control command and a shooting duration control command, the shooting distance control command instructing a preset shooting distance, the shooting duration control command indicating a preset shooting time, the user may send the shooting distance control instruction and the shooting duration to the electronic device through the control device The image acquisition device control strategy of the control command. After the electronic device receives the image capture device control strategy, based on the shooting distance control command and the shooting duration control command, determining the preset shooting distance and the preset shooting duration, and then based on the equation “preset shooting distance=preset shooting The duration×the driving speed” calculates the driving speed; further controls the electronic device to travel along the preset driving trajectory at the driving speed, and captures a video of a preset shooting duration.
举例来讲,在预设行驶轨迹为直线行驶轨迹,预设拍摄时长为30秒,预设距离为15米时,则确定行驶速度为0.5米/秒,进一步,控制电子设备以0.5米/秒的速度沿直线行驶轨迹行驶,在行驶过程中,控制图像采集装置进行图像采集30秒,获得一段30秒的视频文件。For example, if the preset driving track is a straight traveling track, the preset shooting time is 30 seconds, and when the preset distance is 15 meters, the traveling speed is determined to be 0.5 m/s. Further, the control electronic device is 0.5 m/s. The speed travels along a straight line. During the driving process, the image acquisition device is controlled to perform image acquisition for 30 seconds to obtain a 30 second video file.
再举例来讲,在预设行驶轨迹为环形行驶轨迹,预设拍摄时长为20秒,预设距离为20米时,则确定行驶速度为1米/秒,进一步,控制电子设备以1米/秒的速度沿环形行驶轨迹行驶,在行驶过程中,控制图像采集装置进行图像采集20秒,获得一段20秒的视频文件。For another example, when the preset driving track is a circular driving track, the preset shooting time is 20 seconds, and when the preset distance is 20 meters, the traveling speed is determined to be 1 meter/second. Further, the control electronic device is 1 meter/ The speed of the second travels along the circular driving trajectory. During the driving process, the image capturing device is controlled to perform image acquisition for 20 seconds to obtain a 20-second video file.
在具体实施过程中,在电子设备行驶过程中,可以利用VIO技术实时测量电子设备的行驶速度,在电子设备的行驶速度与计算出的行驶速度不同时,及时调整电子设备的行驶速度。In the specific implementation process, during the running of the electronic device, the traveling speed of the electronic device can be measured in real time by using the VIO technology, and the traveling speed of the electronic device is adjusted in time when the traveling speed of the electronic device is different from the calculated traveling speed.
在本发明实施例中,用户可以在控制设备上自由设置该图像采集装置控制策略中的任一指令(例如:拍摄指令、开始录像指令、结束录像指令、拍摄方向控制指令、拍摄时长控制指令、拍摄距离控制指令、等等),从而在电子设备沿预设轨迹行驶过程中,控制图像采集装置进行拍摄,达到满意的拍摄效果。In the embodiment of the present invention, the user can freely set any instruction in the image acquisition device control strategy on the control device (for example, a shooting instruction, a start recording instruction, an end recording instruction, a shooting direction control instruction, a shooting duration control instruction, The shooting distance control command, and the like, so that the electronic image device controls the image capturing device to perform shooting during the driving along the preset trajectory, and achieves a satisfactory shooting effect.
在具体实施过程中,在图像采集装置控制策略中可以包含上述拍照指令、开始录像指令、结束录像指令、拍摄方向控制指令、拍摄时长控制指令、拍摄距离控制指令、中的任意一种或多种指令。In a specific implementation process, the image capture device control strategy may include any one or more of the above-mentioned photographing instruction, start recording instruction, end recording instruction, shooting direction control instruction, shooting duration control command, and shooting distance control command. instruction.
基于同一发明构思,本发明实施例还提供一种电子设备,电子设备具有一图像采集装置,如图5所示,电子设备还包括:Based on the same inventive concept, an embodiment of the present invention further provides an electronic device. The electronic device has an image capturing device. As shown in FIG. 5, the electronic device further includes:
第一获得单元201,用于获得行驶控制指令,行驶控制指令用于指示电子设备沿预设行驶轨迹行驶;a first obtaining unit 201, configured to obtain a driving control instruction, where the driving control instruction is used to instruct the electronic device to travel along a preset driving track;
第一控制单元202,用于基于行驶控制指令,控制电子设备沿预设行驶轨迹行驶;The first control unit 202 is configured to control the electronic device to travel along a preset driving track based on the driving control instruction;
第二控制单元203,用于基于获得的图像采集装置控制策略,控制图像采集装置进行图像采集;其中,图像采集装置控制策略在电子设备沿预设行驶 轨迹行驶之前获得,或,图像采集装置控制策略在电子设备沿预设行驶轨迹行驶的过程中获得。The second control unit 203 is configured to control the image acquisition device to perform image acquisition based on the obtained image acquisition device control strategy; wherein the image acquisition device control strategy runs along the preset in the electronic device Obtained before the trajectory, or the image capture device control strategy is obtained during the travel of the electronic device along the preset travel trajectory.
作为一种可选的实施方式,预设行驶轨迹,包括:As an optional implementation manner, the preset driving track includes:
直线行驶轨迹;或Straight path; or
环形行驶轨迹;或Ring travel track; or
自定义行驶轨迹。Customize the driving track.
作为一种可选的实施方式,第二控制单元203,包括:As an optional implementation manner, the second control unit 203 includes:
第一确定模块,用于基于图像采集装置控制策略中的拍摄方向控制指令,确定预设拍摄方向;a first determining module, configured to determine a preset shooting direction based on a shooting direction control instruction in an image capture device control strategy;
调整模块,用于在电子设备沿预设行驶轨迹行驶过程中,调整图像采集装置的当前拍摄方向为预设拍摄方向。The adjustment module is configured to adjust a current shooting direction of the image capturing device to a preset shooting direction during the driving of the electronic device along the preset driving track.
作为一种可选的实施方式,第二控制单元203,包括:As an optional implementation manner, the second control unit 203 includes:
第二确定模块,用于基于图像采集装置控制策略中的拍摄时长控制指令,确定预设拍摄时长;a second determining module, configured to determine a preset shooting duration based on a shooting duration control command in an image capture device control strategy;
第三确定模块,用于基于图像采集装置控制策略中的拍摄距离控制指令,确定预设拍摄距离;a third determining module, configured to determine a preset shooting distance based on a shooting distance control instruction in an image capture device control strategy;
第四确定模块,用于基于预设拍摄距离、以及预设拍摄时长,确定行驶速度;a fourth determining module, configured to determine a driving speed based on a preset shooting distance and a preset shooting time length;
控制模块,用于在电子设备以行驶速度沿预设行驶轨迹行驶过程中,基于预设拍摄时长,控制图像采集装置进行图像采集,获得一视频文件。The control module is configured to control the image acquisition device to perform image acquisition based on the preset shooting duration during the driving of the electronic device along the preset driving trajectory at the traveling speed, to obtain a video file.
由于本实施例所介绍的电子设备为实施本发明实施例中图像采集方法所采用的电子设备,故而基于本发明实施例中所介绍的图像采集的方法,本领域所属技术人员能够了解本实施例的电子设备的具体实施方式以及其各种变化形式,所以在此对于该电子设备如何实现本发明实施例中的方法不再详细介绍。只要本领域所属技术人员实施本发明实施例中图像采集的方法所采用的电子设备,都属于本发明所欲保护的范围。The electronic device that is used in this embodiment is an electronic device that is used in the image capturing method in the embodiment of the present invention. Therefore, those skilled in the art can understand the present embodiment based on the image capturing method introduced in the embodiment of the present invention. The specific implementation of the electronic device and its various variations are not described in detail herein for how the electronic device implements the method in the embodiment of the present invention. As long as the electronic device used in the method for image acquisition in the embodiments of the present invention is implemented by those skilled in the art, it is within the scope of the present invention.
上述本发明实施例中的技术方案,至少具有如下的技术效果或优点:The technical solutions in the foregoing embodiments of the present invention have at least the following technical effects or advantages:
1、在本发明实施例中,用户可以向电子设备发送行驶控制指令,以使得电子设备沿行驶控制指令所指示的预设行驶轨迹自动行驶,行驶过程用户无需再进行干预,简化了用户的操作,用户可以专心控制图像采集装置进行拍摄,有利于达到满意的拍摄效果,有效地解决了现有技术中在用户操控电子设备进行拍摄时,存在操作复杂的技术问题。1. In the embodiment of the present invention, the user may send a driving control instruction to the electronic device, so that the electronic device automatically travels along the preset driving track indicated by the driving control instruction, and the user does not need to intervene during the driving process, thereby simplifying the operation of the user. The user can concentrate on controlling the image capturing device to perform shooting, which is beneficial to achieve a satisfactory shooting effect, and effectively solves the technical problem that the operation is complicated when the user controls the electronic device to shoot in the prior art.
2、在本发明实施例中,还提供有多种图像采集装置控制策略,用户可以向电子设备发送任一图像采集装置控制策略,以使得图像采集装置按照图像采集装置控制策略中的要求进行摄像,操作方便,有利于达到满意的拍摄效 果。2. In the embodiment of the present invention, a plurality of image acquisition device control strategies are further provided, and the user may send any image acquisition device control strategy to the electronic device, so that the image acquisition device performs imaging according to the requirements in the image acquisition device control strategy. Easy to operate, it is conducive to achieve satisfactory shooting results fruit.
实施例二 Embodiment 2
本实施例提供了一种图像采集方法,应用于自平衡车中,所述自平衡车包括一图像采集装置(例如:照相机、或摄影机),如图6所示,所述图像采集方法,包括:The embodiment provides an image acquisition method, which is applied to a self-balancing vehicle. The self-balancing vehicle includes an image capturing device (for example, a camera or a camera). As shown in FIG. 6, the image collecting method includes :
步骤S301:获得行驶控制指令,该行驶控制指令用于指示自平衡车沿一预设行驶轨迹行驶。Step S301: Obtain a driving control command for instructing the self-balancing vehicle to travel along a preset driving track.
在具体实施过程中,所述自平衡车主要有独轮和双轮两类,其运作原理主要是建立在一种被称为“动态稳定”(Dynamic Stabilization)的基本原理上,利用车体内部的陀螺仪和加速度传感器,来检测车体姿态的变化,并利用伺服控制系统,精确地驱动电机进行相应的调整,以保持系统的平衡。自平衡车中包括一套动力系统,能够驱动自平衡车在路面上行驶(例如:直行,转弯,倒退,曲线行驶,等等)。In the specific implementation process, the self-balancing vehicle mainly has two types of single wheel and two wheels, and its operation principle is mainly based on a basic principle called "Dynamic Stabilization", which utilizes the interior of the vehicle body. The gyroscope and accelerometer are used to detect changes in the attitude of the car body, and the servo control system is used to accurately drive the motor to adjust accordingly to maintain the balance of the system. The self-balancing vehicle includes a power system that can drive a self-balancing vehicle on the road (eg straight, turn, reverse, curve, etc.).
在具体实施过程中,自平衡车通过有线方式或无线方式与一控制设备连接,自平衡车与控制设备之间可以进行通信。用户可以通过控制设备控制自平衡车自由行驶、以及控制自平衡车上的图像采集装置进行图像采集(例如:拍照、或摄像),同时,图像采集装置可以通过云台固定在自平衡车上,用户可以通过控制设备控制云台转动,从而改变图像采集装置的拍摄方向。In the specific implementation process, the self-balancing vehicle is connected to a control device by wire or wirelessly, and the self-balancing vehicle and the control device can communicate. The user can control the self-balancing vehicle to drive freely, and control the image acquisition device on the self-balancing vehicle to perform image acquisition (for example, photographing or photographing). At the same time, the image capturing device can be fixed on the self-balancing vehicle through the pan/tilt. The user can control the pan/tilt rotation by controlling the device to change the shooting direction of the image capture device.
在具体实施过程中,控制设备可以是与自平衡车为相互独立的设备(例如:智能手机、或平板电脑、或笔记本电脑、或台式机电脑、或智能电视、或智能钥匙、等等);或者,该控制设备还可以直接设置在自平衡车上,作为自平衡车的一部分。In a specific implementation process, the control device may be a device independent of the self-balancing vehicle (for example: a smart phone, or a tablet computer, or a laptop computer, or a desktop computer, or a smart TV, or a smart key, etc.); Alternatively, the control device can also be placed directly on the self-balancing vehicle as part of a self-balancing vehicle.
在具体实施过程中,所述行驶控制指令中包含一预设行驶轨迹,用于控制自平衡车沿该预设行驶轨迹行驶,其中,所述预设行驶轨迹可以为:图2所示的直线行驶轨迹track_1,或图3所示的环形行驶轨迹track_2,或如图4所示的自定义行驶轨迹track_3,该自定义行驶轨迹由用户自由定义。用户可以在控制设备上选任一行驶轨迹作为所述预设行驶轨迹,在用户选择自定义行驶轨迹时,用户需要手动在控制设备的触摸屏上画出该自定义行驶轨迹。In a specific implementation process, the driving control command includes a preset driving track for controlling the self-balancing vehicle to travel along the preset driving track, wherein the preset driving track may be: the line shown in FIG. The travel track track_1, or the circular travel track track_2 shown in FIG. 3, or the custom travel track track_3 as shown in FIG. 4, is freely defined by the user. The user can select any driving track as the preset driving track on the control device. When the user selects the customized driving track, the user needs to manually draw the customized driving track on the touch screen of the control device.
步骤S302:基于行驶控制指令,控制自平衡车沿预设行驶轨迹行驶。Step S302: Control the self-balancing vehicle to travel along the preset driving track based on the driving control command.
在具体实施过程中,可以利用VIO技术实时测量自平衡车的位置、行驶方向和行驶速度,并根据当前行驶速度的方向矢量与预设行驶轨迹切向的差值,计算出自平衡车的角速度,并基于计算出的角速度控制电子转弯,从而改变自平衡车的行驶方向,同时,还可以利用PID控制算法控制自平衡车沿预设行驶轨迹自动行驶。在自平衡车沿预设行驶轨迹自动行驶过程中,用户无需再 进行干预,简化了用户的操作,用户可以专心控制图像采集装置进行拍摄,有利于获得满意的拍摄效果。In the specific implementation process, the VIO technology can be used to measure the position, driving direction and driving speed of the self-balancing vehicle in real time, and calculate the angular velocity of the self-balancing vehicle according to the difference between the direction vector of the current traveling speed and the tangential direction of the preset driving track. The electronic turning is controlled based on the calculated angular velocity, thereby changing the traveling direction of the self-balancing vehicle. At the same time, the PID control algorithm can be used to control the self-balancing vehicle to automatically travel along the preset driving track. During the automatic driving of the self-balancing car along the preset driving path, the user does not need to Interventions simplify the user's operation, and the user can concentrate on controlling the image capture device for shooting, which is beneficial to obtain satisfactory shooting results.
步骤S303:基于获得的图像采集装置控制策略,控制图像采集装置进行图像采集。Step S303: Control the image acquisition device to perform image acquisition based on the obtained image acquisition device control strategy.
在具体实施过程中,该图像采集装置控制策略中可以包含一些用于控制图像采集装置的指令,例如:拍照指令,或开始录像指令,或结束录像指令,等等。In a specific implementation process, the image capture device control strategy may include some instructions for controlling the image capture device, such as a photographing instruction, or starting a recording instruction, or ending a recording instruction, and the like.
在具体实施过程中,图像采集装置控制策略可以在执行步骤S302之前获得,或在执行步骤S302过程中获得。In a specific implementation process, the image collection device control strategy may be obtained before performing step S302, or obtained during the execution of step S302.
举例来讲,用户可以通过控制设备向自平衡车发送图像采集装置控制策略,以使得自平衡车能够基于该图像采集装置控制策略,控制图像采集装置进行图像采集。其中,用户可以在自平衡车沿预设行驶轨迹行驶之前,通过控制设备向自平衡车发送图像采集装置控制策略;用户也可以在自平衡车沿预设行驶轨迹行驶过程中,通过控制设备向自平衡车发送图像采集装置控制策略。For example, the user can send an image acquisition device control strategy to the self-balancing vehicle through the control device, so that the self-balancing vehicle can control the image acquisition device to perform image acquisition based on the image acquisition device control strategy. Wherein, the user can send the image acquisition device control strategy to the self-balancing vehicle through the control device before the self-balancing vehicle travels along the preset driving track; the user can also pass the control device to the self-balancing vehicle along the preset driving track during the driving process. The self-balancing vehicle sends an image acquisition device control strategy.
在具体实施过程中,在执行步骤S302的过程中执行步骤S303,即,在自平衡车沿预设行驶轨迹行驶过程中,基于获得的图像采集装置控制策略,控制图像采集装置进行图像采集。In a specific implementation process, step S303 is performed in the process of performing step S302, that is, during the driving of the self-balancing vehicle along the preset driving track, the image capturing device is controlled to perform image acquisition based on the obtained image capturing device control strategy.
在本发明实施例中,用户可以向自平衡车发送一行驶控制指令,以使得自平衡车沿行驶控制指令所指示的预设行驶轨迹自动行驶,在自平衡车沿预设行驶轨迹自动行驶过程中,用户无需再进行干预,简化了用户的操作,用户可以专心控制图像采集装置进行拍摄,有利于获得满意的拍摄效果。In the embodiment of the present invention, the user may send a driving control command to the self-balancing vehicle, so that the self-balancing vehicle automatically travels along the preset driving track indicated by the driving control command, and automatically travels in the self-balancing vehicle along the preset driving path. In the user, the user does not need to intervene again, which simplifies the user's operation, and the user can concentrate on controlling the image capturing device to shoot, which is beneficial to obtain a satisfactory shooting effect.
作为一种可选的实施方式,步骤S303,包括:As an optional implementation manner, step S303 includes:
基于图像采集装置控制策略中的拍照指令,控制图像采集装置拍照;或基于图像采集装置控制策略中的开始录像指令,控制图像采集装置开始摄像;或基于图像采集装置控制策略中的结束录像指令,控制图像采集装置结束摄像。Controlling the image acquisition device to take a picture based on the photographing instruction in the image acquisition device control strategy; or controlling the image acquisition device to start imaging based on the start recording instruction in the image acquisition device control strategy; or based on the end recording instruction in the image acquisition device control strategy, The image capturing device is controlled to end the imaging.
作为一种可选的实施方式,步骤S303,包括:As an optional implementation manner, step S303 includes:
基于图像采集装置控制策略中的拍摄方向控制指令,确定一预设拍摄方向;在自平衡车沿预设行驶轨迹行驶过程中,调整图像采集装置的当前拍摄方向为预设拍摄方向。The preset shooting direction is determined based on the shooting direction control command in the image acquisition device control strategy; during the driving of the self-balancing vehicle along the preset driving track, the current shooting direction of the image capturing device is adjusted to be the preset shooting direction.
在具体实施过程中,在该图像采集装置控制策略中还可以包含一拍摄方向控制指令,该拍摄方向控制指令指示一预设拍摄方向,用户可以通过控制设备向自平衡车发送包含该拍摄方向控制指令的图像采集装置控制策略。在自平衡车接收到该图像采集装置控制策略后,基于其中的拍摄方向控制指令, 确定一预设拍摄方向,并控制云台转动,从而调整图像采集装置的当前拍摄方向为预设拍摄方向。In the specific implementation process, the image capture device control strategy may further include a shooting direction control command indicating a preset shooting direction, and the user may send the shooting direction control to the self-balancing vehicle through the control device. The commanded image acquisition device controls the strategy. After receiving the control strategy of the image acquisition device by the self-balancing vehicle, based on the shooting direction control command therein, Determining a preset shooting direction and controlling the pan/tilt rotation to adjust the current shooting direction of the image capturing device to a preset shooting direction.
举例来讲,如图2所示,在自平衡车沿直线行驶轨迹track_1行驶时,自平衡车当前位置为P1,以自平衡车前进的方向作为前方a1,那么,所述预设拍摄方向可以为:前方a1、后方b1,左方c1和右方d1。For example, as shown in FIG. 2, when the self-balancing vehicle travels along the straight traveling track track_1, the current position of the self-balancing vehicle is P1, and the direction in which the self-balancing vehicle advances is taken as the front a1, then the preset shooting direction may be It is: front a1, rear b1, left c1 and right d1.
举例来讲,如图3所示,在自平衡车沿环形行驶轨迹track_2行驶时,自平衡车当前位置为P2,以自平衡车前进的方向作为前方a2,那么,所述预设拍摄方向可以为:前方a2、后方b2,左方c2和右方d2。For example, as shown in FIG. 3, when the self-balancing vehicle travels along the circular traveling track track_2, the current position of the self-balancing vehicle is P2, and the direction in which the self-balancing vehicle advances is taken as the front a2, then the preset shooting direction may be It is: front a2, rear b2, left c2 and right d2.
举例来讲,如图4所示,在自平衡车沿自定义行驶轨迹track_3行驶时,自平衡车当前位置为P3,以自平衡车前进的方向作为前方a3,那么,所述预设拍摄方向可以为:前方a3、后方b3,左方c3和右方d3。For example, as shown in FIG. 4, when the self-balancing vehicle travels along the custom driving track track_3, the current position of the self-balancing vehicle is P3, and the direction in which the self-balancing vehicle advances is taken as the front a3, then the preset shooting direction is It can be: front a3, rear b3, left c3 and right d3.
另外,该拍摄方向也可以由用户设定为任意方向,例如,在控制设备的触摸屏上显示所述预设行驶轨迹、以及自平衡车的当前位置,且在自平衡车的当前位置处还显示一表示图像采集装置的图标,用户可以用手在触摸屏上转动该图标的方向,从而设定任意拍摄方向。In addition, the shooting direction can also be set to any direction by the user, for example, displaying the preset driving track and the current position of the self-balancing vehicle on the touch screen of the control device, and also displaying the current position of the self-balancing vehicle. An icon representing the image capture device, the user can manually rotate the direction of the icon on the touch screen to set an arbitrary shooting direction.
作为一种可选的实施方式,步骤S303,包括:As an optional implementation manner, step S303 includes:
基于图像采集装置控制策略中的拍摄时长控制指令,确定一预设拍摄时长;基于图像采集装置控制策略中的拍摄距离控制指令,确定预设拍摄距离;基于预设拍摄距离、以及预设拍摄时长,确定行驶速度;在自平衡车以该行驶速度沿预设行驶轨迹行驶过程中,在所述预设拍摄时长内,控制图像采集装置进行图像采集,获得一视频文件。Determining a preset shooting duration based on the shooting duration control command in the image capture device control strategy; determining a preset shooting distance based on the shooting distance control command in the image capture device control strategy; based on the preset shooting distance, and the preset shooting duration And determining a driving speed; during the driving of the self-balancing vehicle along the preset driving trajectory, controlling the image capturing device to perform image capturing during the preset shooting time to obtain a video file.
在具体实施过程中,在该图像采集装置控制策略中还可以包含拍摄距离控制指令和拍摄时长控制指令,该拍摄距离控制指令指示一预设拍摄距离,该拍摄时长控制指令指示一预设拍摄时长,用户可以通过控制设备向自平衡车发送包含该拍摄距离控制指令和拍摄时长控制指令的图像采集装置控制策略。在自平衡车接收到该图像采集装置控制策略后,基于其中的拍摄距离控制指令和拍摄时长控制指令,确定预设拍摄距离和预设拍摄时长,再基于等式“预设拍摄距离=预设拍摄时长×行驶速度”,计算出行驶速度;进一步控制自平衡车以该行驶速度沿预设行驶轨迹行驶,并拍摄一段预设时长的视频。In the specific implementation process, the image capture device control strategy may further include a shooting distance control command and a shooting duration control command, where the shooting distance control command indicates a preset shooting distance, and the shooting duration control command indicates a preset shooting time The user can send an image capture device control strategy including the shooting distance control command and the shooting duration control command to the self-balancing vehicle through the control device. After receiving the image acquisition device control strategy by the self-balancing vehicle, determining the preset shooting distance and the preset shooting time based on the shooting distance control command and the shooting duration control command, and then based on the equation “preset shooting distance=preset The shooting time×the driving speed” calculates the driving speed; further controls the self-balancing vehicle to travel along the preset driving trajectory at the driving speed, and shoots a video of a preset duration.
举例来讲,在预设行驶轨迹为直线行驶轨迹,预设拍摄时长为30秒,预设距离为15米时,则确定行驶速度为0.5米/秒,进一步,控制自平衡车以0.5米/秒的速度沿直线行驶轨迹行驶,在行驶过程中,控制图像采集装置进行图像采集30秒,获得一段30秒的视频文件。For example, if the preset driving track is a straight traveling track, the preset shooting time is 30 seconds, and when the preset distance is 15 meters, the traveling speed is determined to be 0.5 m/s. Further, the self-balancing car is controlled at 0.5 m/ The speed of the second travels along a straight line. During the driving process, the image acquisition device is controlled to perform image acquisition for 30 seconds to obtain a 30 second video file.
再举例来讲,在预设行驶轨迹为环形行驶轨迹,预设拍摄时长为20秒,预设距离为20米时,则确定行驶速度为1米/秒,进一步,控制自平衡车以1米/ 秒的速度沿环形行驶轨迹行驶,在行驶过程中,控制图像采集装置进行图像采集20秒,获得一段20秒的视频文件。For another example, when the preset driving track is a circular driving track, the preset shooting time is 20 seconds, and when the preset distance is 20 meters, the traveling speed is determined to be 1 meter/second. Further, the self-balancing car is controlled to 1 meter. / The speed of the second travels along the circular driving trajectory. During the driving process, the image capturing device is controlled to perform image acquisition for 20 seconds to obtain a 20-second video file.
在具体实施过程中,在自平衡车行驶过程中,可以利用VIO技术实时测量自平衡车的行驶速度,在自平衡车的行驶速度与计算出的行驶速度不同时,及时调整自平衡车的行驶速度。In the specific implementation process, during the self-balancing vehicle driving, the VIO technology can be used to measure the running speed of the self-balancing vehicle in real time. When the running speed of the self-balancing vehicle is different from the calculated driving speed, the self-balancing vehicle can be adjusted in time. speed.
在本发明实施例中,用户可以在控制设备上自由设置该图像采集装置控制策略中的任一指令(例如:拍摄指令、开始录像指令、结束录像指令、拍摄方向控制指令、拍摄时长控制指令、拍摄距离控制指令、等等),从而在自平衡车沿预设轨迹行驶过程中,控制图像采集装置进行拍摄,达到满意的拍摄效果。In the embodiment of the present invention, the user can freely set any instruction in the image acquisition device control strategy on the control device (for example, a shooting instruction, a start recording instruction, an end recording instruction, a shooting direction control instruction, a shooting duration control instruction, Shooting distance control commands, etc.), so that the image capturing device is controlled to shoot during the self-balancing vehicle along the preset trajectory to achieve satisfactory shooting results.
另外,该图像采集装置可以配备有多个镜头(例如:标准镜头和广角镜头),在图像采集装置控制策略中还包含一切换镜头控制指令,该拍摄距离控制指令指示一预设镜头,用户可以通过控制设备向自平衡车发送包含该切换镜头控制指令的图像采集装置控制策略。在自平衡车接收到该图像采集装置控制策略后,基于其中的切换镜头控制指令,确定一预设镜头,并将当前使用的镜头切换为预设镜头。In addition, the image capture device may be equipped with multiple lenses (for example, a standard lens and a wide-angle lens), and the image capture device control strategy further includes a switch lens control command indicating a preset lens that the user can pass The control device transmits an image capture device control strategy including the switch lens control command to the self-balancing vehicle. After receiving the image acquisition device control strategy by the self-balancing vehicle, based on the switching lens control command therein, a preset lens is determined, and the currently used lens is switched to the preset lens.
举例来讲,在图像采集装置当前使用的镜头为标准镜头时,用户通过控制设备向自平衡车发送一图像采集装置控制策略,在该图像采集装置控制策略中包含一切换镜头控制指令,该切换镜头控制指令指示的预设镜头为广角镜头,自平衡车则基于该切换镜头控制指,将将当前使用的镜头切换为广角镜头。For example, when the lens currently used by the image capture device is a standard lens, the user sends an image capture device control strategy to the self-balancing vehicle through the control device, and the image capture device control strategy includes a switch lens control command, the switch The preset lens indicated by the lens control command is a wide-angle lens, and the self-balancing vehicle switches the currently used lens to a wide-angle lens based on the switching lens control finger.
在具体实施过程中,在图像采集装置控制策略中可以包含上述拍照指令、开始录像指令、结束录像指令、拍摄方向控制指令、拍摄时长控制指令、拍摄距离控制指令、中的任意一种或多种指令。In a specific implementation process, the image capture device control strategy may include any one or more of the above-mentioned photographing instruction, start recording instruction, end recording instruction, shooting direction control instruction, shooting duration control command, and shooting distance control command. instruction.
基于同一发明构思,本发明实施例还提供一种自平衡车,自平衡车具有一图像采集装置,如图7所示,自平衡车还包括:Based on the same inventive concept, an embodiment of the present invention further provides a self-balancing vehicle. The self-balancing vehicle has an image capturing device. As shown in FIG. 7, the self-balancing vehicle further includes:
第二获得单元401,用于获得行驶控制指令,行驶控制指令用于指示自平衡车沿预设行驶轨迹行驶;a second obtaining unit 401, configured to obtain a driving control instruction, where the driving control instruction is used to instruct the self-balancing vehicle to travel along a preset driving track;
第三控制单元402,用于基于行驶控制指令,控制自平衡车沿预设行驶轨迹行驶;The third control unit 402 is configured to control the self-balancing vehicle to travel along the preset driving track based on the driving control instruction;
第四控制单元403,用于基于获得的图像采集装置控制策略,控制图像采集装置进行图像采集;其中,图像采集装置控制策略在自平衡车沿预设行驶轨迹行驶之前获得,或,图像采集装置控制策略在自平衡车沿预设行驶轨迹行驶的过程中获得。The fourth control unit 403 is configured to control the image capturing device to perform image acquisition based on the obtained image capturing device control strategy; wherein the image capturing device control strategy is obtained before the self-balancing vehicle travels along the preset driving track, or the image capturing device The control strategy is obtained during the journey of the self-balancing vehicle along the preset travel trajectory.
作为一种可选的实施方式,预设行驶轨迹,包括: As an optional implementation manner, the preset driving track includes:
直线行驶轨迹;或Straight path; or
环形行驶轨迹;或Ring travel track; or
自定义行驶轨迹。Customize the driving track.
作为一种可选的实施方式,第四控制单元403,包括:As an optional implementation manner, the fourth control unit 403 includes:
第一确定模块,用于基于图像采集装置控制策略中的拍摄方向控制指令,确定预设拍摄方向;a first determining module, configured to determine a preset shooting direction based on a shooting direction control instruction in an image capture device control strategy;
调整模块,用于在自平衡车沿预设行驶轨迹行驶过程中,调整图像采集装置的当前拍摄方向为预设拍摄方向。The adjustment module is configured to adjust the current shooting direction of the image capturing device to a preset shooting direction during the driving of the self-balancing vehicle along the preset driving track.
作为一种可选的实施方式,第四控制单元403,包括:As an optional implementation manner, the fourth control unit 403 includes:
第二确定模块,用于基于图像采集装置控制策略中的拍摄时长控制指令,确定预设拍摄时长;a second determining module, configured to determine a preset shooting duration based on a shooting duration control command in an image capture device control strategy;
第三确定模块,用于基于所述图像采集装置控制策略中的拍摄距离控制指令,确定预设拍摄距离;a third determining module, configured to determine a preset shooting distance based on a shooting distance control instruction in the image capturing device control strategy;
第四确定模块,用于基于所述预设拍摄距离、以及所述预设拍摄时长,确定行驶速度;a fourth determining module, configured to determine a driving speed based on the preset shooting distance and the preset shooting time length;
控制模块,用于在自平衡车以所述行驶速度沿预设行驶轨迹行驶过程中,基于预设拍摄时长,控制图像采集装置进行图像采集,获得一视频文件。And a control module, configured to control the image acquisition device to perform image acquisition based on the preset shooting duration during the driving of the self-balancing vehicle along the preset driving trajectory, to obtain a video file.
由于本实施例所介绍的自平衡车为实施本发明实施例中图像采集方法所采用的电子设备,故而基于本发明实施例中所介绍的图像采集的方法,本领域所属技术人员能够了解本实施例的自平衡车的具体实施方式以及其各种变化形式,所以在此对于该自平衡车如何实现本发明实施例中的方法不再详细介绍。只要本领域所属技术人员实施本发明实施例中图像采集的方法所采用的自平衡车,都属于本发明所欲保护的范围。Since the self-balancing vehicle described in this embodiment is an electronic device used in the image capturing method in the embodiment of the present invention, those skilled in the art can understand the present implementation based on the image capturing method introduced in the embodiment of the present invention. The specific embodiment of the self-balancing vehicle and its various variations are not described in detail herein for how the self-balancing vehicle implements the method in the embodiment of the present invention. As long as the person skilled in the art implements the self-balancing vehicle used in the image capturing method in the embodiment of the present invention, it is within the scope of the present invention.
上述本发明实施例中的技术方案,至少具有如下的技术效果或优点:The technical solutions in the foregoing embodiments of the present invention have at least the following technical effects or advantages:
1、在本发明实施例中,用户可以向自平衡车发送一行驶控制指令,以使得自平衡车沿行驶控制指令所指示的预设行驶轨迹自动行驶,行驶过程用户无需再进行干预,简化了用户的操作,用户可以专心控制图像采集装置进行拍摄,有利于达到满意的拍摄效果,有效地解决了现有技术中在用户操控电子设备进行拍摄时,存在操作复杂的技术问题。1. In the embodiment of the present invention, the user can send a driving control command to the self-balancing vehicle, so that the self-balancing vehicle automatically travels along the preset driving track indicated by the driving control instruction, and the user does not need to intervene during the driving process, which simplifies. The user's operation, the user can concentrate on controlling the image acquisition device for shooting, which is beneficial to achieve a satisfactory shooting effect, and effectively solves the technical problem that the operation is complicated when the user controls the electronic device to shoot in the prior art.
2、在本发明实施例中,还提供有多种图像采集装置控制策略,用户可以向自平衡车发送任一图像采集装置控制策略,以使得图像采集装置按照图像采集装置控制策略中的要求进行摄像,操作方便,有利于达到满意的拍摄效果。2. In the embodiment of the present invention, a plurality of image acquisition device control strategies are also provided, and the user can send any image acquisition device control strategy to the self-balancing vehicle, so that the image acquisition device performs the requirements in the image acquisition device control strategy. Camera, easy to operate, is conducive to achieve satisfactory results.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、 或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may employ an entirely hardware embodiment, an entirely software embodiment, Or in the form of an embodiment of the software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A medium that can store program code.
或者,本发明实施例上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 Alternatively, the above-described integrated unit of the embodiment of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a stand-alone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a removable storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.
鉴于此,本发明实施例还提供了一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行本发明实施例所述的图像采集方法。In view of this, an embodiment of the present invention further provides a computer readable storage medium, the storage medium comprising a set of computer executable instructions for performing an image collection method according to an embodiment of the present invention.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While the preferred embodiment of the invention has been described, it will be understood that Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Claims (9)

  1. 一种图像采集方法,应用于电子设备中,所述电子设备具有图像采集装置,其中,所述图像采集方法包括:An image acquisition method is applied to an electronic device, wherein the electronic device has an image acquisition device, wherein the image collection method includes:
    获得行驶控制指令,所述行驶控制指令用于指示所述电子设备沿预设行驶轨迹行驶;Obtaining a driving control instruction, the driving control instruction is used to instruct the electronic device to travel along a preset driving track;
    基于所述行驶控制指令,控制所述电子设备沿所述预设行驶轨迹行驶;Controlling the electronic device to travel along the preset driving track based on the driving control instruction;
    基于获得的图像采集装置控制策略,控制所述图像采集装置进行图像采集;其中,所述图像采集装置控制策略在所述电子设备沿所述预设行驶轨迹行驶之前获得,或,所述图像采集装置控制策略在所述电子设备沿所述预设行驶轨迹行驶的过程中获得。Controlling, by the image capturing device control strategy, the image capturing device to perform image capturing; wherein the image capturing device control strategy is obtained before the electronic device travels along the preset driving track, or the image is collected The device control strategy is obtained during the travel of the electronic device along the preset travel trajectory.
  2. 如权利要求1所述的图像采集方法,其中,所述预设行驶轨迹,包括:The image capturing method according to claim 1, wherein the preset driving track comprises:
    直线行驶轨迹;或Straight path; or
    环形行驶轨迹;或Ring travel track; or
    自定义行驶轨迹。Customize the driving track.
  3. 如权利要求1或2所述的图像采集方法,其中,所述基于获得的图像采集装置控制策略,控制所述图像采集装置进行图像采集,包括:The image acquisition method according to claim 1 or 2, wherein the controlling the image acquisition device to control image acquisition based on the obtained image acquisition device control strategy comprises:
    基于所述图像采集装置控制策略中的拍摄方向控制指令,确定预设拍摄方向;Determining a preset shooting direction based on a shooting direction control instruction in the image acquisition device control strategy;
    在所述电子设备沿预设行驶轨迹行驶过程中,调整所述图像采集装置的当前拍摄方向为所述预设拍摄方向。The current shooting direction of the image capturing device is adjusted to be the preset shooting direction during the driving of the electronic device along the preset driving track.
  4. 如权利要求1或2所述的图像采集方法,其中,所述基于获得的图像采集装置控制策略,控制所述图像采集装置进行图像采集,包括:The image acquisition method according to claim 1 or 2, wherein the controlling the image acquisition device to control image acquisition based on the obtained image acquisition device control strategy comprises:
    基于所述图像采集装置控制策略中的拍摄时长控制指令,确定预设拍摄时长;Determining a preset shooting duration based on a shooting duration control command in the image capture device control strategy;
    基于所述图像采集装置控制策略中的拍摄距离控制指令,确定预设拍摄距离;Determining a preset shooting distance based on a shooting distance control instruction in the image acquisition device control strategy;
    基于所述预设拍摄距离、以及所述预设拍摄时长,确定行驶速度;Determining the traveling speed based on the preset shooting distance and the preset shooting time length;
    在所述电子设备以所述行驶速度沿所述预设行驶轨迹行驶过程中,基于所述预设拍摄时长,控制所述图像采集装置进行图像采集,获得一视频文件。During the driving of the electronic device along the preset driving track at the traveling speed, the image capturing device is controlled to perform image capturing based on the preset shooting time to obtain a video file.
  5. 一种电子设备,所述电子设备具有图像采集装置,其中,所述电子设备还包括:An electronic device, the electronic device having an image capture device, wherein the electronic device further includes:
    获得单元,配置为获得行驶控制指令,所述行驶控制指令用于指示所述电子设备沿预设行驶轨迹行驶;a obtaining unit configured to obtain a driving control command, where the driving control command is used to instruct the electronic device to travel along a preset driving track;
    第一控制单元,配置为基于所述行驶控制指令,控制所述电子设备沿所述预设行驶轨迹行驶; a first control unit configured to control the electronic device to travel along the preset driving track based on the driving control instruction;
    第二控制单元,配置为基于获得的图像采集装置控制策略,控制所述图像采集装置进行图像采集;其中,所述图像采集装置控制策略在所述电子设备沿所述预设行驶轨迹行驶之前获得,或,所述图像采集装置控制策略在所述电子设备沿所述预设行驶轨迹行驶的过程中获得。a second control unit configured to control the image acquisition device to perform image acquisition based on the obtained image capture device control strategy; wherein the image capture device control strategy is obtained before the electronic device travels along the preset travel track Or, the image capture device control strategy is obtained during the traveling of the electronic device along the preset travel trajectory.
  6. 如权利要求5所述的电子设备,其中,所述预设行驶轨迹,包括:The electronic device of claim 5, wherein the preset driving track comprises:
    直线行驶轨迹;或Straight path; or
    环形行驶轨迹;或Ring travel track; or
    自定义行驶轨迹。Customize the driving track.
  7. 如权利要求5或6所述的电子设备,其中,所述第二控制单元,包括:The electronic device of claim 5 or 6, wherein the second control unit comprises:
    第一确定模块,配置为基于所述图像采集装置控制策略中的拍摄方向控制指令,确定预设拍摄方向;a first determining module, configured to determine a preset shooting direction based on a shooting direction control instruction in the image capturing device control policy;
    调整模块,配置为在所述电子设备沿预设行驶轨迹行驶过程中,调整所述图像采集装置的当前拍摄方向为所述预设拍摄方向。And an adjustment module configured to adjust a current shooting direction of the image capturing device to the preset shooting direction during the driving of the electronic device along a preset driving track.
  8. 如权利要求5或6所述的电子设备,其中,所述第二控制单元,包括:The electronic device of claim 5 or 6, wherein the second control unit comprises:
    第二确定模块,配置为基于所述图像采集装置控制策略中的拍摄时长控制指令,确定预设拍摄时长;a second determining module, configured to determine a preset shooting duration based on a shooting duration control command in the image capturing device control policy;
    第三确定模块,配置为基于所述图像采集装置控制策略中的拍摄距离控制指令,确定预设拍摄距离;a third determining module, configured to determine a preset shooting distance based on a shooting distance control instruction in the image capturing device control policy;
    第四确定模块,配置为基于所述预设拍摄距离、以及所述预设拍摄时长,确定行驶速度;a fourth determining module, configured to determine a traveling speed based on the preset shooting distance and the preset shooting time length;
    控制模块,配置为在所述电子设备以所述行驶速度沿所述预设行驶轨迹行驶过程中,基于所述预设拍摄时长,控制所述图像采集装置进行图像采集,获得一视频文件。The control module is configured to control the image acquisition device to perform image acquisition based on the preset shooting duration during the driving of the electronic device along the preset driving track at the traveling speed, to obtain a video file.
  9. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行权利要求1-4任一项所述的图像采集方法。 A computer storage medium having computer executable instructions stored thereon, the computer executable instructions being configured to perform the image acquisition method of any of claims 1-4.
PCT/CN2017/079026 2016-03-31 2017-03-31 Image acquisition method, electronic device, and computer storage medium WO2017167279A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610201041.6 2016-03-31
CN201610201041.6A CN105872372A (en) 2016-03-31 2016-03-31 Image acquisition method and electronic device

Publications (1)

Publication Number Publication Date
WO2017167279A1 true WO2017167279A1 (en) 2017-10-05

Family

ID=56626687

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079026 WO2017167279A1 (en) 2016-03-31 2017-03-31 Image acquisition method, electronic device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN105872372A (en)
WO (1) WO2017167279A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872372A (en) * 2016-03-31 2016-08-17 纳恩博(北京)科技有限公司 Image acquisition method and electronic device
CN106598081B (en) * 2016-10-27 2019-08-23 纳恩博(北京)科技有限公司 A kind of image-pickup method and electronic equipment
WO2018191989A1 (en) * 2017-04-22 2018-10-25 深圳市大疆灵眸科技有限公司 Capture control method and apparatus
WO2019195991A1 (en) * 2018-04-09 2019-10-17 深圳市大疆创新科技有限公司 Trajectory determination and time-lapse photography methods, device, and machine readable storage medium
CN109889982A (en) * 2019-03-08 2019-06-14 芋头科技(杭州)有限公司 Positioning navigation data acquisition system and method
CN111010510B (en) * 2019-12-10 2021-11-16 维沃移动通信有限公司 Shooting control method and device and electronic equipment
CN112896145B (en) * 2021-03-10 2022-07-05 浙江三一装备有限公司 Crawler type working machine control method and device and crawler type working machine
CN113341950A (en) * 2021-05-13 2021-09-03 东莞职业技术学院 Intelligent sterilization robot, sterilization method and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122172A (en) * 2010-12-31 2011-07-13 中国科学院计算技术研究所 Image pickup system and control method thereof for machine motion control
US20130011234A1 (en) * 2010-03-01 2013-01-10 John Pretlove Mobile Robot For A Harsh, Corrosive Outdoor Environment
CN202939496U (en) * 2012-10-24 2013-05-15 刘建新 Low-altitude-track intelligent robot photographing system
CN103777644A (en) * 2012-10-24 2014-05-07 刘建新 Low-altitude orbit intelligent robot image pick-up system and photographing method thereof
CN203761481U (en) * 2013-11-14 2014-08-06 深圳市视晶无线技术有限公司 Wireless shooting management system with auxiliary camera head
CN105872372A (en) * 2016-03-31 2016-08-17 纳恩博(北京)科技有限公司 Image acquisition method and electronic device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5883275B2 (en) * 2011-11-18 2016-03-09 東芝アルパイン・オートモティブテクノロジー株式会社 In-vehicle camera calibration device
CN105120146B (en) * 2015-08-05 2018-06-26 普宙飞行器科技(深圳)有限公司 It is a kind of to lock filming apparatus and image pickup method automatically using unmanned plane progress moving object
CN105159317A (en) * 2015-09-14 2015-12-16 深圳一电科技有限公司 Unmanned plane and control method
CN105391939B (en) * 2015-11-04 2017-09-29 腾讯科技(深圳)有限公司 Unmanned plane filming control method and device, unmanned plane image pickup method and unmanned plane
CN105425810A (en) * 2015-12-29 2016-03-23 国家电网公司 Unmanned aerial vehicle for inspection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130011234A1 (en) * 2010-03-01 2013-01-10 John Pretlove Mobile Robot For A Harsh, Corrosive Outdoor Environment
CN102122172A (en) * 2010-12-31 2011-07-13 中国科学院计算技术研究所 Image pickup system and control method thereof for machine motion control
CN202939496U (en) * 2012-10-24 2013-05-15 刘建新 Low-altitude-track intelligent robot photographing system
CN103777644A (en) * 2012-10-24 2014-05-07 刘建新 Low-altitude orbit intelligent robot image pick-up system and photographing method thereof
CN203761481U (en) * 2013-11-14 2014-08-06 深圳市视晶无线技术有限公司 Wireless shooting management system with auxiliary camera head
CN105872372A (en) * 2016-03-31 2016-08-17 纳恩博(北京)科技有限公司 Image acquisition method and electronic device

Also Published As

Publication number Publication date
CN105872372A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
WO2017167279A1 (en) Image acquisition method, electronic device, and computer storage medium
EP2987026B1 (en) System and method for controlling an equipment related to image capture
CN109960401B (en) Dynamic projection method, device and system based on face tracking
JP4548850B2 (en) Method and apparatus for selecting a stereoscopic image
WO2021022580A1 (en) Method and system for automatic tracking and photographing
WO2018076573A1 (en) Image acquisition method, electronic device, and storage medium
JP5703448B2 (en) Image display device and image display method
WO2018120012A1 (en) Method and device for controlling cradle head, and cradle head
WO2019227441A1 (en) Video control method and device of movable platform
WO2019061063A1 (en) Image collection method for unmanned aerial vehicle, and unmanned aerial vehicle
EP3306428A1 (en) Autonomous system for collecting moving images by a drone with target tracking and upkeep of the target collection angle
WO2019104569A1 (en) Focusing method and device, and readable storage medium
CN108141540B (en) Omnidirectional camera with motion detection
CN104349038B (en) Enable the method and electronic equipment of pan-shot
US9319591B2 (en) Display control device, display control method, program, and imaging apparatus
JP2017072986A (en) Autonomous flying device, control method and program of autonomous flying device
US20190122568A1 (en) Autonomous vehicle operation
EP3273317A1 (en) Autonomous system for taking moving images, comprising a drone and a ground station, and associated method
US20210289133A1 (en) Method and system of controlling video play speed, control terminal and mobile platform
CN104506773A (en) Camera automatic zoom control method based on human eye distance
JP4714036B2 (en) Moving cart with camera head
CN105657238A (en) Tracking focusing method and apparatus
JP2016201626A (en) Shift element controller, shift element control program and optical apparatus
CN107003680B (en) Control the mobile methods, devices and systems of mobile object
JP5084542B2 (en) Automatic tracking imaging device, automatic tracking imaging method, and automatic tracking imaging program

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17773309

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17773309

Country of ref document: EP

Kind code of ref document: A1