Control method, device and readable storage medium of Bluetooth camera
Through wireless data transmission of Bluetooth cameras and image display terminals, the problem of high installation cost of truck cameras is solved, and flexible monitoring location configuration is achieved and installation cost is reduced.
Patent Information
- Application Number
- CN202411112282.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-08-14
AI Technical Summary
In existing driving recorders, the installation of truck cameras requires the purchase of cameras and on-board displays, and cables are required, resulting in high cost of replacement and use of equipment.
The Bluetooth camera and image display terminal are used to transmit data through Bluetooth, and the target Bluetooth camera and work scene is determined through touch information, and image acquisition instructions are generated and sent to achieve wireless acquisition of image data around the vehicle, and the monitoring position is flexible.
It reduces the cost of equipment replacement and use, realizes the acquisition of vehicle peripheral image data based on wireless methods, and flexible monitoring location configuration, reducing installation costs.
Smart Images

Figure CN118646849B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic digital data processing, and in particular to a control method, device and readable storage medium for a Bluetooth camera. Background Art
[0002] A driving recorder is a device that records and stores the speed of a vehicle and other driving conditions. It can record videos while driving and provide evidence in the event of an accident. Therefore, in a society with an increasingly fast pace, driving recorders have become widely used.
[0003] In the related art, due to the huge size of trucks, the cameras of the driving recorder are generally installed at the front and rear of the truck body, and connected to the vehicle's display module through a cable that can transmit images, and then the reversing image and other information are displayed on the vehicle's display module. However, this method requires the purchase of cameras and vehicle-mounted displays, and the installation of cables, resulting in high equipment replacement and use costs. Summary of the invention
[0004] The embodiments of the present application provide a control method, device and readable storage medium for a Bluetooth camera, thereby solving the technical problem in the related art that a camera and a vehicle-mounted display need to be purchased in combination and cables need to be installed, resulting in high equipment replacement and usage costs. This achieves the technical effect of wirelessly acquiring image data of the vehicle's surroundings and flexibly configuring the monitoring position.
[0005] The present application provides a control method for a Bluetooth camera, which is applied to a Bluetooth camera system. The Bluetooth camera system includes a Bluetooth camera and an image display terminal. The Bluetooth camera and the image display terminal perform data transmission via Bluetooth. The control method for the Bluetooth camera includes:
[0006] When the image display terminal receives the touch information, determining the target Bluetooth camera and the working scene according to the touch information;
[0007] Determine a Bluetooth channel based on a device identifier of the target Bluetooth camera;
[0008] Generate and send an image acquisition instruction to the target Bluetooth camera based on the Bluetooth channel and the touch information;
[0009] When image data is received from the target Bluetooth camera in response to the image acquisition instruction, the image data is output based on the image display framework corresponding to the working scene.
[0010] Optionally, when the image display terminal receives touch information, the step of determining a target Bluetooth camera and a working scene according to the touch information includes:
[0011] When the image display terminal receives the touch information, the image display terminal determines the target detection position corresponding to the touch information and the working scene;
[0012] Based on the intersection of the target detection position and the work scene associated device, the target Bluetooth camera is determined.
[0013] Optionally, before the step of determining the Bluetooth channel based on the device identification of the target Bluetooth camera, the step includes:
[0014] When the image display terminal receives the access request of the target Bluetooth camera, the image display terminal determines the device information of the target Bluetooth camera;
[0015] Determine the Bluetooth channel assigned to the target Bluetooth camera based on the device information and the channel information of the connected Bluetooth camera;
[0016] Generate and send a frequency modulation instruction corresponding to the Bluetooth channel to the target Bluetooth camera to control the target Bluetooth camera to adjust to the Bluetooth channel for connection;
[0017] The Bluetooth channel and the device identifier of the target Bluetooth camera are associated.
[0018] Optionally, the step of determining the Bluetooth channel allocated to the target Bluetooth camera based on the device information and the channel information of the connected Bluetooth camera includes:
[0019] The image display terminal determines the video specification and installation location of the target Bluetooth camera based on the device information;
[0020] Determining a connection distance between the installation position and the image display terminal and interference parameters;
[0021] Determine the remaining channels based on the channel information of the connected Bluetooth camera;
[0022] Based on the remaining channels, with transmission stability as a planning condition, the Bluetooth channel is determined based on the video specification, the connection distance and the interference parameter.
[0023] Optionally, the step of generating and sending an image acquisition instruction to the target Bluetooth camera based on the Bluetooth channel and the touch information includes:
[0024] The image display terminal determines the working parameters corresponding to the touch information;
[0025] Obtaining an instruction generation framework corresponding to the work scenario;
[0026] Using the working parameters and the device identification as filling content of the instruction generation framework, generating the image acquisition instruction;
[0027] The image acquisition instruction is sent to the target Bluetooth camera based on the Bluetooth channel.
[0028] Optionally, the step of obtaining an instruction generation framework corresponding to the work scenario includes:
[0029] The image display terminal determines a connection quality score based on connection information with the target Bluetooth camera in a dormant state;
[0030] When the connection quality score is lower than a quality threshold, the instruction generation framework simultaneously associated with the working scenario and the low power consumption mode is determined.
[0031] Optionally, before the step of outputting the image data based on the image display framework corresponding to the working scene when receiving the image data of the target Bluetooth camera in response to the image acquisition instruction, the step includes:
[0032] When the target Bluetooth camera receives the image acquisition instruction, the target Bluetooth camera parses the working parameters corresponding to the image acquisition instruction;
[0033] Collecting the corresponding image data based on the working parameters;
[0034] The image data is sent to the image display terminal based on the Bluetooth channel.
[0035] Optionally, after the step of acquiring the corresponding image data based on the working parameters, the method further comprises:
[0036] When the image acquisition instruction includes a low power consumption instruction, the target Bluetooth camera determines a compression algorithm based on the working scenario corresponding to the image acquisition instruction;
[0037] The image information is compressed based on the compression algorithm so that the compressed image data contains the main data corresponding to the working scene.
[0038] In addition, the present application also proposes a control device for a Bluetooth camera, which includes a memory, a processor, and a control program for the Bluetooth camera stored in the memory and executable on the processor, and when the processor executes the control program for the Bluetooth camera, the steps of the control method for the Bluetooth camera as described above are implemented.
[0039] In addition, the present application also proposes a computer-readable storage medium, on which a control program for a Bluetooth camera is stored. When the control program for the Bluetooth camera is executed by a processor, the steps of the control method for the Bluetooth camera as described above are implemented.
[0040] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0041] When the touch information is received at the image display end, the target Bluetooth camera and the working scene are determined according to the touch information; the Bluetooth channel is determined based on the device identification of the target Bluetooth camera; an image acquisition instruction is generated and sent to the target Bluetooth camera based on the Bluetooth channel and the touch information; when the image data of the target Bluetooth camera in response to the image acquisition instruction is received, the image data is output based on the image display framework corresponding to the working scene. Therefore, the technical problem of the need to purchase a camera and a car display and install cables in the related technology, which leads to high equipment replacement and use costs, is effectively solved, and the technical effect of obtaining the image data of the vehicle's surroundings wirelessly and flexibly configuring the monitoring position is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 This is a flow chart of a first embodiment of a method for controlling a Bluetooth camera of the present application;
[0043] Figure 2 This is a flowchart of steps S310-S340 in Embodiment 3 of the method for controlling a Bluetooth camera of the present application;
[0044] Figure 3 This is a flowchart of steps S410-S440 in Embodiment 4 of the method for controlling a Bluetooth camera of the present application;
[0045] Figure 4 This is a flowchart of steps S521-S522 in Embodiment 5 of the method for controlling a Bluetooth camera of the present application;
[0046] Figure 5 This is a schematic diagram of the hardware structure involved in an embodiment of the control device of the Bluetooth camera of this application. DETAILED DESCRIPTION
[0047] In the related art, due to the huge size of trucks, the cameras of the driving recorder are generally installed at the front and rear of the truck body, and connected to the vehicle's display module through a cable that can transmit images, and then the reversing image and other information are displayed on the vehicle's display module. However, this method requires the purchase of cameras and vehicle-mounted displays, and the installation of cables, resulting in high equipment replacement and use costs.
[0048] Therefore, in order to solve the above technical problems, the main technical solution adopted by the embodiment of the present application is: arrange a Bluetooth camera on the vehicle body, and transmit image data between the Bluetooth camera and the image display terminal located in the vehicle through the Bluetooth communication method. Before use, determine the Bluetooth channel for Bluetooth connection between each Bluetooth camera and the image display terminal according to the installation position of the Bluetooth camera and the transmission quality test; and then check the location of the image or video as needed during use, determine the target Bluetooth device, and then obtain the image data and output it on the image display terminal. This realizes the acquisition of vehicle surrounding image data based on wireless methods, flexible configuration of monitoring positions, quick and convenient installation when additional cameras are needed, and reduces installation costs.
[0049] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0050] Embodiment 1
[0051] Embodiment 1 of the present application discloses a method for controlling a Bluetooth camera. Figure 1 , the control method of the Bluetooth camera includes:
[0052] Step S110, when the image display terminal receives the touch information, a target Bluetooth camera and a working scene are determined according to the touch information.
[0053] In this embodiment, the control method of the Bluetooth camera is applied to a Bluetooth camera system, wherein the Bluetooth camera system includes a Bluetooth camera and an image display terminal, and the Bluetooth camera and the image display terminal transmit data via Bluetooth. That is, the image display terminal is installed inside the vehicle, such as the center console of the cab. The Bluetooth cameras are arranged at several positions of the vehicle to detect different areas, and the Bluetooth cameras are associated with working scenes during installation, such as the rear of the vehicle, the roof, the chassis and the fuel tank. The image display terminal can be connected to multiple Bluetooth cameras at the same time to obtain comprehensive image information of multiple cameras. The image display terminal can perform touch screen operation, and the touch information is the user's operation information received by the image display terminal. The working scenes are pre-set, such as fuel tank monitoring, reversing guidance, roof height prompts, etc.
[0054] As an optional implementation, when the image display terminal receives touch information about acquiring an image or video, the image display terminal determines the associated work scene and the target Bluetooth camera associated with the work scene based on the touch information, wherein the number of target Bluetooth cameras is at least one.
[0055] Step S120: determining a Bluetooth channel based on the device identification of the target Bluetooth camera.
[0056] In this embodiment, Bluetooth uses frequency hopping communication in many channels. Frequency hopping communication refers to a communication method in which the carrier frequency of the transmission signal between the sender and the receiver changes discretely according to a predetermined rule, that is, the carrier frequency used in the communication jumps randomly under the control of a pseudo-random change code. Frequency hopping technology has a certain degree of anti-interference and avoids interference with other devices, thereby improving the quality of communication. The frequency hopping is to switch different Bluetooth channels. The device identifier is the unique identifier of the Bluetooth camera in the Bluetooth camera system, which is used to uniquely mark the device.
[0057] As an optional implementation, the preset Bluetooth channel of the target Bluetooth device is determined based on the device identification of the target Bluetooth camera. At the same time, since the Bluetooth channel of each device is pre-configured according to the actual installation location, Bluetooth frequency hopping is not required to avoid affecting other channels.
[0058] As another optional implementation, after the device identification of the target Bluetooth camera and the preset Bluetooth channel of the target Bluetooth device are determined, the image display end sends test information to the target Bluetooth camera based on the preset Bluetooth channel, and determines the current connection quality based on the test information. If the connection quality is lower than the threshold, frequency hopping is performed based on the preset Bluetooth channel and unused Bluetooth channels to determine the target Bluetooth channel, and the preset Bluetooth channel is updated based on the target Bluetooth channel, so that the target Bluetooth channel is used preferentially to connect to the target Bluetooth camera the next time.
[0059] Step S130: generating and sending an image acquisition instruction to the target Bluetooth camera based on the Bluetooth channel and the touch information.
[0060] In this embodiment, the image acquisition instruction is an instruction for acquiring an image of a target detection position corresponding to touch information collected by a target Bluetooth camera.
[0061] As an optional implementation, when the target Bluetooth camera determined by the touch information and the working scene is one, an image acquisition instruction is generated according to a preset protocol based on the target detection position and detection time corresponding to the touch information, and the image acquisition instruction is sent to the corresponding target Bluetooth camera based on the determined Bluetooth channel.
[0062] As another optional implementation, when there are at least two target Bluetooth cameras determined by the touch information and the working scenario, the detection area assigned to each target Bluetooth camera is determined based on the target detection position corresponding to the touch information, and then the detection angle of each target Bluetooth camera is determined. According to the detection angle and the detection time, an image acquisition instruction corresponding to each target Bluetooth camera is generated, that is, the image acquisition instruction corresponding to each target Bluetooth camera may be different. Then, the corresponding image acquisition instruction is sent to the target Bluetooth camera through the Bluetooth channel corresponding to each target Bluetooth camera. The detection angle is the offset angle of the target Bluetooth camera compared to the reference position, and each Bluetooth camera is associated with a reference position when installed.
[0063] Step S140, when receiving the image data of the target Bluetooth camera in response to the image acquisition instruction, output the image data based on the image display framework corresponding to the working scene.
[0064] In this embodiment, after receiving the image acquisition instruction, the target Bluetooth camera responds to the image acquisition instruction and returns the corresponding image data to the image display terminal. Due to different working scenarios, the data processing is different. For example, in the reversing image, the image data needs to be processed to prompt the animals and still objects in the image, and divide the corresponding distance prompt information. For example, in the working scenario corresponding to the fuel tank monitoring, it is necessary to mark the integrity of the fuel tank, and mark the possible cracks and possible oil thieves. Therefore, in order to reduce the load of image processing, the corresponding image display framework is set in advance based on different working scenarios, so that the acquired image data can be quickly filled, and the delay and computing power consumption caused by image processing can be minimized.
[0065] As an optional implementation, when the image display end receives image data in response to an image acquisition instruction from the image display module, a corresponding image display frame is determined based on the working scene, and based on the corresponding display area of the target Bluetooth camera in the image display frame, the corresponding image data is filled into the corresponding display area, and then the image data returned by at least one target Bluetooth camera is spliced and analyzed, and the filled image data is displayed and output on the image display end.
[0066] As an implementation method of this embodiment, when the image display terminal receives touch information, the touch coordinate information is obtained through the touch screen display. The target Bluetooth camera and the working scene are determined according to the touch information. Based on the device identification of the target Bluetooth camera, the Bluetooth channel to communicate with it is determined. Based on the Bluetooth channel and the touch information, an image acquisition instruction is generated and sent to the target Bluetooth camera through the Bluetooth protocol. After the target Bluetooth camera receives the image acquisition instruction, it performs corresponding operations according to the instruction to obtain image data. When the target Bluetooth camera responds, the image data is sent to the image display terminal through the Bluetooth protocol. Based on the image display framework corresponding to the working scene, the received image data is processed and output to be displayed on the image display terminal of the central control.
[0067] For example, assume that two Bluetooth cameras are installed on a large truck, one at the rear and the other at the left. The image display end is a touch screen, which is divided into two areas, the upper area is used to display the rear camera screen, and the lower area is used to display the left camera screen. The user touches the upper area and leaves touch information on the touch screen. According to the touch information, the target Bluetooth camera is determined to be the rear camera and the working scene is the rear view. The Bluetooth channel is determined by the device identifier of the rear camera. Based on the Bluetooth channel and the touch information, an image acquisition instruction is generated and sent to the rear camera through the Bluetooth protocol. After receiving the instruction, the rear camera performs a shooting operation to obtain the rear screen. When the rear camera responds, the image data is sent to the image display end through the Bluetooth protocol. The image data is processed and output by the rear image display framework and displayed on the touch screen in the upper area. Similarly, if the user touches the lower area, the operation and display process of the left camera can be triggered. In this way, the target Bluetooth camera and the working scene are determined by the touch information of the touch screen, and the corresponding image data is acquired and displayed through the Bluetooth channel.
[0068] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0069] When the touch information is received at the image display end, the target Bluetooth camera and the working scene are determined according to the touch information; the Bluetooth channel is determined based on the device identification of the target Bluetooth camera; an image acquisition instruction is generated and sent to the target Bluetooth camera based on the Bluetooth channel and the touch information; when the image data of the target Bluetooth camera in response to the image acquisition instruction is received, the image data is output based on the image display framework corresponding to the working scene. Therefore, the technical problem of the need to purchase a camera and a car display and install cables in the related technology, which leads to high equipment replacement and use costs, is effectively solved, and the technical effect of obtaining the image data of the vehicle's surroundings wirelessly and flexibly configuring the monitoring position is achieved.
[0070] Based on the first embodiment, the second embodiment of the present application proposes a control method for a Bluetooth camera, and step S110 includes:
[0071] Step S210: When the image display terminal receives the touch information, the image display terminal determines the target detection position corresponding to the touch information and the working scene.
[0072] In this embodiment, the target detection position is a position on the vehicle that needs to be detected. For the same detection position, there may be different working scenarios. The same working scenario may require detection of multiple positions on the vehicle or around the vehicle.
[0073] As an optional implementation, when the image display terminal receives touch information detected by the touch module, the target detection position and the working scene corresponding to the touch information are determined based on the coordinate data corresponding to the touch information and the layout information of the work release control.
[0074] Step S220, determining the target Bluetooth camera based on the intersection of the target detection position and the work scene associated device.
[0075] In this embodiment, the first device identifier associated with the location identifier corresponding to the target detection location and the second device identifier associated with the scene identifier are determined; the intersection of the first device identifier and the second device identifier is determined, that is, the device identifier that belongs to both the first device identifier and the second device identifier, and the Bluetooth camera corresponding to the device identifier is determined to be the target Bluetooth camera.
[0076] As an optional implementation, when the image display terminal receives the touch information, it determines the target detection position and the working scene according to the touch information, and determines the target Bluetooth camera based on the intersection of the target detection position and the associated devices of the working scene.
[0077] Exemplarily, the vehicle is equipped with at least two Bluetooth cameras and also has multiple working scenes. The image display end is a touch screen, and the target camera and working scene are selected through touch information. The user touches the touch screen, triggering the reception of touch information. According to the touch information, the image display end determines the target detection position and working scene corresponding to the touch point. Based on the target detection position and working scene, the image display end screens out qualified Bluetooth cameras. The image display end determines the target Bluetooth camera, that is, the camera associated with the target detection position and working scene. For example, it is assumed that there are Bluetooth cameras in the front, rear and driving position inside the vehicle, and the working scenes include front monitoring, rear monitoring and driving position monitoring. When the user touches the front monitoring area on the touch screen, the image display end determines that the target detection position is the front and the working scene is the front monitoring according to the touch information. Based on the intersection of the associated devices of the front detection position and the front monitoring working scene, the target Bluetooth camera is determined to be the front camera.
[0078] Exemplarily, the vehicle is equipped with at least one Bluetooth camera.
[0079] Therefore, by touching different areas on the touch screen, the target detection position and working scene are determined according to the touch information, and the target Bluetooth camera is determined through the intersection of associated devices, so as to realize the selection and switching of different cameras and working scenes.
[0080] Based on the first embodiment, the third embodiment of the present application proposes a control method for a Bluetooth camera, referring to Figure 2 , before step S120, including:
[0081] Step S310: When the image display terminal receives the access request of the target Bluetooth camera, the image display terminal determines the device information of the target Bluetooth camera.
[0082] In this embodiment, the Bluetooth camera on the vehicle can be installed and expanded as needed, and the installation location and device identification of the Bluetooth camera need to be stored in the image display terminal during installation. The device information includes image acquisition specifications, Bluetooth protocol, image transmission specifications, lens rotation angle, and acquisition viewing angle size.
[0083] As an optional implementation, the target Bluetooth camera, that is, the Bluetooth camera, initiates an initial connection signal with the image display end based on the standard Bluetooth connection process when it is connected. When the image display end receives the initial connection signal, it generates a device information acquisition request, which includes the information type for obtaining the Bluetooth camera device information, and the encapsulation method, so that the Bluetooth camera encapsulates its own device information into an access request and sends it to the image display end. The image display end parses the corresponding access request and determines the device information of the target Bluetooth camera.
[0084] Step S320: Determine the Bluetooth channel allocated to the target Bluetooth camera based on the device information and the channel information of the connected Bluetooth camera.
[0085] In this embodiment, the image display terminal obtains the channel information of the connected Bluetooth camera, determines the remaining allocatable Bluetooth channels, and determines the Bluetooth channel allocated to the target Bluetooth camera based on the matching result between the device information of the target Bluetooth camera and the allocatable Bluetooth channels.
[0086] Step S330, generating and sending a frequency modulation instruction corresponding to the Bluetooth channel to the target Bluetooth camera, so as to control the target Bluetooth camera to adjust to the Bluetooth channel for connection.
[0087] In this embodiment, the allocated Bluetooth channel is used as the target frequency band, and the Bluetooth channel determined by the device information is used as the original frequency band. A frequency modulation instruction is generated to adjust from the original frequency band to the target frequency band, and the frequency modulation instruction is sent to the target Bluetooth camera to control the target Bluetooth camera to adjust to the Bluetooth channel for connection.
[0088] Step S340, associating the Bluetooth channel and the device identifier of the target Bluetooth camera.
[0089] In this embodiment, after the target Bluetooth camera and the image display end complete the connection according to the allocated Bluetooth channel, the image display end associates and stores the device identification of the target camera and the allocated Bluetooth channel.
[0090] As an optional implementation, when the image display terminal receives an access request from a target Bluetooth camera, the device information of the target Bluetooth camera is determined. Based on the device information and the channel information of the connected Bluetooth camera, the Bluetooth channel assigned to the target Bluetooth camera is determined. A frequency modulation instruction corresponding to the Bluetooth channel is generated and sent to the target Bluetooth camera to control the target Bluetooth camera to adjust to the Bluetooth channel for connection. The Bluetooth channel and the device identifier of the target Bluetooth camera are associated.
[0091] Exemplarily, when the target Bluetooth camera needs to be connected to the image display end and communicate through the Bluetooth channel. The image display end receives the access request of the target camera. According to the device information in the access request, including the device name, device type, etc., the image display end determines the device information of the target Bluetooth camera. The image display end has accessed multiple Bluetooth cameras and recorded the Bluetooth channel information currently used by each camera. Based on the device information of the target camera and the channel information of the accessed camera, the image display end determines the Bluetooth channel assigned to the target camera. The image display end generates a frequency modulation instruction corresponding to the Bluetooth channel and sends the instruction to the target camera to control the target camera to adjust to the assigned Bluetooth channel for connection. Once the target camera is successfully connected to the specified Bluetooth channel, the image display end associates the Bluetooth channel with the device identification of the target camera for subsequent data transmission and control. Through the above steps, the image display end determines the device information of the target camera, assigns a Bluetooth channel to it, and finally establishes a Bluetooth connection between the image display end and the target camera.
[0092] Optionally, step S320 includes:
[0093] Step S321: the image display terminal determines the video specification and installation location of the target Bluetooth camera based on the device information.
[0094] In this embodiment, the video specifications include image acquisition specifications and image transmission specifications. The installation location is the location information of the Bluetooth camera installed in the vehicle, including the specific coordinate points of the vehicle model, or the coordinate data in the three-dimensional coordinate system with the image display end as the origin.
[0095] Step S322, determining the connection distance between the installation position and the image display terminal and interference parameters.
[0096] In this embodiment, due to the diverse materials of trucks, the connection distance and interference parameters between Bluetooth cameras installed at different positions and the image display terminal need to be determined, and then the connection quality between the Bluetooth camera and the image display terminal is determined based on the connection distance and interference parameters.
[0097] Step S323: determining the remaining channels based on the channel information of the connected Bluetooth camera.
[0098] Step S324: Based on the remaining channels, with transmission stability as a planning condition, the Bluetooth channel is determined based on the video specification, the connection distance, and the interference parameter.
[0099] In this embodiment, a regression model is established, with each Bluetooth channel in the remaining channels as the dependent variable, the video specification, the connection distance and the interference parameter as the planning parameters, and the transmission stability as the planning condition, to find the optimal solution in the Bluetooth channel. The channel with the best transmission stability is the Bluetooth channel allocated to the target Bluetooth camera.
[0100] As an optional implementation, determine the channel information of the connected Bluetooth camera, the video specifications of the camera, the connection distance, and the interference parameters. Preprocess the collected data, including data cleaning, standardization, and feature engineering. This step is to ensure the accuracy and availability of the data. Select features related to Bluetooth channel allocation according to the requirements of the problem. For example, video specifications, connection distance, and interference parameters may be key features for determining a suitable channel. Split the dataset into a training set and a test set. The training set is used to train the regression model, and the test set is used to evaluate the performance of the model. Based on the data in the training set, a regression model is established using a regression algorithm, such as linear regression, ridge regression, or decision tree regression. The goal of the model is to predict the appropriate Bluetooth channel by learning the relationship between the features and the Bluetooth channel. Model evaluation: Use the data in the test set to evaluate the performance of the regression model. Common evaluation indicators include MSE (Mean Squared Error), MAE (Mean Absolute Error), and R^2 (Coefficient of Determination). Based on the evaluation results, optimize and adjust the parameters of the regression model to improve the model performance. Using the tuned regression model, input the characteristics of the target camera such as video specifications, connection distance and interference parameters to make predictions. Based on the prediction results of the model, the most suitable Bluetooth channel is determined to be assigned to the target camera.
[0101] By building a regression model, a suitable Bluetooth channel is predicted and allocated according to the characteristics of the target camera and environmental conditions to ensure stable transmission of video data.
[0102] Based on the first embodiment, the fourth embodiment of the present application proposes a control method for a Bluetooth camera, referring to Figure 3 , step S130 includes:
[0103] Step S410: the image display terminal determines the working parameters corresponding to the touch information.
[0104] In this embodiment, the image display terminal determines the working parameters corresponding to the touch information. In this step, the image display terminal determines the corresponding working parameters according to the received touch information. This may involve parsing the specific actions in the touch information, such as zooming in, zooming out, moving, etc., and mapping them to specific working parameters, such as camera angle, focal length, exposure time, etc. Different algorithms and strategies can be used to determine the working parameters according to actual needs.
[0105] Step S420, obtaining an instruction generation framework corresponding to the work scenario.
[0106] In this embodiment, the instruction generation framework corresponding to the working scene is obtained, and the image display terminal obtains the corresponding instruction generation framework according to the current working scene. The instruction generation framework is a template or a rule set for generating image acquisition instructions. This framework includes the format, function and parameter requirements of the instruction.
[0107] Step S430: Generate the image acquisition instruction by using the working parameters and the device identification as filling content of the instruction generation framework.
[0108] In this embodiment, the filling content generates the image acquisition instruction according to the working parameters and device identification determined in step 1, and the image display terminal applies this information as filling content to the instruction generation frame to generate the image acquisition instruction. Specifically, the image display terminal replaces or fills the working parameters and device identification with the corresponding fields in the instruction generation frame.
[0109] Step S440: sending the image acquisition instruction to the target Bluetooth camera based on the Bluetooth channel.
[0110] In this embodiment, the image acquisition instruction is sent to the target Bluetooth camera via the Bluetooth channel. In this step, the image display terminal sends the generated image acquisition instruction to the target Bluetooth camera via the established Bluetooth channel. This can be achieved through the Bluetooth communication protocol, such as encoding the instruction through the Bluetooth communication module and sending it to the target camera.
[0111] Exemplarily, the image display terminal detects a user's touch operation on the screen, such as a zoom-in or zoom-out gesture. According to the type and amplitude of the touch operation, the image display terminal determines the corresponding working parameters for zooming in or out, such as an increase or decrease in focal length. The image display terminal obtains a command template for a working scenario from a pre-defined command generation framework. This command template contains the required command format and parameter requirements, such as the device identification and focal length adjustment parameters that need to be included in the command. The image display terminal fills the device identification and focal length adjustment parameters into the command template and generates a specific image acquisition command, such as "SET FOCUS 50", where 50 is a specific parameter for focal length adjustment. Through the Bluetooth channel, the image display terminal sends the generated image acquisition command to the target Bluetooth camera to request focal length adjustment. After receiving the command, the target Bluetooth camera parses the focal length adjustment parameters therein and performs the corresponding focal length adjustment operation.
[0112] Optionally, step S420 includes:
[0113] Step S421: the image display terminal determines a connection quality score based on the connection information with the target Bluetooth camera in a dormant state.
[0114] In this embodiment, the connection quality score is determined based on the connection information with the target Bluetooth camera in the dormant state. The image display terminal establishes a connection with the target Bluetooth camera and determines the connection quality score based on the stability and reliability of the connection. The connection quality score is measured based on indicators such as signal strength, signal-to-noise ratio, and transmission rate. A higher connection quality score indicates a more stable connection and a stronger signal.
[0115] Step S422: When the connection quality score is lower than a quality threshold, determine the instruction generation framework associated with both the working scenario and the low power consumption mode.
[0116] In this embodiment, the instruction generation framework associated with the working scene and the low power mode is determined. When the connection quality score is lower than the set quality threshold, the image display terminal chooses to enter the low power mode to save energy and maintain the connection. When entering the low power mode, the associated instruction generation framework is determined according to the current working scene. The working scene can be determined according to factors such as environmental conditions, user needs, and device status, such as fuel tank detection, reversing prompts, etc.
[0117] Exemplarily, the vehicle-mounted central control, that is, the image display end, establishes a connection with the camera via Bluetooth and monitors the stability of the connection and the signal quality. Based on the stability and signal quality of the connection, the vehicle-mounted central control calculates the connection quality score. For example, based on the signal strength and transmission rate, the connection quality score is 80%. When the connection quality score is lower than the set quality threshold, the vehicle-mounted central control decides to enter low power mode to save energy and maintain the connection. Determine the associated instruction generation framework based on the current working scenario. In low power mode, the vehicle-mounted central control applies the associated instruction generation framework to the instruction generation process to generate an image acquisition instruction suitable for fuel tank detection. The vehicle-mounted central control sends the generated image acquisition instruction to the camera via the Bluetooth channel to control its shooting mode and function.
[0118] This embodiment illustrates that when the connection quality is poor, image acquisition control in a specific working scenario is achieved by selecting a low power consumption mode and an associated instruction generation framework.
[0119] Based on the first embodiment, the fifth embodiment of the present application proposes a method for controlling a Bluetooth camera, and before step S140, the method includes:
[0120] Step S510: When the target Bluetooth camera receives the image acquisition instruction, the target Bluetooth camera parses the working parameters corresponding to the image acquisition instruction.
[0121] In this embodiment, the target Bluetooth camera parses the working parameters corresponding to the image acquisition instruction. When the target Bluetooth camera receives the image acquisition instruction, it needs to parse the working parameters contained in the instruction so as to know what operation and configuration should be taken. The working parameters may include shooting mode, shooting angle, resolution, frame rate, exposure parameters, etc.
[0122] As an optional implementation, taking the reversing prompt scene as an example, the image acquisition instruction may include the shooting mode as reversing view, the shooting angle as wide, the resolution as 1280x720, and the frame rate as 30fps. By parsing the instruction, the target Bluetooth camera knows that in the reversing prompt scene, image acquisition needs to be performed with a wide viewing angle, a resolution of 720p, and a frame rate of 30fps.
[0123] Step S520: collecting the corresponding image data based on the working parameters.
[0124] In this embodiment, the target Bluetooth camera collects corresponding image data based on the working parameters obtained by the analysis. This may involve setting the parameters of the camera, such as the focal length of the lens, exposure time, white balance, etc. Then the camera starts to collect image data.
[0125] For example, in the reversing warning scenario, the target Bluetooth camera is configured accordingly based on the parsed working parameters. It may set the focal length of the lens to a wide angle, use the automatic exposure function to adapt to different brightness conditions, and set the appropriate white balance for color calibration. The camera then starts to collect image data from behind the vehicle.
[0126] Step S530: sending the image data to the image display terminal based on the Bluetooth channel.
[0127] In this embodiment, the target Bluetooth camera sends the collected image data to the image display end through the Bluetooth channel for display and processing. Sending image data through the Bluetooth channel can maintain wireless connection and transmit images in real time.
[0128] As an optional implementation, in the reversing prompting scenario, the target Bluetooth camera sends the collected reversing image data to the vehicle-mounted central control, i.e., the image display terminal, through the Bluetooth channel. The vehicle-mounted central control can process and display the received image data to provide a reversing prompting function.
[0129] In summary, after receiving the image acquisition instruction, the target Bluetooth camera collects image data according to the working parameters obtained through analysis, and sends the image data to the image display end through the Bluetooth channel. In this way, the image data collected by the camera can be displayed and processed in real time on the vehicle central control, realizing various vehicle detection and safety prompt functions.
[0130] Optionally, refer to Figure 4 , after step S520, including:
[0131] Step S521, when the image acquisition instruction includes a low power consumption instruction, the target Bluetooth camera determines a compression algorithm based on the working scenario corresponding to the image acquisition instruction.
[0132] In this embodiment, a compression algorithm is determined. When the image acquisition instruction includes a low power consumption instruction, the target Bluetooth camera determines which compression algorithm to use according to the working scene corresponding to the image acquisition instruction. The selection of the compression algorithm can be determined according to the characteristics of the image and the required compression rate, so that the compressed image data can fully retain the main data corresponding to the working scene.
[0133] As an optional implementation, in a low-power scenario with poor connection quality, the target Bluetooth camera can choose to use a compression algorithm that is suitable for a high compression rate and can retain the main data, such as JPEG, H.264, etc. These compression algorithms can ignore some details when compressing image data, thereby improving compression efficiency and reducing the power consumption required for data transmission.
[0134] Step S522: compress the image information based on the compression algorithm so that the compressed image data contains the main data corresponding to the working scene.
[0135] In this embodiment, the image information is compressed, and the target Bluetooth camera compresses the image information based on a determined compression algorithm so that the compressed image data contains the main data corresponding to the working scene. The compressed image data can be more compact, thereby reducing the time and power consumption required for data transmission.
[0136] As an optional implementation, in a low-power scenario, the target Bluetooth camera can compress the image information using the determined compression algorithm. It can ignore or further simplify the background data, while retaining and highlighting the main data, to obtain a higher compression rate. In this way, the main data in the compressed image data is more obvious, which can better present the working scene.
[0137] For example, taking the fuel tank detection scenario as an example, the image acquisition instruction includes a low-power instruction. After the target Bluetooth camera collects the image data, it determines the main body of the fuel tank in the image based on the working scenario. Then, it can use the H.264 compression algorithm to compress the image information. By optimizing the parameters and strategies of the compression algorithm, it pays more attention to the main area of the fuel tank and ignores the background details to improve the compression rate. Finally, in the compressed image data obtained, the main body of the fuel tank is obvious, which can effectively reduce the transmission power consumption.
[0138] In summary, when the image acquisition instruction includes a low-power instruction, the target Bluetooth camera determines the compression algorithm according to the working scenario and compresses the image information so that the compressed image data contains the main data corresponding to the working scenario. In this way, in low-power scenarios, lower power consumption and better image display effects can be achieved by reducing background details and increasing the compression rate.
[0139] In this embodiment, a low-power scenario is described, that is, when the connection quality between the image display end and the target Bluetooth camera is poor, a low-power operation needs to be performed, that is, when the image data is collected, the image subject in the image data, that is, the backbone data, is determined based on the working scenario, and then the background data is compressed more extremely to retain the backbone data as much as possible.
[0140] This application also proposes a control device for a Bluetooth camera, referring to Figure 5 , Figure 5 This is a schematic diagram of the control device structure of a Bluetooth camera in the hardware operating environment involved in the embodiment of the present application.
[0141] like Figure 5As shown, the control device of the Bluetooth camera may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0142] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the control device of the Bluetooth camera, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0143] Optionally, the memory 1005 is electrically connected to the processor 1001, and the processor 1001 can be used to control the operation of the memory 1005 and read the data in the memory 1005 to control the Bluetooth camera.
[0144] Alternatively, if Figure 5 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a control program of a Bluetooth camera.
[0145] Optionally, in Figure 5 In the control device of the Bluetooth camera shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the control device of the Bluetooth camera of the present application can be set in the control device of the Bluetooth camera.
[0146] like Figure 5 As shown, the control device of the Bluetooth camera calls the control program of the Bluetooth camera stored in the memory 1005 through the processor 1001, and executes the relevant steps of the control method of the Bluetooth camera provided in the embodiment of the present application:
[0147] When the image display terminal receives the touch information, determining the target Bluetooth camera and the working scene according to the touch information;
[0148] Determine a Bluetooth channel based on a device identifier of the target Bluetooth camera;
[0149] Generate and send an image acquisition instruction to the target Bluetooth camera based on the Bluetooth channel and the touch information;
[0150] When image data is received from the target Bluetooth camera in response to the image acquisition instruction, the image data is output based on the image display framework corresponding to the working scene.
[0151] Optionally, the processor 1001 may call a control program of a Bluetooth camera stored in the memory 1005, and further perform the following operations:
[0152] When the image display terminal receives the touch information, the image display terminal determines the target detection position corresponding to the touch information and the working scene;
[0153] Based on the intersection of the target detection position and the work scene associated device, the target Bluetooth camera is determined.
[0154] Optionally, the processor 1001 may call a control program of a Bluetooth camera stored in the memory 1005, and further perform the following operations:
[0155] When the image display terminal receives the access request of the target Bluetooth camera, the image display terminal determines the device information of the target Bluetooth camera;
[0156] Determine the Bluetooth channel assigned to the target Bluetooth camera based on the device information and the channel information of the connected Bluetooth camera;
[0157] Generate and send a frequency modulation instruction corresponding to the Bluetooth channel to the target Bluetooth camera to control the target Bluetooth camera to adjust to the Bluetooth channel for connection;
[0158] The Bluetooth channel and the device identifier of the target Bluetooth camera are associated.
[0159] Optionally, the processor 1001 may call a control program of a Bluetooth camera stored in the memory 1005, and further perform the following operations:
[0160] The image display terminal determines the video specification and installation location of the target Bluetooth camera based on the device information;
[0161] Determining a connection distance between the installation position and the image display terminal and interference parameters;
[0162] Determine the remaining channels based on the channel information of the connected Bluetooth camera;
[0163] Based on the remaining channels, with transmission stability as a planning condition, the Bluetooth channel is determined based on the video specification, the connection distance and the interference parameter.
[0164] Optionally, the processor 1001 may call a control program of a Bluetooth camera stored in the memory 1005, and further perform the following operations:
[0165] The image display terminal determines the working parameters corresponding to the touch information;
[0166] Obtaining an instruction generation framework corresponding to the work scenario;
[0167] Using the working parameters and the device identification as filling content of the instruction generation framework, generating the image acquisition instruction;
[0168] The image acquisition instruction is sent to the target Bluetooth camera based on the Bluetooth channel.
[0169] Optionally, the processor 1001 may call a control program of a Bluetooth camera stored in the memory 1005, and further perform the following operations:
[0170] The image display terminal determines a connection quality score based on connection information with the target Bluetooth camera in a dormant state;
[0171] When the connection quality score is lower than a quality threshold, the instruction generation framework simultaneously associated with the working scenario and the low power consumption mode is determined.
[0172] Optionally, the processor 1001 may call a control program of a Bluetooth camera stored in the memory 1005, and further perform the following operations:
[0173] When the target Bluetooth camera receives the image acquisition instruction, the target Bluetooth camera parses the working parameters corresponding to the image acquisition instruction;
[0174] Collecting the corresponding image data based on the working parameters;
[0175] The image data is sent to the image display terminal based on the Bluetooth channel.
[0176] Optionally, the processor 1001 may call a control program of a Bluetooth camera stored in the memory 1005, and further perform the following operations:
[0177] When the image acquisition instruction includes a low power consumption instruction, the target Bluetooth camera determines a compression algorithm based on the working scenario corresponding to the image acquisition instruction;
[0178] The image information is compressed based on the compression algorithm so that the compressed image data contains the main data corresponding to the working scene.
[0179] In addition, an embodiment of the present application also proposes a computer-readable storage medium, on which a control program for a Bluetooth camera is stored. When the control program for the Bluetooth camera is executed by a processor, the relevant steps of any embodiment of the control method for the Bluetooth camera described above are implemented.
[0180] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0181] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0182] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0183] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0184] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0185] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0186] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for controlling a Bluetooth camera, characterized in that: Applied to a Bluetooth camera system, the Bluetooth camera system includes a Bluetooth camera and an image display terminal, the Bluetooth camera and the image display terminal perform data transmission via Bluetooth, and the control method of the Bluetooth camera includes: When the image display terminal receives the touch information, the image display terminal determines the target detection position and the working scene corresponding to the touch information; Determine a target Bluetooth camera based on the intersection of the target detection position and the work scene associated device, wherein the number of the target Bluetooth camera is at least one; When the image display terminal receives the access request of the target Bluetooth camera, the image display terminal determines the device information of the target Bluetooth camera; The image display terminal determines the video specification and installation location of the target Bluetooth camera based on the device information; Determining a connection distance between the installation position and the image display terminal and interference parameters; Determine the remaining channels based on the channel information of the connected Bluetooth camera; Based on the remaining channels, with transmission stability as a planning condition, based on the video specifications, the connection distance, and the interference parameters, determine a Bluetooth channel to be allocated to the target Bluetooth camera; Generate and send a frequency modulation instruction corresponding to the Bluetooth channel to the target Bluetooth camera to control the target Bluetooth camera to adjust to the Bluetooth channel for connection; Associating the Bluetooth channel with the device identifier of the target Bluetooth camera; Determining the Bluetooth channel based on the device identification of the target Bluetooth camera; Generate and send an image acquisition instruction to the target Bluetooth camera based on the Bluetooth channel and the touch information; The generating and sending an image acquisition instruction to the target Bluetooth camera based on the Bluetooth channel and the touch information includes: The image display terminal determines the working parameters corresponding to the touch information, wherein the working parameters include camera angle, focal length and exposure time; The image display terminal determines a connection quality score based on connection information with the target Bluetooth camera in a dormant state; When the connection quality score is lower than a quality threshold, determining an instruction generation framework associated with both the working scenario and the low power consumption mode; Using the working parameters and the device identification as filling content of the instruction generation framework, generating the image acquisition instruction; Sending the corresponding image acquisition instruction to the target Bluetooth camera through the Bluetooth channel corresponding to each target Bluetooth camera; When image data is received from the target Bluetooth camera in response to the image acquisition instruction, the image data is output based on the image display framework corresponding to the working scene.
2. The control method of the Bluetooth camera according to claim 1, characterized in that: Before the step of outputting the image data based on the image display framework corresponding to the working scene when receiving the image data of the target Bluetooth camera in response to the image acquisition instruction, the step includes: When the target Bluetooth camera receives the image acquisition instruction, the target Bluetooth camera parses the working parameters corresponding to the image acquisition instruction; Collecting the corresponding image data based on the working parameters; The image data is sent to the image display terminal based on the Bluetooth channel.
3. The control method of the Bluetooth camera according to claim 2, characterized in that: After the step of acquiring the corresponding image data based on the working parameters, the method further comprises: When the image acquisition instruction includes a low power consumption instruction, the target Bluetooth camera determines a compression algorithm based on the working scenario corresponding to the image acquisition instruction; The image data is compressed based on the compression algorithm so that the compressed image data contains the main data corresponding to the working scene.
4. A control device for a Bluetooth camera, characterized in that: The invention comprises a memory, a processor and a control program of a Bluetooth camera which is stored in the memory and can be run on the processor. When the processor executes the control program of the Bluetooth camera, the steps of the control method of the Bluetooth camera as described in any one of claims 1 to 3 are implemented.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a control program for a Bluetooth camera, and when the control program for the Bluetooth camera is executed by a processor, the steps of the control method for a Bluetooth camera according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Blind zone detection alarm system for large bus and detection alarm method thereof
CN107953830A