Vehicle control method and device based on smoking behavior detection, equipment and medium

By installing image acquisition devices and sensor equipment in the vehicle, using a pre-trained smoking behavior detection model to detect smoking behavior in the vehicle, and controlling the vehicle based on the detection results, the problem of insufficient detection of smoking behavior in the vehicle in the prior art is solved, and effective protection of health and safety in the vehicle is achieved.

CN119625699APending Publication Date: 2025-03-14BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411725649.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The lack of effective detection of smoking behaviors in vehicles in the prior art has led to the inability to safely control the vehicle for smoking behaviors.

Method used

By installing image acquisition devices and sensor equipment in the vehicle, images inside the vehicle are collected in real time and pre-trained smoking behavior detection models are called for processing, to detect whether there is smoking behavior in the vehicle, and the vehicle is controlled based on smoking behavior and smoke concentration.

Benefits of technology

Accurate detection and real-time monitoring of smoking behavior in the car, safety control of the vehicle is carried out according to different smoke concentrations and smoking locations, and effectively protect the health and safety of the people in the car.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119625699A_ABST
    Figure CN119625699A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of artificial intelligence, and provides a vehicle control method, device and equipment based on smoking behavior detection, and a medium, which can utilize an image acquisition device of a vehicle to acquire images in the vehicle in real time to obtain a plurality of to-be-detected images, and call a pre-trained smoking behavior detection model to process the plurality of to-be-detected images, thereby improving the detection accuracy of the smoking behavior. The smoking behavior in the vehicle is monitored in real time in combination with an artificial intelligence means; and when the target user has the smoking behavior, detecting a target seat of the target user in the target vehicle, detecting a target smoke concentration in the target vehicle by using the sensor equipment, and controlling the target vehicle according to the target seat and the target smoke concentration. And safety control is carried out on the target vehicle according to different smoke concentrations and smoking positions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a vehicle control method, device, equipment and medium based on smoking behavior detection. Background Art

[0002] When a vehicle is driving, if people inside the vehicle smoke in a closed environment, it will seriously affect the health of everyone in the vehicle. If the driver smokes, it may also affect driving safety.

[0003] However, the existing technology lacks effective detection of smoking behavior in a car. Therefore, there is an urgent need for an accurate detection method of smoking behavior in a car to assist in the safety control of the vehicle. Summary of the invention

[0004] In view of the above, it is necessary to provide a vehicle control method, device, equipment and medium based on smoking behavior detection, aiming to solve the problem of being unable to safely control the vehicle based on smoking behavior.

[0005] A vehicle control method based on smoking behavior detection, the vehicle control method based on smoking behavior detection comprising:

[0006] In response to a vehicle control instruction for a target vehicle based on smoking behavior detection, starting an image acquisition device and a sensor device of the target vehicle;

[0007] Using the image acquisition device to acquire images inside the target vehicle in real time to obtain a plurality of images to be detected;

[0008] Calling a pre-trained smoking behavior detection model to process the multiple images to be detected to obtain a smoking behavior detection result;

[0009] When the smoking behavior detection result indicates that the target user has a smoking behavior, detecting a target seat of the target user in the target vehicle, and using the sensor device to detect a target smoke concentration in the target vehicle;

[0010] The target vehicle is controlled according to the target seat and the target smoke concentration.

[0011] According to a preferred embodiment of the present invention, before calling the pre-trained smoking behavior detection model to process the multiple images to be detected, the method further includes:

[0012] Obtain the collected historical in-vehicle images to construct an initial training set;

[0013] Marking the person behavior, hand behavior, and whether there is a cigarette and smoke track in each historical in-vehicle image in the initial training set to obtain a target training set;

[0014] Obtain the YOLO model with behavior detection and object recognition functions as the initial model;

[0015] The label of each historical in-vehicle image is used as a training target, and the target training set is used to train the initial model to obtain the smoking behavior detection model.

[0016] According to a preferred embodiment of the present invention, the acquiring of historical in-vehicle images to construct an initial training set includes:

[0017] Performing denoising processing on the historical in-vehicle image to obtain a denoised image;

[0018] Performing contrast enhancement processing on the denoised image to obtain an enhanced image;

[0019] Adjusting the brightness of the enhanced image to the configured brightness to obtain an optimized image;

[0020] The initial training set is constructed using the optimized images.

[0021] According to a preferred embodiment of the present invention, when the smoking behavior detection result indicates that the target user has a smoking behavior, the method further includes:

[0022] Send voice care prompts according to the configured frequency;

[0023] The voice care prompt is used to remind the user in the target vehicle that smoking behavior is harmful.

[0024] According to a preferred embodiment of the present invention, controlling the target vehicle according to the target seat and the target smoke concentration includes:

[0025] When the target smoke concentration is greater than or equal to 0 and less than or equal to the preset smoke concentration, a window opening degree mapping table is obtained; wherein the window opening degree mapping table is used to record the corresponding relationship between the smoke concentration and the window opening degree;

[0026] Using the target smoke concentration to traverse the window opening degree mapping table, a target window opening degree corresponding to the target smoke concentration is obtained;

[0027] Acquire the window at the target seat as the target window;

[0028] Controlling the opening of the target window according to the opening degree of the target window, and playing anti-pinch voice;

[0029] The anti-pinch voice is used to prompt the user in the target vehicle to avoid being pinched by the window when the window is raised or lowered.

[0030] According to a preferred embodiment of the present invention, the controlling the target vehicle according to the target seat and the target smoke concentration further comprises:

[0031] When the target smoke concentration is greater than the preset smoke concentration, all windows in the target vehicle are controlled to open, and the anti-pinch voice is played.

[0032] According to a preferred embodiment of the present invention, the method further comprises:

[0033] After the target window is opened, or all windows in the target vehicle are opened, when it is detected that the smoke concentration in the target vehicle is reduced to 0, the opened window is controlled to be closed, and the anti-pinch voice is played.

[0034] A vehicle control device based on smoking behavior detection, the vehicle control device based on smoking behavior detection comprising:

[0035] A start-up unit, configured to start an image acquisition device and a sensor device of a target vehicle in response to a vehicle control instruction based on smoking behavior detection of the target vehicle;

[0036] A collection unit, used to collect images inside the target vehicle in real time using the image collection device to obtain a plurality of images to be detected;

[0037] A processing unit, used for invoking a pre-trained smoking behavior detection model to process the plurality of images to be detected to obtain a smoking behavior detection result;

[0038] a detection unit, configured to detect a target seat of the target user in the target vehicle and detect a target smoke concentration in the target vehicle by using the sensor device when the smoking behavior detection result indicates that the target user has a smoking behavior;

[0039] A control unit is used to control the target vehicle according to the target seat and the target smoke concentration.

[0040] A computer device, comprising:

[0041] a memory storing at least one instruction; and

[0042] The processor executes the instructions stored in the memory to implement the vehicle control method based on smoking behavior detection.

[0043] A computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the vehicle control method based on smoking behavior detection.

[0044] It can be seen from the above technical solutions that the present invention can utilize the vehicle's image acquisition device to acquire images inside the vehicle in real time to obtain multiple images to be detected, and call a pre-trained smoking behavior detection model to process the multiple images to be detected, so as to combine artificial intelligence means to monitor the smoking behavior in the vehicle in real time; when a target user has smoking behavior, the target seat of the target user in the target vehicle is detected, and the target smoke concentration in the target vehicle is detected by using a sensor device, and the target vehicle is controlled according to the target seat and the target smoke concentration, so as to safely control the target vehicle according to different smoke concentrations and smoking positions. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a flow chart of a preferred embodiment of the vehicle control method based on smoking behavior detection of the present invention.

[0046] Figure 2 It is a functional module diagram of a preferred embodiment of the vehicle control device based on smoking behavior detection of the present invention.

[0047] Figure 3 It is a structural schematic diagram of a computer device of a preferred embodiment of the present invention for implementing a vehicle control method based on smoking behavior detection. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0049] like Figure 1 FIG. 1 is a flow chart of a preferred embodiment of a vehicle control method based on smoking behavior detection according to the present invention. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.

[0050] The vehicle control method based on smoking behavior detection is applied to one or more computer devices, which are devices that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and whose hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.

[0051] The computer device may be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0052] The computer device may also include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing.

[0053] The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0054] Among them, Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0055] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0056] The network where the computer device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.

[0057] S10, in response to a vehicle control instruction for a target vehicle based on smoking behavior detection, starting an image acquisition device and a sensor device of the target vehicle.

[0058] In this embodiment, the vehicle control instruction based on smoking behavior detection can be automatically triggered when the target vehicle is started, so as to achieve all-round safety control of the vehicle driving process.

[0059] In this embodiment, the image acquisition device may be a device having an image acquisition function, such as a camera installed in the target vehicle.

[0060] In this embodiment, the sensor device may be a smoke sensor.

[0061] S11, using the image acquisition device to acquire images inside the target vehicle in real time to obtain a plurality of images to be detected.

[0062] In this embodiment, by real-time acquisition of images inside the vehicle, real-time monitoring of the vehicle's driving process can be achieved.

[0063] S12, calling a pre-trained smoking behavior detection model to process the multiple images to be detected to obtain a smoking behavior detection result.

[0064] In this embodiment, before calling the pre-trained smoking behavior detection model to process the multiple images to be detected, the method further includes:

[0065] Obtain the collected historical in-vehicle images to construct an initial training set;

[0066] Marking the person behavior, hand behavior, and whether there is a cigarette and smoke track in each historical in-vehicle image in the initial training set to obtain a target training set;

[0067] Get the YOLO (You Only Look Once) model with behavior detection and object recognition functions as the initial model;

[0068] The label of each historical in-vehicle image is used as a training target, and the target training set is used to train the initial model to obtain the smoking behavior detection model.

[0069] Of course, in other embodiments, a CNN (Convolutional neural network) model may also be used as the initial model, and the specific selection may be made according to the requirements for model performance in actual scenarios.

[0070] Through the above embodiments, multi-dimensional features such as human behavior, hand behavior, the presence of cigarettes and smoke trajectories can be integrated, and the smoking behavior detection model can be obtained by training based on the behavior detection function and object recognition function of the model, thereby assisting in more accurate smoking behavior detection.

[0071] In this embodiment, the acquisition of historical in-vehicle images to construct an initial training set includes:

[0072] Performing denoising processing on the historical in-vehicle image to obtain a denoised image;

[0073] Performing contrast enhancement processing on the denoised image to obtain an enhanced image;

[0074] Adjusting the brightness of the enhanced image to the configured brightness to obtain an optimized image;

[0075] The initial training set is constructed using the optimized images.

[0076] In the above embodiment, through a series of processing such as denoising, image enhancement, brightness adjustment, etc., the influence of the shooting environment on the image quality can be eliminated, and the quality of the collected image can be enhanced, so that the trained model has better performance.

[0077] S13, when the smoking behavior detection result indicates that the target user has smoking behavior, detecting the target seat of the target user in the target vehicle, and using the sensor device to detect the target smoke concentration in the target vehicle.

[0078] In this embodiment, when the smoking behavior detection result indicates that the target user has a smoking behavior, the method further includes:

[0079] Send voice care prompts according to the configured frequency;

[0080] The voice care prompt is used to remind the user in the target vehicle that smoking behavior is harmful.

[0081] For example, the voice care prompt may be a voice message such as "Smoking is harmful to health" to initiate care and warning for the user in the car.

[0082] In this embodiment, the target seat of the target user in the target vehicle may be identified based on the collected image.

[0083] S14, controlling the target vehicle according to the target seat and the target smoke concentration.

[0084] In this embodiment, controlling the target vehicle according to the target seat and the target smoke concentration includes:

[0085] When the target smoke concentration is greater than or equal to 0 and less than or equal to the preset smoke concentration, a window opening degree mapping table is obtained; wherein the window opening degree mapping table is used to record the corresponding relationship between the smoke concentration and the window opening degree;

[0086] Using the target smoke concentration to traverse the window opening degree mapping table, a target window opening degree corresponding to the target smoke concentration is obtained;

[0087] Acquire the window at the target seat as the target window;

[0088] Controlling the opening of the target window according to the opening degree of the target window, and playing anti-pinch voice;

[0089] The anti-pinch voice is used to prompt the user in the target vehicle to avoid being pinched by the window when the window is raised or lowered.

[0090] The preset smoke concentration can be customized, such as 98%.

[0091] The window opening degree mapping table can adjust the window opening degree according to the smoke concentration by recording the corresponding relationship between the smoke concentration and the window opening degree, so as to achieve effective dissipation of the smoke.

[0092] Among them, the anti-pinch voice can be configured as "the car window will move, please be careful to dodge and avoid being pinched."

[0093] Through the above embodiments, the window opening degree can be controlled to a certain extent according to the smoke concentration in the car, and anti-pinch voice can be played at the same time, which can effectively dissipate the smoke and also play a certain voice care role.

[0094] In this embodiment, controlling the target vehicle according to the target seat and the target smoke concentration further includes:

[0095] When the target smoke concentration is greater than the preset smoke concentration, all windows in the target vehicle are controlled to open, and the anti-pinch voice is played.

[0096] Through the above embodiment, when the smoke reaches a certain concentration, all the windows can be opened to dissipate the smoke, thereby enabling the smoke to be dissipated more quickly to minimize the health hazards to users in the car.

[0097] In this embodiment, the method further includes:

[0098] After the target window is opened, or all windows in the target vehicle are opened, when it is detected that the smoke concentration in the target vehicle is reduced to 0, the opened window is controlled to be closed, and the anti-pinch voice is played.

[0099] In the above embodiment, when the smoke in the car has dissipated, all the windows can be closed.

[0100] Of course, in other embodiments, before the car window is opened or closed, a voice confirmation can be sent to the user in the car, and after obtaining the confirmation information from the user in the car (such as the driver), the window can be controlled to avoid automatically controlling the window when the weather is too cold or too hot, causing inconvenience to the user in the car.

[0101] It can be seen from the above technical solutions that the present invention can utilize the vehicle's image acquisition device to acquire images inside the vehicle in real time to obtain multiple images to be detected, and call a pre-trained smoking behavior detection model to process the multiple images to be detected, so as to combine artificial intelligence means to monitor the smoking behavior in the vehicle in real time; when a target user has smoking behavior, the target seat of the target user in the target vehicle is detected, and the target smoke concentration in the target vehicle is detected by using a sensor device, and the target vehicle is controlled according to the target seat and the target smoke concentration, so as to safely control the target vehicle according to different smoke concentrations and smoking positions.

[0102] like Figure 2 , which is a functional module diagram of a preferred embodiment of a vehicle control device based on smoking behavior detection of the present invention. The vehicle control device based on smoking behavior detection 11 includes a starting unit 110, a collection unit 111, a processing unit 112, a detection unit 113, and a control unit 114. The module / unit referred to in the present invention refers to a series of computer program segments that can be executed by a processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.

[0103] The start-up unit 110 is used to start the image acquisition device and sensor equipment of the target vehicle in response to the vehicle control instruction based on the smoking behavior detection of the target vehicle;

[0104] The acquisition unit 111 is used to acquire the image inside the target vehicle in real time by using the image acquisition device to obtain a plurality of images to be detected;

[0105] The processing unit 112 is used to call a pre-trained smoking behavior detection model to process the multiple images to be detected to obtain a smoking behavior detection result;

[0106] The detection unit 113 is used for detecting a target seat of the target user in the target vehicle and detecting a target smoke concentration in the target vehicle by using the sensor device when the smoking behavior detection result indicates that the target user has a smoking behavior;

[0107] The control unit 114 is used to control the target vehicle according to the target seat and the target smoke concentration.

[0108] It can be seen from the above technical solutions that the present invention can utilize the vehicle's image acquisition device to acquire images inside the vehicle in real time to obtain multiple images to be detected, and call a pre-trained smoking behavior detection model to process the multiple images to be detected, so as to combine artificial intelligence means to monitor the smoking behavior in the vehicle in real time; when a target user has smoking behavior, the target seat of the target user in the target vehicle is detected, and the target smoke concentration in the target vehicle is detected by using a sensor device, and the target vehicle is controlled according to the target seat and the target smoke concentration, so as to safely control the target vehicle according to different smoke concentrations and smoking positions.

[0109] like Figure 3 , which is a schematic diagram of the structure of a computer device of a preferred embodiment of the present invention for implementing a vehicle control method based on smoking behavior detection.

[0110] The computer device 1 may include a memory 12 , a processor 13 , and a bus, and may also include a computer program stored in the memory 12 and executable on the processor 13 , such as a vehicle control program based on smoking behavior detection.

[0111] Those skilled in the art will appreciate that the schematic diagram is merely an example of the computer device 1 and does not constitute a limitation on the computer device 1. The computer device 1 may be a bus-type structure or a star-type structure. The computer device 1 may also include more or less other hardware or software than shown in the diagram, or a different arrangement of components. For example, the computer device 1 may also include input and output devices, network access devices, etc.

[0112] It should be noted that the computer device 1 is only an example, and other existing or future electronic products that are suitable for the present invention should also be included in the protection scope of the present invention and included here by reference.

[0113] The memory 12 includes at least one type of readable storage medium, which includes flash memory, mobile hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 12 may be an internal storage unit of the computer device 1, such as a mobile hard disk of the computer device 1. In other embodiments, the memory 12 may also be an external storage device of the computer device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. equipped on the computer device 1. Further, the memory 12 may also include both an internal storage unit of the computer device 1 and an external storage device. The memory 12 may not only be used to store application software and various types of data installed in the computer device 1, such as the code of the vehicle control program based on smoking behavior detection, but also be used to temporarily store data that has been output or is to be output.

[0114] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 13 is the control core (Control Unit) of the computer device 1, and uses various interfaces and lines to connect various components of the entire computer device 1, and executes or executes programs or modules stored in the memory 12 (for example, executing a vehicle control program based on smoking behavior detection, etc.), and calls data stored in the memory 12 to execute various functions of the computer device 1 and process data.

[0115] The processor 13 executes the operating system of the computer device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned vehicle control method embodiments based on smoking behavior detection, for example Figure 1 Steps shown.

[0116] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the computer device 1. For example, the computer program may be divided into a startup unit 110, a collection unit 111, a processing unit 112, a detection unit 113, and a control unit 114.

[0117] The above-mentioned integrated unit implemented in the form of software function modules can be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute the part of the vehicle control method based on smoking behavior detection described in various embodiments of the present invention.

[0118] If the module / unit integrated in the computer device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware devices through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of each of the above-mentioned method embodiments can be implemented.

[0119] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory, etc.

[0120] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0121] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0122] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 The bus is represented by only one straight line, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13, etc.

[0123] Although not shown, the computer device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 13 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The computer device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0124] Furthermore, the computer device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used to establish a communication connection between the computer device 1 and other computer devices.

[0125] Optionally, the computer device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the computer device 1 and to display a visual user interface.

[0126] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0127] It can be understood by those skilled in the art that Figure 3 The structure shown does not constitute a limitation on the computer device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0128] Combination Figure 1 The memory 12 in the computer device 1 stores a plurality of instructions to implement a vehicle control method based on smoking behavior detection, and the processor 13 can execute the plurality of instructions to implement:

[0129] In response to a vehicle control instruction for a target vehicle based on smoking behavior detection, starting an image acquisition device and a sensor device of the target vehicle;

[0130] Using the image acquisition device to acquire images inside the target vehicle in real time to obtain a plurality of images to be detected;

[0131] Calling a pre-trained smoking behavior detection model to process the multiple images to be detected to obtain a smoking behavior detection result;

[0132] When the smoking behavior detection result indicates that the target user has a smoking behavior, detecting a target seat of the target user in the target vehicle, and using the sensor device to detect a target smoke concentration in the target vehicle;

[0133] The target vehicle is controlled according to the target seat and the target smoke concentration.

[0134] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0135] It should be noted that the data involved in this case were all obtained legally.

[0136] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0137] The present invention can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0138] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0139] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0140] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0141] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0142] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the present invention can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0143] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A vehicle control method based on smoking behavior detection, characterized in that: The vehicle control method based on smoking behavior detection includes: In response to a vehicle control instruction for a target vehicle based on smoking behavior detection, starting an image acquisition device and a sensor device of the target vehicle; Using the image acquisition device to acquire images inside the target vehicle in real time to obtain a plurality of images to be detected; Calling a pre-trained smoking behavior detection model to process the multiple images to be detected to obtain a smoking behavior detection result; When the smoking behavior detection result indicates that the target user has a smoking behavior, detecting a target seat of the target user in the target vehicle, and using the sensor device to detect a target smoke concentration in the target vehicle; The target vehicle is controlled according to the target seat and the target smoke concentration.

2. The vehicle control method based on smoking behavior detection according to claim 1, characterized in that: Before calling the pre-trained smoking behavior detection model to process the multiple images to be detected, the method further includes: Obtain the collected historical in-vehicle images to construct an initial training set; Marking the person behavior, hand behavior, and whether there is a cigarette and smoke track in each historical in-vehicle image in the initial training set to obtain a target training set; Obtain the YOLO model with behavior detection and object recognition functions as the initial model; The label of each historical in-vehicle image is used as a training target, and the target training set is used to train the initial model to obtain the smoking behavior detection model.

3. The vehicle control method based on smoking behavior detection as claimed in claim 2, characterized in that: The acquisition of historical in-vehicle images to construct an initial training set includes: Performing denoising processing on the historical in-vehicle image to obtain a denoised image; Performing contrast enhancement processing on the denoised image to obtain an enhanced image; Adjusting the brightness of the enhanced image to the configured brightness to obtain an optimized image; The initial training set is constructed using the optimized images.

4. The vehicle control method based on smoking behavior detection according to claim 1, characterized in that: When the smoking behavior detection result indicates that the target user has a smoking behavior, the method further includes: Send voice care prompts according to the configured frequency; The voice care prompt is used to remind the user in the target vehicle that smoking behavior is harmful.

5. The vehicle control method based on smoking behavior detection according to claim 1, characterized in that: The controlling the target vehicle according to the target seat and the target smoke concentration includes: When the target smoke concentration is greater than or equal to 0 and less than or equal to the preset smoke concentration, a window opening degree mapping table is obtained; wherein the window opening degree mapping table is used to record the corresponding relationship between the smoke concentration and the window opening degree; Using the target smoke concentration to traverse the window opening degree mapping table, a target window opening degree corresponding to the target smoke concentration is obtained; Acquire the window at the target seat as the target window; Controlling the opening of the target window according to the opening degree of the target window, and playing anti-pinch voice; The anti-pinch voice is used to prompt the user in the target vehicle to avoid being pinched by the window when the window is raised or lowered.

6. The vehicle control method based on smoking behavior detection as claimed in claim 5, characterized in that: The controlling the target vehicle according to the target seat and the target smoke concentration further comprises: When the target smoke concentration is greater than the preset smoke concentration, all windows in the target vehicle are controlled to open, and the anti-pinch voice is played.

7. The vehicle control method based on smoking behavior detection as claimed in claim 6, characterized in that: The method further comprises: After the target window is opened, or all windows in the target vehicle are opened, when it is detected that the smoke concentration in the target vehicle is reduced to 0, the opened window is controlled to be closed, and the anti-pinch voice is played.

8. A vehicle control device based on smoking behavior detection, characterized in that: The vehicle control device based on smoking behavior detection includes: A start-up unit, configured to start an image acquisition device and a sensor device of a target vehicle in response to a vehicle control instruction based on smoking behavior detection of the target vehicle; A collection unit, used to collect images inside the target vehicle in real time using the image collection device to obtain a plurality of images to be detected; A processing unit, used for invoking a pre-trained smoking behavior detection model to process the plurality of images to be detected to obtain a smoking behavior detection result; a detection unit, configured to detect a target seat of the target user in the target vehicle and detect a target smoke concentration in the target vehicle by using the sensor device when the smoking behavior detection result indicates that the target user has a smoking behavior; A control unit is used to control the target vehicle according to the target seat and the target smoke concentration.

9. A computer device, characterized in that: The computer device comprises: a memory storing at least one instruction; and A processor executes instructions stored in the memory to implement the vehicle control method based on smoking behavior detection as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the vehicle control method based on smoking behavior detection as claimed in any one of claims 1 to 7.