Device control method and apparatus, electronic device, and storage medium

By encapsulating multiple functional files in the terminal and utilizing LAN communication, the high development cost and low scalability problems caused by different camera SDK interface designs are solved, and unified control and wide applicability across devices are achieved.

CN116095470BActive Publication Date: 2025-10-24BEIJING BERLIN INTERACTIVE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310100849.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-07
Publication Date
2025-10-24
Estimated Expiration
2043-02-07

AI Technical Summary

Technical Problem

The control method of vehicle cameras in the existing technology requires designing special interfaces for different camera SDKs, resulting in high development costs and poor scalability.

Method used

Multiple function files are encapsulated through SDK and pre-configured on the terminal. The same function file is used to control different types of image acquisition devices, and the local area network is used for communication to avoid dependence on the mobile network.

Benefits of technology

The development cost is reduced, the scalability and applicability of the method are improved, and it can work normally in areas with poor mobile network signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116095470B_ABST
    Figure CN116095470B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a device control method and device, electronic device and storage medium, and relate to the technical field of vehicles. The method comprises: receiving an operation instruction of a user for a first image acquisition device in at least two image acquisition devices of a vehicle; in response to the operation instruction, determining a first function file matched with the operation instruction from a plurality of function files encapsulated; the function file is encapsulated in a first terminal through a software development kit (SDK); calling a function corresponding to the first function file to control the first image acquisition device through a local area network (LAN); the first terminal and the first image acquisition device are both connected to the LAN, and the LAN is established based on at least one vehicle-mounted router. When the image acquisition device on the vehicle is changed, the code does not need to be re-written, and the development cost is low; the LAN is established based on at least one vehicle-mounted router, and does not need to rely on a mobile network, and can be applied to remote areas with poor mobile network signals.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of vehicles, in particular, the present application relates to a device control method and device, electronic equipment and storage medium. BACKGROUND

[0002] With the rapid development of automobile technology, most vehicles will be installed with a camera, through the camera on the vehicle, the environment inside and outside the vehicle can be monitored, to provide protection for the driving safety of the vehicle.

[0003] At present, the control method of the camera on the vehicle is mainly through the terminal calling the SDK (Software Development Kit) of the corresponding camera, the SDK of the camera is designed and configured in the vehicle camera by the manufacturer, and the SDK of different cameras is also different. Therefore, when calling different camera SDKs, different interfaces corresponding to different camera SDKs need to be designed, which has high development cost and poor scalability. SUMMARY

[0004] The embodiments of the present application provide a device control method and device, electronic equipment and storage medium, which can solve the problem of high development cost and poor scalability in the prior art.

[0005] The technical solution is as follows:

[0006] According to an aspect of an embodiment of the present application, a device control method is provided, which is applied to a first terminal and includes:

[0007] Receiving an operation instruction of a user for a first image acquisition device in at least two image acquisition devices of a vehicle;

[0008] In response to the operation instruction, determining a first function file matched with the operation instruction from a plurality of function files encapsulated; the function file is encapsulated in the first terminal by a software development kit (SDK);

[0009] Calling a function corresponding to the first function file to control the first image acquisition device through a local area network;

[0010] The first terminal and the first image acquisition device are connected to the local area network, and the local area network is established based on at least one vehicle-mounted router.

[0011] Optionally, the function corresponding to the first function file is a connection function, and the function corresponding to the first function file is a connection function;

[0012] The function corresponding to the first function file is called to control the first image acquisition device, including at least one of the following:

[0013] The connection function is called to open the first image acquisition device;

[0014] The connection function is called to establish a connection with the first image acquisition device when it is detected that the first image acquisition device is in an open state;

[0015] The connection function is called to detect the connection state of the first image acquisition device;

[0016] The connection function is called to listen to the device state of the first image acquisition device, and when a change in the device state is detected, the device state of the first image acquisition device is obtained;

[0017] The connection function is called to close the first image acquisition device and disconnect the connection with the first image acquisition device.

[0018] Optionally, the function corresponding to the first function file is a preview function, and the function corresponding to the first function file is a preview function;

[0019] The function corresponding to the first function file is called to control the first image acquisition device, including at least one of the following:

[0020] The preview function is called to start the preview function of the first image acquisition device, and the data captured by the first image acquisition device is obtained;

[0021] The preview function is called to listen to the preview state of the first image acquisition device, and when a change in the preview state is detected, the preview state is obtained;

[0022] The preview function is called to set the resolution of the output video stream of the first image acquisition device;

[0023] The preview function is called to close the preview function of the first image acquisition device.

[0024] Optionally, the function corresponding to the first function file is a live function, and the function corresponding to the first function file is a live function;

[0025] The function corresponding to the first function file is called to control the first image acquisition device, including at least one of the following:

[0026] The live broadcast function is called to start the live broadcast function of the first image acquisition device, set live broadcast parameters, and obtain data captured by the first image acquisition device based on the live broadcast parameters; the live broadcast parameters include at least one of live broadcast streaming parameters, a real-time message transmission protocol (RTMP) streaming address, a video size, and whether it is panoramic;

[0027] The live broadcast function is called to monitor the live broadcast state of the first image acquisition device, and when a change in the live broadcast state is monitored, the live broadcast state of the first image acquisition device is obtained.

[0028] The live broadcast function is called to close the live broadcast function of the first image acquisition device.

[0029] Optionally, the function corresponding to the first function file is a photographing function; and the function corresponding to the first function file is a photographing function.

[0030] The function corresponding to the first function file is called to control the first image acquisition device, including at least one of the following:

[0031] The photographing function is called to start the photographing function of the first image acquisition device, and a photographing mode of the first image acquisition device is set to instruct the first image acquisition device to photograph in the photographing mode.

[0032] The photographing function is called to set a data format output by the first image acquisition device, and an image output by the first image acquisition device in the data format is obtained.

[0033] The photographing function is called to close the photographing function of the first image acquisition device.

[0034] Optionally, the function corresponding to the first function file is a video recording function; and the function corresponding to the first function file is a video recording function.

[0035] The function corresponding to the first function file is called to control the first image acquisition device, including at least one of the following:

[0036] The video recording function is called to start the video recording function of the first image acquisition device, and a video recording mode of the first image acquisition device is set to instruct the first image acquisition device to record in the video recording mode.

[0037] The video recording function is called to obtain a recording state of the first image acquisition device.

[0038] The video recording function is called to obtain a recording duration of the first image acquisition device when the recording state of the first image acquisition device is recording.

[0039] The video recording function is called to obtain a file storage path of data collected by the first image collection device when a recording state of the first image collection device is recording end;

[0040] The video recording function is called to close the video recording function of the first image collection device.

[0041] Optionally, the function corresponding to the first function file is a device information acquisition function, and the function corresponding to the first function file is a device information acquisition function.

[0042] The function corresponding to the first function file is called to control the first image collection device, including:

[0043] The device information acquisition function is called to obtain device information of the first image collection device; the device information includes at least one of device parameters, gyroscope data, battery information, charging status, storage space information, host address and file list information of the first image collection device.

[0044] Optionally, the function corresponding to the first function file is a file information acquisition function, and the function corresponding to the first function file is a file information acquisition function.

[0045] The function corresponding to the first function file is called to control the first image collection device, including:

[0046] The file object returned by the first image collection device is obtained.

[0047] The file information acquisition function is called through the file object to obtain file information of the first image collection device.

[0048] Optionally, the function corresponding to the first function file is a file export function, and the function corresponding to the first function file is a file export function.

[0049] The function corresponding to the first function file is called to control the first image collection device, including at least one of:

[0050] The file export function is called to start the file export function of the first image collection device, set the file export mode of the first image collection device, and obtain the target file exported in the file export mode; the file export mode includes a first mode, a second mode and a third mode; the first mode is used to export the image format to the image format, the second mode is used to export the video format to the video format, and the third mode is used to export the video format to the image format.

[0051] Calling the file export function to monitor the file export status of the first image acquisition device, and when a change in the file export status is detected, obtaining the file export status of the first image acquisition device;

[0052] The file export function is called to close the file export function of the first image acquisition device.

[0053] Optionally, the method further includes:

[0054] receiving a remote operation instruction sent by a second terminal; the first terminal and the second terminal are connected to each other based on the local area network;

[0055] selecting a second image acquisition device from the at least two image acquisition devices according to the remote operation instruction, and selecting a second function file from the plurality of function files;

[0056] The function corresponding to the second function file is called to control the second image acquisition device.

[0057] According to another aspect of an embodiment of the present application, there is provided a device control apparatus, the apparatus comprising:

[0058] An operation instruction receiving module, configured to receive an operation instruction from a user for a first image acquisition device among at least two image acquisition devices of a vehicle;

[0059] an operation instruction response module, configured to determine, in response to the operation instruction, a first function file that matches the operation instruction from a plurality of packaged function files; the function file is packaged in the first terminal via a software development kit (SDK);

[0060] a device control module, configured to call a function corresponding to the first function file to control the first image acquisition device via a local area network;

[0061] The first terminal and the first image acquisition device are both connected to the local area network, and the local area network is established based on at least one vehicle-mounted router.

[0062] According to another aspect of an embodiment of the present application, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned device control methods when executing the program.

[0063] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned device control methods are implemented.

[0064] The technical scheme provided by the embodiments of the present application has the beneficial effects of:

[0065] The plurality of function files are encapsulated by the SDK, and the plurality of function files are pre-configured in the first terminal, so that the same function file can be used to control different types of image acquisition devices to implement corresponding functions. When the image acquisition device mounted on the vehicle is changed, there is no need to re-write the code for the changed image acquisition device, which greatly reduces the development cost and improves the scalability of the method. The method is not limited by the type of the image acquisition device mounted on the vehicle, and can be reused on different vehicles.

[0066] In addition, the local area network is established by the at least one vehicle-mounted router, and the first terminal and the first image acquisition device communicate through the local area network, without relying on the mobile network for communication, avoiding the influence of the mobile network signal, and being applicable to remote areas with poor mobile network signal, thereby improving the application range of the method. BRIEF DESCRIPTION OF DRAWINGS

[0067] In order to more clearly illustrate the technical scheme in the embodiments of the present application, the drawings needed in the description of the embodiments of the present application will be briefly introduced.

[0068] Figure 1 The flowchart of the device control method provided by the embodiments of the present application is shown in the figure.

[0069] Figure 2 The flowchart of the device control method provided by another embodiment of the present application is shown in the figure.

[0070] Figure 3 The application scenario diagram of the device control method provided by the embodiments of the present application is shown in the figure.

[0071] Figure 4 The structure diagram of the device control apparatus provided by the embodiments of the present application is shown in the figure.

[0072] Figure 5 The structure diagram of the electronic device provided by the embodiments of the present application is shown in the figure. DETAILED DESCRIPTION

[0073] The embodiments of the present application will be described below in conjunction with the drawings in the present application. It should be understood that the embodiments described below in conjunction with the drawings are exemplary descriptions for explaining the technical scheme of the embodiments of the present application, and do not limit the technical scheme of the embodiments of the present application.

[0074] Those skilled in the art can understand that the singular forms "a", "an" and "the" used herein include plural forms unless specifically stated otherwise. It should be further understood that the terms "include" and "contain" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude other features, information, data, steps, operations, elements, components and / or their combinations supported by the present technology. It should be understood that when we say that an element is "connected" or "coupled" to another element, the element can be directly connected or coupled to the other element, or it can mean that the element and the other element establish a connection relationship through an intermediate element. In addition, "connection" or "coupling" used herein can include wireless connection or wireless coupling. The term "and / or" used herein indicates that at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".

[0075] For the purpose, technical solutions and advantages of the present application to be clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

[0076] The technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application will be described below through the description of several exemplary embodiments. It should be pointed out that the following embodiments can be mutually referenced, borrowed or combined, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.

[0077] Figure 1 A flowchart of a device control method provided by the embodiments of the present application is shown in FIG. 1, which is taken as an example that the method is applied to a first terminal. The method comprises the following steps. Figure 1

[0078] In step S101, an operation instruction of a user for a first image acquisition device in at least two image acquisition devices of a vehicle is received.

[0079] Specifically, a plurality of hardware devices can be carried on the first vehicle, including but not limited to the first terminal and the at least two image acquisition devices. The first terminal can be a vehicle terminal or a user terminal. The user terminal can include a smart phone, a tablet computer, a notebook computer, a smart voice interaction device (such as a smart speaker) or a wearable electronic device (such as a smart watch) and the like.

[0080] ​The image acquisition device can be a camera. The image acquisition device can be loaded on the vehicle, for example, four cameras can be externally arranged in the front, rear, left and right directions of the vehicle. The image acquisition device can also be loaded on the vehicle-mounted unmanned aerial vehicle. The vehicle-mounted unmanned aerial vehicle refers to an unmanned aerial vehicle carried on the vehicle, for example, carried on the roof of the vehicle. Since the unmanned aerial vehicle can leave the vehicle and fly to an area at a certain distance from the vehicle, the image acquisition device carried on the unmanned aerial vehicle can capture a larger range of areas.

[0081] The at least two image acquisition devices can be all carried on the vehicle, all carried on the unmanned aerial vehicle, or partially carried on the vehicle and partially carried on the unmanned aerial vehicle. The number of image acquisition devices and the specific mounting manner are not limited in the embodiments of the present application.

[0082] The first terminal receives an operation instruction input by the user for the first image device. The first image device can be determined by the user from the at least two image acquisition devices of the vehicle and needs to be controlled. The first image device can be one or multiple, and the number of the first image device is not limited in the embodiments of the present application.

[0083] The first terminal can be installed with an APP (Application) providing a device control function. The user can interact with the APP on the first terminal. The operation instruction received by the first terminal can be input by the user through an interactive control in the APP. The interactive control can be a voice interactive control or a text interactive control. The input mode of the operation instruction is not limited in the embodiments of the present application.

[0084] In step S102, a first function file matched with the operation instruction is determined from the plurality of function files encapsulated, in response to the operation instruction. The function file is encapsulated in the first terminal by a software development kit (SDK).

[0085] Specifically, the operation instruction can not only include which devices need to be controlled, but also include which functions need to be executed by each device.

[0086] According to the operation instruction, the target function that the user needs to control the first image acquisition device to execute can be determined, and then the function file corresponding to the target function is determined from the plurality of function files encapsulated in the first terminal as the first function file matched with the operation instruction.

[0087] The first function file can be one or multiple. One first image acquisition device can correspond to one first function file or multiple first function files, and the present application does not limit this.

[0088] The function file can be a file corresponding to a function of controlling the image acquisition device to perform a certain function, and each function file can correspond to one function. For example, a live broadcast function file can be set for a live broadcast function of the image acquisition device, and a video recording function file can be set for a video recording function of the image acquisition device.

[0089] For different types of image acquisition devices, such as different models of image acquisition devices or image acquisition devices from different manufacturers, the implementation methods of the different types of image acquisition devices for the same function can be packaged through a software development kit (SDK), a corresponding function file is generated, and the function file is preloaded into the first terminal.

[0090] Each function file includes an implementation method of different types of image acquisition devices for a function, that is, the same function file can be used to control different types of image acquisition devices to implement the corresponding function, and multiple function files are preloaded on the side of the first terminal. Therefore, it is not necessary to design a corresponding interface for each type of image acquisition device to call the SDK built in the image acquisition device. In particular, when the image acquisition device mounted on the vehicle is changed, for example, when the image acquisition device A is replaced by the image acquisition device B, or when the image acquisition device C is added, it is not necessary to recompile the code for the changed image acquisition device, which greatly reduces the development cost and improves the scalability of the method.

[0091] In addition, the device control method provided by the embodiment of the present application is not limited by the type of the image acquisition device mounted on the vehicle, so the method applied to the first vehicle can be reused on the second vehicle, further reducing the development cost and improving the reusability of the method.

[0092] In step S103, the function corresponding to the first function file is called to control the first image acquisition device through the local area network.

[0093] Specifically, each function file records a method for implementing the corresponding function, and each method can be represented in the form of a function. After determining the first function file matched with the operation instruction, the function corresponding to the first function file can be called to control the first image acquisition device to perform the corresponding function through the function.

[0094] The first terminal and the first image acquisition device can be connected to the same local area network, and the first terminal can communicate with the first image acquisition device through the local area network by Wi-Fi (wireless network communication technology). The first terminal and the first image acquisition device can be configured with corresponding communication modules, such as network cards.

[0095] It should be noted that the first terminal and the first image acquisition device are in the same local area network, that is, in the same network segment, so even if the first image acquisition device is in a shutdown state, the first image acquisition device can be started through Wi-Fi communication.

[0096] The local area network connected with the first terminal and the first image acquisition device can be established based on at least one vehicle-mounted router, the at least one vehicle-mounted router can be carried on the same vehicle or different vehicles, and can be carried on the first vehicle or other vehicles except the first vehicle. When the number of vehicle-mounted routers is at least two, the mesh function or the bridge function of each of the at least two routers can be enabled to form a local area network.

[0097] Compared with the prior art in which the devices on the vehicle communicate through the LTE (Long Term Evolution) mobile network, in some remote areas with poor mobile network signals, such as mountainous areas or uninhabited areas, or even areas without network, the devices cannot communicate with each other or the communication quality is poor. In the embodiment of the application, the local area network is established through the at least one vehicle-mounted router, so the first terminal and the first image acquisition device can communicate through the local area network only when they are in the area covered by the local area network, and do not need to rely on the mobile network for communication, and thus are not affected by the quality of the mobile network signal, and can be applied to remote areas with poor mobile network signals, thereby improving the application range of the method.

[0098] The method provided in the embodiment of the application encapsulates a plurality of function files through an SDK, and preconfigures the plurality of function files in the first terminal, so that the same function file can be used to control different types of image acquisition devices to implement corresponding functions. When the image acquisition device carried on the vehicle is changed, the code for the changed image acquisition device does not need to be re-written, thereby greatly reducing the development cost and improving the scalability of the method; and the method is not limited by the types of image acquisition devices carried on the vehicle, and can be reused on different vehicles.

[0099] In addition, the local area network is established through the at least one vehicle-mounted router, and the first terminal and the first image acquisition device communicate through the local area network, so the first terminal and the first image acquisition device do not need to rely on the mobile network for communication, and thus are not affected by the quality of the mobile network signal, and can be applied to remote areas with poor mobile network signals, thereby improving the application range of the method.

[0100] The implementation methods of the functions corresponding to the respective function files will be described below.

[0101] As an optional embodiment, the function corresponding to the first function file is a connection function; and the function corresponding to the first function file is a connection function.

[0102] invoking a function corresponding to the first function file to control the first image acquisition device, including at least one of the following:

[0103] invoking a connection function to open the first image acquisition device;

[0104] invoking a connection function to open the first image acquisition device; and establishing a connection with the first image acquisition device when detecting that the first image acquisition device is in an open state;

[0105] invoking a connection function to detect a connection state of the first image acquisition device;

[0106] invoking a connection function to close the first image acquisition device and disconnect the connection with the first image acquisition device;

[0107] invoking a connection function to listen to a device state of the first image acquisition device, and obtaining the device state of the first image acquisition device when detecting that the device state changes.

[0108] Specifically, the first function file is used to control the image acquisition device to perform a connection function, and the function corresponding to the first function file is a connection function. The connection function can include a method for the image acquisition device to perform the connection function.

[0109] In this case, invoking the connection function can control the image acquisition device to perform at least one of the following operations:

[0110] (1) opening the first image acquisition device, the connection function can include an opening method of different image acquisition devices, that is, different image acquisition devices can be opened by invoking the connection function.

[0111] (2) when detecting that the first image acquisition device is in an open state, the first terminal can establish a Socket channel with the first image acquisition device, and perform Socket communication through the Socket channel. The Socket communication between the first terminal and the first image acquisition device can be understood as a direct communication mode between the first terminal and the first image acquisition device, and the Socket communication can only be performed when the image acquisition device is powered on. After the image acquisition device is powered on, the first terminal can perform subsequent control operations on the first image acquisition device through the Socket communication.

[0112] (3) detecting a connection state of the first image acquisition device and the first terminal, wherein the connection state can include connected and unconnected.

[0113] (4) listening to the device state of the first image collection device, and obtaining the device state of the first image collection device when the device state of the first image collection device is found to change; wherein the device state can include a storage card available state, a device internal error state, a storage card available storage space state, a battery power state or a low power reminder. For example, when the first terminal finds that the available storage space of the storage card of the first image collection device is reduced, the first terminal can obtain the changed available storage space of the storage card of the first image collection device, and when the available storage space of the storage card is less than a preset threshold, the first terminal can send a reminder message of "insufficient available storage space" to the user.

[0114] The skilled in the art can know that the above listening process is performed under the authorization or permission of the user.

[0115] By calling the connection function to listen to the device state of the first image collection device, the running condition of the first image collection device is monitored in real time, and when the first image collection device fails to run, the device state of the first image collection device is obtained, which is convenient for analyzing the cause of the device failure and solving the problem, and is beneficial to ensure the stability of the image collection device.

[0116] (5) closing the first image collection device, and disconnecting the Socket communication between the first image collection device and the first terminal by closing the Socket channel between the first image collection device and the first terminal.

[0117] As an optional embodiment, the function corresponding to the first function file is a preview function, and the function corresponding to the first function file is a preview function.

[0118] The function corresponding to the first function file is called to control the first image collection device, including at least one of the following:

[0119] The preview function is called to start the preview function of the first image collection device, and the data photographed by the first image collection device is obtained;

[0120] The preview function is called to close the preview function of the first image collection device;

[0121] The preview function is called to listen to the preview state of the first image collection device, and the preview state is obtained when the preview state is found to change;

[0122] The preview function is called to set the resolution of the output video stream of the first image collection device.

[0123] Specifically, the first function file is used to control the image collection device to execute the preview function, and the function corresponding to the first function file is the preview function, and the preview function can include the method of the image collection device executing the preview function.

[0124] In this case, calling the preview function can control the image acquisition device to perform at least one of the following operations:

[0125] (1) When the first image acquisition device is in an open state and connected to the first terminal, the preview function of the first image acquisition device is started, and data captured by the first image acquisition device is obtained. On this basis, the data captured by the first image acquisition device can also be displayed on the first terminal for the user to preview.

[0126] (2) The preview state of the first image acquisition device is monitored, and when a change in the preview state is detected, the changed preview state is obtained; the preview state can include being opened, being opened, being stopped, or preview error information.

[0127] By monitoring the preview state of the first image acquisition device, the preview of the first image acquisition device can be effectively monitored in real time.

[0128] (3) The resolution of the video stream output by the first image acquisition device is set; the resolution of the output video stream can be adaptively adjusted according to the device condition of the first image acquisition device and / or the network quality of the local area network; or the resolution input by the user can be obtained through the interaction between the first terminal and the user, and the resolution is set as the resolution of the video stream output by the first image acquisition device.

[0129] (4) The preview function of the first image acquisition device is closed, and at this time, the first image acquisition device stops returning the captured data to the first terminal.

[0130] As an optional embodiment, the function corresponding to the first function file is a live broadcast function; the function corresponding to the first function file is a live broadcast function;

[0131] Calling the function corresponding to the first function file controls the first image acquisition device, including at least one of the following:

[0132] The live broadcast function of the first image acquisition device is started by calling the live broadcast function, live broadcast parameters are set, and data captured by the first image acquisition device based on the live broadcast parameters is obtained; the live broadcast parameters include at least one of live broadcast stream parameters, real-time message transmission protocol RTMP stream address, video size, and whether it is panoramic;

[0133] The live broadcast state of the first image acquisition device is monitored by calling the live broadcast function, and when a change in the live broadcast state is detected, the live broadcast state of the first image acquisition device is obtained.

[0134] The live broadcast function of the first image acquisition device is closed by calling the live broadcast function.

[0135] Specifically, the first function file is used to control the image acquisition device to perform a live broadcast function, and the function corresponding to the first function file is a live broadcast function. The live broadcast function can include a method for the image acquisition device to perform the live broadcast function.

[0136] In this case, calling the live broadcast function can control the image acquisition device to perform at least one of the following operations:

[0137] (1) When the first image acquisition device is in an open state and connected to the first terminal, starting the live broadcast function of the first image acquisition device, setting live broadcast parameters, and obtaining data captured by the first image acquisition device under the set live broadcast parameters.

[0138] The live broadcast parameters can include at least one of live broadcast streaming parameters, RTMP (Real Time Messaging Protocol) streaming addresses, video sizes, and whether it is panoramic. The live broadcast streaming parameters can include resolution, bit rate, and frame rate. Resolution refers to the size of the pixels of the video, bit rate refers to the amount of data used by the video per unit time, and frame rate refers to how many pictures the video displays per second. The video size can include the height and width of the picture in the video.

[0139] (2) Listening to the live broadcast state of the first image acquisition device, and obtaining the changed live broadcast state when a change in the live broadcast state is detected. The live broadcast state can include live broadcast start, live broadcast end, live broadcast error, or frame rate update.

[0140] By listening to the live broadcast state of the first image acquisition device, the live broadcast of the first image acquisition device can be effectively monitored in real time.

[0141] (3) Turning off the live broadcast function of the first image acquisition device, at which time the first image acquisition device stops returning the captured data to the first terminal.

[0142] As an optional embodiment, the function corresponding to the first function file is a photographing function, and the function corresponding to the first function file is a photographing function.

[0143] Calling the function corresponding to the first function file controls the first image acquisition device, including at least one of the following:

[0144] Calling the photographing function to start the photographing function of the first image acquisition device, and setting the photographing mode of the first image acquisition device to instruct the first image acquisition device to take pictures in the photographing mode.

[0145] Calling the photographing function to set the data format output by the first image acquisition device, and obtaining the image output by the first image acquisition device according to the data format.

[0146] The photographing function is called to close the photographing function of the first image acquisition device.

[0147] Specifically, the first function file is used to control the image acquisition device to perform the photographing function, and the function corresponding to the first function file is the photographing function, which can include a method for the image acquisition device to perform the photographing function.

[0148] In this case, calling the photographing function can control the image acquisition device to perform at least one of the following operations:

[0149] (1) When the first image acquisition device is in an open state and connected to the first terminal, the photographing function of the first image acquisition device is started, and a photographing mode of the first image acquisition device is set to instruct the first image acquisition device to take a photograph in the set photographing mode.

[0150] The photographing mode can include normal photographing, HDR (High Dynamic Range Imaging) photographing, and interval photographing. For the interval photographing mode, a cycle of interval photographing and the like can be further set.

[0151] (2) A data format output by the first image acquisition device is set, the data format can include a JPG format (a kind of image format), a RAW format (an original image format), and the like, and an image taken by the first image acquisition device is obtained in the set data format.

[0152] (3) The photographing function of the first image acquisition device is closed.

[0153] In the embodiments of the present application, the photographing mode and the data format output by the first image acquisition device are set by calling the photographing function, and then the first image acquisition device can be controlled to collect according to the user's demand and output data in the data format specified by the user, thereby improving the user experience.

[0154] As an optional embodiment, the function corresponding to the first function file is a video recording function, and the function corresponding to the first function file is a video recording function.

[0155] The function corresponding to the first function file is called to control the first image acquisition device, including at least one of the following:

[0156] The video recording function is called to start the video recording function of the first image acquisition device, and a video recording mode of the first image acquisition device is set to instruct the first image acquisition device to record in the video recording mode.

[0157] The video recording method is called to obtain a recording state of the first image acquisition device.

[0158] The video recording function is called to obtain a recording duration of the first image acquisition device when the recording state of the first image acquisition device is in a recording working state.

[0159] The video recording function is called to obtain a file storage path of the data collected by the first image acquisition device when the recording state of the first image acquisition device is in a recording end state.

[0160] The video recording function is called to close the video recording function of the first image acquisition device.

[0161] Specifically, the first function file is used to control the image acquisition device to perform the video recording function, and the function corresponding to the first function file is the video recording function. The video recording function can include a method for the image acquisition device to perform the video recording function.

[0162] In this case, the video recording function can control the image acquisition device to perform at least one of the following operations:

[0163] (1) When the first image acquisition device is in an open state and connected to the first terminal, the video recording function of the first image acquisition device is started, and a video recording mode of the first image acquisition device is set to instruct the first image acquisition device to record in the set video recording mode.

[0164] The video recording mode can include normal video recording, HDR (High Dynamic Range Imaging) video recording, and time-lapse video recording. For the time-lapse video recording mode, a time-lapse duration and other parameters of the time-lapse video recording can be further set.

[0165] (2) The recording state of the first image acquisition device is obtained, wherein the recording state can be recording start, recording working, and recording end.

[0166] Further, when the recording state of the first image acquisition device is in the recording working state, the recording duration of the first image acquisition device is obtained.

[0167] When the recording state of the first image acquisition device is in the recording end state, a file storage path of the data collected by the first image acquisition device is obtained. The file storage path can be an address of the corresponding data in a storage card, and the storage card can be an SD (Secure Digital) card.

[0168] By obtaining the recording state of the first image acquisition device, the recording state of the first image acquisition device can be effectively monitored in real time.

[0169] (3) The video recording function of the first image acquisition device is closed.

[0170] As an optional embodiment, the function corresponding to the first function file is a device information acquisition function; and the function corresponding to the first function file is a device information acquisition function.

[0171] The function corresponding to the first function file is called to control the first image acquisition device, including:

[0172] The device information acquisition function is called to acquire device information of the first image acquisition device; the device information includes at least one of device parameters, gyroscope data, battery information, charging status, storage space information, host address and file list information of the first image acquisition device.

[0173] Specifically, the first function file is used to control the image acquisition device to execute the device information acquisition function, and the function corresponding to the first function file is the device information acquisition function, and the device information acquisition function can include a method for the image acquisition device to execute the device information acquisition function.

[0174] The device information acquisition function is called to acquire device information of the first image acquisition device; the device information includes at least one of device parameters, gyroscope data, battery information, charging status, storage space information, host address and file list information of the first image acquisition device.

[0175] The device parameters can include device model, device version (such as firmware version number), device serial number and the like of the image acquisition device; the host address can be an IP address (Internet Protocol Address) of the image acquisition device; and the file list information can include a file list of recording end and a file list of recording in process in the image acquisition device.

[0176] As an optional embodiment, the function corresponding to the first function file is a file information acquisition function; and the function corresponding to the first function file is a file information acquisition function.

[0177] The function corresponding to the first function file is called to control the first image acquisition device, including:

[0178] The file object returned by the first image acquisition device is acquired;

[0179] The file information acquisition function is called through the file object to acquire file information of the first image acquisition device.

[0180] Specifically, the first function file is used to control the image acquisition device to execute the file information acquisition function, and the function corresponding to the first function file is the file information acquisition function, and the file information acquisition function can include a method for the image acquisition device to execute the file information acquisition function.

[0181] The file information acquisition function can acquire a file object returned by the first image acquisition device, and the file information acquisition function can be further called to acquire file information in the first image acquisition device through the file object.

[0182] The file information can include at least one of a file identifier, a file type, a file address, file source information, file display parameters, and a file creation time. The file type is used to represent the type of the file. For example, when the file is a video, the file type can be 0; when the file is a photo, the file type can be 1. For another example, when the file is a normal video, the file type can be 00, when the file is an HDR video, the file type can be 01; when the file is a normal photo, the file type can be 10, when the file is an HDR photo, the file type can be 11. The file source information can include information of a device that generates the file, and the file display parameters can include width, height, bit rate, and other parameter information of a picture in the file.

[0183] As an optional embodiment, the function corresponding to the first function file is a file export function, and the function corresponding to the first function file is a file export function.

[0184] The function corresponding to the first function file is called to control the first image acquisition device, including at least one of the following:

[0185] The file export function is called to start the file export function of the first image acquisition device, set the file export mode of the first image acquisition device, and acquire a target file exported in the file export mode; the file export mode includes a first mode, a second mode, and a third mode; the first mode is used to export an image format as an image format, the second mode is used to export a video format as a video format, and the third mode is used to export a video format as an image format.

[0186] The file export function is called to monitor the file export state of the first image acquisition device, and when a change in the file export state is monitored, the file export state of the first image acquisition device is acquired.

[0187] The file export function is called to close the file export function of the first image acquisition device.

[0188] Specifically, the first function file is used to control the image acquisition device to execute the file export function, and the function corresponding to the first function file is a file export function. The file export function can include a method for the image acquisition device to execute the file export function.

[0189] In this case, the file export function can control the image acquisition device to execute at least one of the following operations:

[0190] (1) when the first image acquisition device is in an open state and connected with the first terminal, starting a file export function of the first image acquisition device, and setting a file export mode of the first image acquisition device to indicate the first image acquisition to perform data export in the file export mode, so that a target file exported by the first image acquisition device in the file export mode can be acquired.

[0191] The file export mode includes a first mode, a second mode and a third mode, the first mode is used for exporting an image format as an image format, the second mode is used for exporting a video format as a video format, and the third mode is used for exporting a video format as an image format.

[0192] In the second mode, a panoramic video corresponding to the photographed video can be acquired; and in the third mode, a thumbnail corresponding to the photographed video can be acquired.

[0193] In addition, data information of the target file can be further set, for example, width, height, bit rate, frame rate of a picture in the target file, and saving address of the target file.

[0194] (3) the file export state of the first image acquisition device is monitored, when a change in the file export is monitored, the changed file export state is acquired; the file export state can include export success, export failure, export cancellation and progress change.

[0195] By monitoring the file export state of the first image acquisition device, the file export state of the first image acquisition device can be effectively monitored in real time.

[0196] (4) the file export function of the first image acquisition device is closed.

[0197] As an optional embodiment, Figure 2 A flowchart of a device control method provided by the embodiment of the application is shown in Figure 2 The method further includes:

[0198] The remote operation instruction sent by the second terminal is received; the first terminal and the second terminal are connected based on a local area network communication;

[0199] According to the remote operation instruction, a second image acquisition device is selected from at least two image acquisition devices, and a second function file is selected from a plurality of function files;

[0200] The second image acquisition device is controlled by calling a function corresponding to the second function file.

[0201] Specifically, the first vehicle can form a vehicle group with the second vehicle, and multiple vehicles in the same vehicle group are connected with the same local area network, and through the local area network, each vehicle in the vehicle group can communicate.

[0202] When the user corresponding to the second vehicle needs to remotely control the image collection device on the first vehicle, the second terminal of the second vehicle can send a remote control instruction to the first terminal through the local area network.

[0203] After the first terminal receives the remote operation instruction, the first terminal can select the image collection device that the second terminal needs to control from the at least two image collection devices of the first vehicle as a second image collection device according to the remote operation instruction, and determine the function file corresponding to the target function from the multiple function files that have been encapsulated in the first terminal as a second function file according to the target function that needs to be controlled by the second image collection device in the remote operation instruction.

[0204] Then, the first terminal can call the function corresponding to the second function file to control the second image collection device to execute the corresponding function through the function, that is, the remote control of the image collection device on the first vehicle by the second terminal can be realized. The method of controlling the image collection device to realize the functions described above by calling the second function file is described above, and the specific content is described above, and will not be described here.

[0205] In addition, the first terminal can simultaneously receive the operation instruction issued by the user of the first vehicle and the remote operation instruction issued by the user of the second vehicle, and control the image collection device on the first vehicle according to the operation instruction and the remote operation instruction, that is, the combined control of the image collection device on one vehicle by multiple vehicles can be realized.

[0206] Figure 3 The application scenario of the device control method provided by the embodiment of the present application is shown in FIG. Figure 3 As shown in the figure, the application scenario includes a first terminal 101 on a first vehicle and a second terminal 102 on a second vehicle, the first terminal 101 and the second terminal 102 are connected through a local area network, the user of the second vehicle determines a target camera from multiple cameras of the first vehicle through the second terminal 102 and generates a remote operation instruction, and then sends the remote operation instruction to the first terminal 101 of the first vehicle through a point-to-point message. After receiving the message, the first terminal 101 can inquire whether to authorize the user of the first vehicle through a pop-up window, and when the authorization is confirmed, the first terminal 101 can determine the target camera according to the remote operation instruction and control the target camera to start recording by calling the function file corresponding to the recording function. When the target camera recording is completed, the first terminal 101 releases the occupied resources when it listens to the target camera recording.

[0207] Figure 4 A structural schematic diagram of a device control apparatus provided by an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the apparatus of the embodiment can include: Figure 4

[0208] An operation instruction receiving module 201, configured to receive an operation instruction of a first image acquisition device in at least two image acquisition devices of a vehicle by a user;

[0209] An operation instruction response module 202, configured to determine a first function file matched with the operation instruction from a plurality of function files encapsulated, in response to the operation instruction; the function file is encapsulated in the first terminal by a software development kit (SDK);

[0210] A device control module 203, configured to invoke a function corresponding to the first function file to control the first image acquisition device through a local area network (LAN);

[0211] The first terminal and the first image acquisition device are both connected to the LAN, and the LAN is established based on at least one vehicle-mounted router.

[0212] As an optional embodiment, the function corresponding to the first function file in the apparatus is a connection function; and the function corresponding to the first function file is a connection function.

[0213] The device control module is configured to at least one of:

[0214] invoke the connection function to open the first image acquisition device;

[0215] invoke the connection function to establish a connection with the first image acquisition device when it is detected that the first image acquisition device is in an open state;

[0216] invoke the connection function to detect a connection state of the first image acquisition device;

[0217] invoke the connection function to listen to a device state of the first image acquisition device, and acquire the device state of the first image acquisition device when it is detected that the device state changes;

[0218] invoke the connection function to close the first image acquisition device and disconnect the connection with the first image acquisition device.

[0219] As an optional embodiment, the function corresponding to the first function file in the apparatus is a preview function; and the function corresponding to the first function file is a preview function.

[0220] The device control module is configured to at least one of:

[0221] ​The preview function is called to start a preview function of the first image acquisition device, and data captured by the first image acquisition device is acquired;

[0222] The preview function is called to monitor a preview state of the first image acquisition device, and the preview state is acquired when a change in the preview state is monitored;

[0223] The preview function is called to set a resolution of a video stream output by the first image acquisition device;

[0224] The preview function is called to stop the preview function of the first image acquisition device.

[0225] As an optional embodiment, the function corresponding to the first function file in the device is a live broadcast function, and the function corresponding to the first function file is a live broadcast function.

[0226] The device control module is configured to perform at least one of the following:

[0227] The live broadcast function is called to start a live broadcast function of the first image acquisition device, set a live broadcast parameter, and acquire data captured by the first image acquisition device based on the live broadcast parameter; the live broadcast parameter includes at least one of a live broadcast streaming parameter, a real-time message transmission protocol (RTMP) streaming address, a video size, and whether it is panoramic.

[0228] The live broadcast function is called to monitor a live broadcast state of the first image acquisition device, and the live broadcast state of the first image acquisition device is acquired when a change in the live broadcast state is monitored.

[0229] The live broadcast function is called to stop the live broadcast function of the first image acquisition device.

[0230] As an optional embodiment, the function corresponding to the first function file in the device is a photographing function, and the function corresponding to the first function file is a photographing function.

[0231] The device control module is configured to perform at least one of the following:

[0232] The photographing function is called to start a photographing function of the first image acquisition device, and a photographing mode of the first image acquisition device is set to instruct the first image acquisition device to take a photograph in the photographing mode.

[0233] The photographing function is called to set a data format of data output by the first image acquisition device, and an image output by the first image acquisition device in the data format is acquired.

[0234] The photographing function is called to stop the photographing function of the first image acquisition device.

[0235] As an optional embodiment, the function corresponding to the first function file in the device is a video recording function; and the function corresponding to the first function file is a video recording function.

[0236] The device control module is configured to perform at least one of the following:

[0237] The video recording function is called to start the video recording function of the first image acquisition device, and a video recording mode of the first image acquisition device is set to instruct the first image acquisition device to record in the video recording mode.

[0238] The video recording method is called to obtain a recording state of the first image acquisition device.

[0239] The video recording function is called to obtain a recording duration of the first image acquisition device when the recording state of the first image acquisition device is a recording working state.

[0240] The video recording function is called to obtain a file storage path of data collected by the first image acquisition device when the recording state of the first image acquisition device is a recording end state.

[0241] The video recording function is called to close the video recording function of the first image acquisition device.

[0242] As an optional embodiment, the function corresponding to the first function file in the device is a device information acquisition function; and the function corresponding to the first function file is a device information acquisition function.

[0243] The device control module is configured to:

[0244] The device information acquisition function is called to obtain device information of the first image acquisition device; and the device information includes at least one of device parameters, gyroscope data, battery information, a charging state, storage space information, a host address, and file list information of the first image acquisition device.

[0245] As an optional embodiment, the function corresponding to the first function file in the device is a file information acquisition function; and the function corresponding to the first function file is a file information acquisition function.

[0246] The device control module is configured to:

[0247] A file object returned by the first image acquisition device is obtained.

[0248] The file information acquisition function is called through the file object to obtain file information of the first image acquisition device.

[0249] As an optional embodiment, the function corresponding to the first function file is a file export function; and the function corresponding to the first function file is a file export function.

[0250] The device control module is configured to perform at least one of the following:

[0251] The file export function is called to start the file export function of the first image acquisition device, set a file export mode of the first image acquisition device, and obtain a target file exported in the file export mode; the file export mode includes a first mode, a second mode and a third mode; the first mode is used to export an image format as an image format, the second mode is used to export a video format as a video format, and the third mode is used to export a video format as an image format.

[0252] The file export function is called to monitor a file export state of the first image acquisition device, and when a change in the file export state is monitored, the file export state of the first image acquisition device is obtained.

[0253] The file export function is called to close the file export function of the first image acquisition device.

[0254] As an optional embodiment, the apparatus further includes a remote control module configured to perform the following:

[0255] Receive a remote operation instruction sent by a second terminal; the first terminal and the second terminal are connected based on the local area network communication;

[0256] According to the remote operation instruction, a second image acquisition device is selected from the at least two image acquisition devices, and a second function file is selected from the plurality of function files;

[0257] The function corresponding to the second function file is called to control the second image acquisition device.

[0258] The method provided in the embodiments of the present application has similar implementation principles, and the actions performed by each module in the apparatus of the embodiments of the present application correspond to the steps in the method of the embodiments of the present application. For the detailed function description of each module of the apparatus, refer to the description of the corresponding method in the foregoing description, which will not be repeated here.

[0259] The embodiment of the present application provides an electronic device, including a memory, a processor and a computer program stored in the memory, the processor executes the computer program to realize the steps of the device control method, compared with the related art, the SDK can be used for packaging multiple function files, and the multiple function files are configured in the first terminal in advance, one function file can be used for controlling different types of image acquisition devices to realize corresponding functions, when the image acquisition device carried on the vehicle is changed, the code for the changed image acquisition device does not need to be reprogrammed, the development cost is greatly reduced, and the scalability of the method is improved; the method is not limited by the type of the image acquisition device carried on the vehicle, and can be reused on different vehicles. In addition, at least one vehicle-mounted router is used to establish a local area network, the first terminal and the first image acquisition device communicate through the local area network, the first terminal and the first image acquisition device do not need to rely on a mobile network for communication, the influence of the mobile network signal is avoided, the method can be applied to remote areas with poor mobile network signals, and the application range of the method is improved.

[0260] In an optional embodiment, an electronic device is provided, as shown in Figure 5 Figure 5 The electronic device 4000 shown in the figure includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, through a bus 4002. Optionally, the electronic device 4000 can also include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual application, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0261] The processor 4001 can be a CPU (Central Processing Unit, central processing unit), a general-purpose processor, a DSP (Digital Signal Processor, digital signal processor), an ASIC (Application Specific Integrated Circuit, application specific integrated circuit), an FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can realize or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure. The processor 4001 can also be a combination of computing functions, such as one or more microprocessor combinations, DSP and microprocessor combinations, etc.

[0262] ​The bus 4002 can include a path over which the above-described components transmit information. The bus 4002 can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 4002 can be divided into an address bus, a data bus, a control bus, or the like. For convenience of representation, Figure 5 In the figure, only one thick line is used, but this does not mean that there is only one bus or only one type of bus.

[0263] The memory 4003 can be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, a magnetic disk storage medium, other magnetic storage device, or any other medium that can be used to carry or store computer programs and that can be accessed by a computer, without limitation.

[0264] The memory 4003 is used to store a computer program for implementing the embodiments of the present application, and is controlled by the processor 4001 to perform. The processor 4001 is used to execute the computer program stored in the memory 4003 to realize the steps shown in the foregoing method embodiments.

[0265] The embodiments of the present application provide a computer readable storage medium, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to realize the steps and corresponding contents of the foregoing method embodiments.

[0266] The terms "first", "second", "third", "fourth", "1", "2", and the like (if any) in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described.

[0267] It should be understood that although each operation step in the flowchart of the embodiments of the present application is indicated by an arrow, the implementation order of the steps is not limited to the order indicated by the arrow. Unless explicitly stated herein, in some implementation scenarios of the embodiments of the present application, the implementation steps in each flowchart can be executed in other orders as required. In addition, part or all of the steps in each flowchart can include multiple sub-steps or multiple stages based on the actual implementation scenario. Part or all of these sub-steps or stages can be executed at the same time, and each of these sub-steps or stages can also be executed at different times. In the scenario where the execution times are different, the execution order of these sub-steps or stages can be flexibly configured as required, and the embodiments of the present application do not limit this.

[0268] The above is only an optional implementation of some implementation scenarios of the present application. It should be pointed out that, for ordinary skilled persons in the technical field, other similar implementation means based on the technical idea of the present application without departing from the technical concept of the present application also belong to the protection scope of the embodiments of the present application.

Claims

1. A device control method applied to a first terminal, comprising: The method comprises the following steps: receiving an operation instruction of a user for a first image acquisition device in at least two image acquisition devices of a vehicle; determining a target function corresponding to the operation instruction, determining a function file corresponding to the target function from a plurality of preloaded function files as a first function file matched with the operation instruction; each function file comprises an implementation method of an image acquisition device of different types for the function; based on the type corresponding to the first image acquisition device, determining a function corresponding to an implementation method matched with the type of the first image acquisition device from the implementation method of the image acquisition device of different types for the target function in the first function file, and calling the function corresponding to the first function file to control the first image acquisition device through a local area network; the first terminal and the first image acquisition device are connected to the local area network, and the local area network is established based on at least one vehicle-mounted router; the plurality of function files are loaded onto the first terminal based on the following way: for each function, an implementation method of an image acquisition device of different types for the function is encapsulated through a software development kit (SDK) to generate a function file corresponding to the function, and the function file corresponding to the function is preloaded into the first terminal.

2. The method of claim 1, wherein, the function corresponding to the first function file is a connection function; and the function corresponding to the first function file is a connection function; the calling of the function corresponding to the first function file to control the first image acquisition device comprises at least one of the following: calling the connection function to open the first image acquisition device; calling the connection function to establish a connection with the first image acquisition device when it is detected that the first image acquisition device is in an open state; calling the connection function to detect the connection state of the first image acquisition device; calling the connection function to listen to the device state of the first image acquisition device, and acquiring the device state of the first image acquisition device when it is detected that the device state changes; calling the connection function to close the first image acquisition device and disconnect the connection with the first image acquisition device.

3. The method of claim 1, wherein, the function corresponding to the first function file is a preview function; and the function corresponding to the first function file is a preview function; the calling of the function corresponding to the first function file to control the first image acquisition device comprises at least one of the following: calling the preview function to start the preview function of the first image acquisition device and acquiring the data shot by the first image acquisition device; calling the preview function to listen to the preview state of the first image acquisition device, and acquiring the preview state when it is detected that the preview state changes; calling the preview function to set the resolution of the output video stream of the first image acquisition device; calling the preview function to close the preview function of the first image acquisition device.

4. The method of claim 1, wherein, the function corresponding to the first function file is a live broadcast function; and the function corresponding to the first function file is a live broadcast function; The function corresponding to the first function file is called to control the first image acquisition device, including at least one of the following: The live broadcast function is called to start the live broadcast function of the first image acquisition device, set live broadcast parameters, and obtain data captured by the first image acquisition device based on the live broadcast parameters; the live broadcast parameters include at least one of live broadcast streaming parameters, real-time message transmission protocol (RTMP) streaming address, video size, and whether it is panoramic; The live broadcast function is called to monitor the live broadcast state of the first image acquisition device, and when a change in the live broadcast state is detected, the live broadcast state of the first image acquisition device is obtained; The live broadcast function is called to close the live broadcast function of the first image acquisition device.

5. The method of claim 1, wherein, The function corresponding to the first function file is a photographing function; the function corresponding to the first function file is a photographing function; The function corresponding to the first function file is called to control the first image acquisition device, including at least one of the following: The photographing function is called to start the photographing function of the first image acquisition device, and the photographing mode of the first image acquisition device is set to instruct the first image acquisition device to take pictures in the photographing mode; The photographing function is called to set the data format output by the first image acquisition device, and the image output by the first image acquisition device in the data format is obtained; The photographing function is called to close the photographing function of the first image acquisition device.

6. The method of claim 1, wherein, The function corresponding to the first function file is a video recording function; the function corresponding to the first function file is a video recording function; The function corresponding to the first function file is called to control the first image acquisition device, including at least one of the following: The video recording function is called to start the video recording function of the first image acquisition device, and the video recording mode of the first image acquisition device is set to instruct the first image acquisition device to record in the video recording mode; The video recording method is called to obtain the recording state of the first image acquisition device; The video recording function is called to obtain the recording duration of the first image acquisition device when the recording state of the first image acquisition device is recording; The video recording function is called to obtain the file saving path of the data collected by the first image acquisition device when the recording state of the first image acquisition device is recording end; The video recording function is called to close the video recording function of the first image acquisition device.

7. The method of claim 1, wherein, The function corresponding to the first function file is a device information acquisition function; the function corresponding to the first function file is a device information acquisition function; The function corresponding to the first function file is called to control the first image acquisition device, including: The device information acquisition function is called to obtain the device information of the first image acquisition device; the device information includes at least one of the device parameters, gyroscope data, battery information, charging state, storage space information, host address, and file list information of the first image acquisition device.

8. The method of claim 1, wherein, The function corresponding to the first function file is a file information acquisition function; and the function corresponding to the first function file is a file information acquisition function; The control of the first image acquisition device by calling the function corresponding to the first function file comprises: Obtaining a file object returned by the first image acquisition device; Obtaining the file information of the first image acquisition device by calling the file information acquisition function through the file object.

9. The method of claim 1, wherein, The function corresponding to the first function file is a file export function; and the function corresponding to the first function file is a file export function; The control of the first image acquisition device by calling the function corresponding to the first function file comprises at least one of the following: The file export function is called to start the file export function of the first image acquisition device, set the file export mode of the first image acquisition device, and obtain the target file exported in the file export mode; The file export mode comprises a first mode, a second mode and a third mode; The first mode is used to export an image format into an image format; The second mode is used to export a video format into a video format; The third mode is used to export a video format into an image format; The file export function is called to listen to the file export state of the first image acquisition device, and the file export state of the first image acquisition device is obtained when a change in the file export state is listened to; The file export function is called to close the file export function of the first image acquisition device.

10. The method of claim 1, wherein, Further comprising: Receiving a remote operation instruction sent by a second terminal; the first terminal and the second terminal are connected based on the local area network communication; According to the remote operation instruction, a second image acquisition device is selected from the at least two image acquisition devices, and a second function file is selected from the plurality of function files; The function corresponding to the second function file is called to control the second image acquisition device.

11. An apparatus control device characterized by comprising: Comprise: An operation instruction receiving module is configured to receive an operation instruction of a first image acquisition device in at least two image acquisition devices of a vehicle by a user; An operation instruction response module is configured to respond to the operation instruction, determine a target function corresponding to the operation instruction, determine a function file corresponding to the target function from a plurality of function files loaded in advance as a first function file matched with the operation instruction; each function file comprises an implementation method of different kinds of image acquisition devices for the function; A device control module is configured to determine a function corresponding to the implementation method matched with the category of the first image acquisition device from the implementation method of different kinds of image acquisition devices for the target function in the first function file based on the category of the first image acquisition device, and call the function corresponding to the first function file to control the first image acquisition device through a local area network; The first terminal and the first image acquisition device are connected to the local area network, and the local area network is established based on at least one vehicle-mounted router; The plurality of function files are loaded onto the first terminal based on the following way: For each function, different kinds of image acquisition devices are encapsulated by a software development kit (SDK) for the implementation method of the function, to generate a function file corresponding to the function; and the function file corresponding to the function is pre-loaded into the first terminal.

12. An electronic device comprising a memory, a processor, and a computer program stored on the memory, wherein the computer program, when executed by the processor, is arranged to perform the method of any one of claims 1 to 11. The processor executes the computer program to implement the steps of the method of any one of claims 1 to 10.

13. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 10.

Citation Information

Patent Citations

  • A vehicle-mounted voice recognition control method and a vehicle-mounted voice recognition control system

    CN103617795A