Vehicle control system, method, electronic device and medium
Through augmented reality technology, displaying virtual vehicles on electronic devices and responding to user operations, the problem of inaccurate digital car key control is solved, the user experience and automation and accuracy of vehicle control is improved, and the expansion of digital car key functions is promoted.
Patent Information
- Application Number
- CN202310153347.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-16
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2043-02-16
AI Technical Summary
The existing digital car key control methods are not accurate enough, the user experience is poor, and the detailed control of vehicle functions cannot be achieved.
Augmented reality technology is adopted to obtain scene pictures of real vehicles through electronic devices, display virtual vehicles based on location information, and send instructions to the vehicle in response to user operations, realizing visual control of the vehicle and enhancing the accuracy and automation of user operations.
Through augmented reality technology, digital car key control vehicle visualization allows users to perform detailed operations, improving the automation, humanization and accuracy of interactive design between electronic devices and vehicles, and at the same time, it is conducive to the expansion and upgrading of digital car key functions.
Smart Images

Figure CN117104179B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of augmented reality technology, and in particular to a vehicle control system, method, electronic device and medium. Background Art
[0002] Digital car keys are digital versions of car keys installed in electronic devices such as smartphones, electronic watches, and electronic bracelets. Electronic devices can control vehicles through digital car keys and complete operations such as unlocking cars, starting cars, and controlling the temperature in cars without physical keys, thereby improving users' car experience.
[0003] The current mainstream digital car keys are: Bluetooth Low Energy (BLE) car keys, Near Field Communication (NFC) car keys, and Ultra Wide Band (UWB) car keys. Regardless of which digital car key is used, after binding the vehicle's information and logo on the electronic device, the car's trunk, horn, windows and other parts are controlled by clicking traditional buttons in the application software of the electronic device. However, traditional buttons are not beautiful enough, and the control of the vehicle is usually not precise enough, and it is impossible to control the vehicle's functions in detail, resulting in a poor user experience. Summary of the invention
[0004] The purpose of this application is to provide a vehicle control system, method, electronic device and medium, which can achieve more precise control of the vehicle through detailed user operations and enhance the user experience.
[0005] In the first aspect, the present application discloses a vehicle control system, which includes electronic devices such as mobile phones, PADs, and large screens, and vehicles. The electronic device is used to obtain a scene picture, which includes a real vehicle; based on the position information of the real vehicle in the scene picture, a virtual vehicle with the scene picture as the background is displayed; in response to the user's operation on the virtual vehicle, a first instruction is sent to the vehicle; the vehicle is used to execute the first instruction, obtain the execution result, and send the execution result to the electronic device; the electronic device is used to display the virtual vehicle after executing the first instruction according to the execution result. Thus, the control of the vehicle is visualized through augmented reality technology, and the user's detailed operation can achieve precise control of the vehicle. The vehicle can also be displayed in the real-scene position of the camera and the front and rear distance can be measured, etc., so that the interaction design between the electronic device and the vehicle is more automated, humanized, and precise, and it is also more conducive to the expansion and upgrading of the digital car key function.
[0006] On the second aspect, the present application discloses a vehicle control method, which is applied to electronic devices such as mobile phones, PADs, and large screens. The method includes: obtaining a scene picture, which includes a real vehicle; based on the position information of the real vehicle in the scene picture, displaying a virtual vehicle with the scene picture as the background; in response to the user's operation on the virtual vehicle, sending a first instruction to the vehicle so that the vehicle performs an operation corresponding to the first instruction; and displaying the virtual vehicle after executing the first instruction. Thus, the control of the vehicle is visualized through augmented reality technology, and the user's detailed operation can achieve precise control of the vehicle. The vehicle can also be displayed in the real-scene position of the camera and the front and rear distance can be measured, etc., so that the interaction design between the electronic device and the vehicle is more automated, humanized, and precise, and it is also more conducive to the expansion and upgrade of the digital car key function.
[0007] In some possible implementations, the position information of the real vehicle in the scene picture is obtained by: obtaining light information of the real vehicle in the scene picture; determining the distance information of the real vehicle from a reference point in the scene picture based on the light information; and obtaining the position information of the real vehicle in the scene picture based on the distance information.
[0008] In some possible implementations, the position information of the real vehicle in the scene picture is obtained by: obtaining the distance information of the real vehicle from the reference point in the scene picture; and obtaining the position information of the real vehicle in the scene picture according to the distance information. In this way, the position information of the real vehicle in the scene picture can be obtained, and a more accurate picture on the digital car key interface can be displayed, thereby achieving the beneficial effect of visualizing the control of the vehicle through augmented reality technology, and the user's detailed operation can achieve accurate control of the vehicle. The vehicle can also be displayed in the real scene position of the camera and the distance between the front and the back can be measured, etc., so as to make the interaction design between the electronic device and the vehicle more automated, humanized, and accurate.
[0009] In some possible implementations, the virtual vehicle is obtained in the following manner: the virtual vehicle is obtained based on information about the real vehicle, where the information about the real vehicle includes one or more of the brand and model, engine number, and unique identification code of the real vehicle.
[0010] In some possible implementations, the virtual vehicle is obtained by: obtaining the length sample data of the real vehicle based on the scene image; and obtaining the virtual vehicle based on the length sample data. In this way, a more accurate virtual vehicle can be obtained, and the control of the vehicle can be visualized through augmented reality technology. The user can achieve precise control of the vehicle through detailed operations, and the vehicle can be displayed in the real scene position of the camera and the front and rear distance can be measured, etc., so as to make the interaction design between the electronic device and the vehicle more automated, humanized, and accurate.
[0011] In some possible implementations, based on the position information of the real vehicle in the scene picture, a virtual vehicle with the scene picture as the background is displayed, including: obtaining the position information of the real vehicle in the scene picture; judging whether the number of position information is greater than or equal to the number threshold; if so, based on the position information of the real vehicle in the scene picture, a virtual vehicle with the scene picture as the background is displayed. In this way, a more accurate scene can be obtained as the background, and then the control of the vehicle can be visualized through augmented reality technology. The user's detailed operation can achieve precise control of the vehicle. The vehicle can also be displayed in the real scene position of the camera and the distance between the front and the back can be measured, etc., so that the interaction design between the electronic device and the vehicle is more automated, humanized, and accurate.
[0012] In some possible implementations, before displaying a virtual vehicle with a scene picture as the background based on the position information of the real vehicle in the scene picture, the method also includes: the electronic device sends an information synchronization request to the vehicle, the information synchronization request includes model information and authentication information of the virtual vehicle, the authentication information includes one or more of a digital key and identity authentication information; the electronic device receives response information fed back by the vehicle based on the authentication information and the model information, the response information is used to indicate whether the information between the vehicle and the electronic device has been synchronized.
[0013] In a third aspect, the present application discloses an electronic device comprising a processor and a memory; the memory is used to store computer execution commands; the processor is used to execute the computer execution commands stored in the memory, so that the processor executes the vehicle control method as in the second aspect.
[0014] In a fourth aspect, the present application discloses a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed, the vehicle control method as in the second aspect is implemented.
[0015] In a fifth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the vehicle control method as in the first aspect.
[0016] Compared with the prior art, this application has the following beneficial effects:
[0017] The present application discloses a vehicle control system, method, electronic device and medium. Through augmented reality technology, the control of a vehicle by a digital car key can be visualized, and the vehicle can be more accurately controlled through detailed user operations. The vehicle can also be displayed in the real-life camera position and the front and rear distance can be measured, etc., thereby making the interaction design between the electronic device and the vehicle more automated, humanized and accurate, and also more conducive to the expansion and upgrade of the digital car key function. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of a mainstream digital car key solution provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0021] Figure 4A A schematic diagram of a solution for a vehicle control method provided in an embodiment of the present application;
[0022] Figure 4B A schematic diagram of the overall architecture of a vehicle control method provided in an embodiment of the present application;
[0023] Figure 5A A signaling diagram of a method for pairing a vehicle with a digital car key provided in an embodiment of the present application;
[0024] Figure 5B A flowchart of a method for augmented reality provided in an embodiment of the present application;
[0025] Figure 6 A schematic diagram of an interface for starting an application provided in an embodiment of the present application;
[0026] Figure 7 A schematic diagram of an identity authentication interface provided in an embodiment of the present application;
[0027] Figure 8 A schematic diagram of a successful pairing interface provided in an embodiment of the present application;
[0028] Fig. 9 A flow chart of a vehicle control method provided in an embodiment of the present application;
[0029] Fig.10 A schematic diagram of an AR command interface provided in an embodiment of the present application;
[0030] Fig.11 A schematic diagram of a camera page of an electronic device provided in an embodiment of the present application;
[0031] Fig.12 A schematic diagram of a gallery page of an electronic device provided in an embodiment of the present application;
[0032] Fig.13 A schematic diagram of an interface of a virtual vehicle in a real scene provided in an embodiment of the present application;
[0033] Fig.14 A schematic diagram of a vehicle maintenance solution provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.
[0035] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0036] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given:
[0037] Augmented reality technology is a technology that combines the real world with virtual information by calculating the position and angle of camera images in real time and adding corresponding images based on real-time computer computing and multi-sensor fusion. It provides people with an experience close to the real world by superimposing virtual information on real information. The goal of this technology is to put the virtual world on the real world on the screen and interact with it. It has been widely used in entertainment, military and film and television. For example, during a video call, virtual scenes such as a hat are superimposed on the caller's face in real time to enhance the caller's scene content and make the video conversation more interesting.
[0038] Digital car keys are digital versions of car keys installed in electronic devices such as smart phones, electronic watches, and electronic bracelets. Car owners can use digital car keys to unlock the car, start the car, control the temperature in the car, and other operations without physical keys, greatly improving the user's car experience.
[0039] See also Figure 1 , which is a schematic diagram of a mainstream digital car key solution provided by an embodiment of the present application. The current mainstream digital car keys mainly include: Bluetooth Low Energy (BLE) car keys, Near Field Communication (NFC) car keys, and Ultra Wide Band (UWB) car keys.
[0040] BLE car key refers to a digital car key that can use the Bluetooth function of electronic devices to control the vehicle in the application software when it is close to the vehicle. BLE car key is usually used within 15 meters of an open space. It has low power consumption and mature technology, but its performance will vary depending on factors such as the mobile phone used and environmental interference.
[0041] NFC car key refers to a digital car key that can be unlocked by placing an electronic device with NFC function close to a card swipe sensing area on a certain part of the car body (such as the card swipe sensing area on the B-pillar or the exterior rearview mirror, etc.) without completely fitting it. Compared with BLE car keys, NFC car keys can operate normally even when the electronic device is out of power.
[0042] UWB car key refers to a digital car key that can combine multiple anchor points arranged in the vehicle with electronic devices to achieve close-range and accurate spatial perception of the vehicle just by approaching the vehicle. Using vehicle spatial perception, the vehicle can independently judge and control the vehicle to achieve intelligent control.
[0043] At present, no matter which digital car key is used, after binding the information and logo of your vehicle on the electronic device, you can control the trunk, horn, windows and other components of the car by clicking traditional buttons in the application software of the electronic device, and the locking and unlocking of the vehicle is mainly achieved by distance (signal strength) sensing, NFC contact chip, etc.
[0044] However, traditional buttons are not aesthetically pleasing, and the control of the vehicle is usually not precise enough, and it is impossible to control the vehicle functions in detail, resulting in a poor user experience.
[0045] In view of this, the present application discloses a vehicle control system, method, electronic device and medium, which visualizes the control of the vehicle by a digital car key through augmented reality technology, and can achieve more precise control of the vehicle through detailed user operations. The vehicle can also be displayed in the real-life camera position and the front and rear distance can be measured, etc., thereby making the interaction design between the electronic device and the vehicle more automated, humanized and precise, and also more conducive to the expansion and upgrade of the digital car key function.
[0046] First, an exemplary electronic device 100 provided in an embodiment of the present application is introduced. In some embodiments, the electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device and / or a smart city device. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device 100. See Figure 2, which is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0047] like Figure 2 As shown, the electronic device 100 may include a processor 110, an internal memory 120, an antenna 1, an antenna 2, a mobile communication module 130, a wireless communication module 140, a sensor module 150, a display screen 160, a camera 170, etc. The sensor module 150 may include a touch sensor 151, a distance sensor 152, a proximity light sensor 153, an ambient light sensor 154, etc.
[0048] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0049] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. For example, in the present application, the processor 110 can obtain a scene picture, and the scene picture includes a real vehicle; based on the position information of the real vehicle in the scene picture, a virtual vehicle with the scene picture as the background is displayed; in response to the user's operation on the virtual vehicle, a first instruction is sent to the vehicle so that the vehicle performs an operation corresponding to the first instruction; and the virtual vehicle after executing the first instruction is displayed. Therefore, through augmented reality technology, the control of the vehicle can be visualized, and the user's detailed operations can achieve precise control of the vehicle. The vehicle can also be displayed in the real-life camera position and the front and rear distance can be measured, etc., making the interaction design between electronic devices and vehicles more automated, humanized, and precise, and also more conducive to the expansion and upgrade of the digital car key function.
[0050] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0051] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0052] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuits sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0053] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 151 and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 151 through the I2C interface, so that the processor 110 communicates with the touch sensor 151 through the I2C bus interface to realize the touch function of the electronic device 100. Based on the touch function of the electronic device 100, after the user touches the application icon displayed by the electronic device, the electronic device can start the application.
[0054] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 140.
[0055] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 160. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 170 communicate via the CSI interface to implement the shooting function of the electronic device. The processor 110 and the display screen 160 communicate via the DSI interface to implement the display function of the electronic device. For example, the electronic device can display a related interface based on the display function.
[0056] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 170, the display 160, the wireless communication module 140, the sensor module 150, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0057] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0058] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 130, wireless communication module 140, modem processor and baseband processor.
[0059] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0060] The internal memory 120 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 120. The internal memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 120, and / or the instructions stored in the memory provided in the processor.
[0061] The mobile communication module 130 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 130 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 130 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 130 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 130 may be arranged in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 130 may be arranged in the same device as at least some of the modules of the processor 110.
[0062] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor displays an image or video through the display screen 160. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 130 or other functional modules.
[0063] The wireless communication module 140 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to electronic devices. The wireless communication module 140 can be one or more devices integrating at least one communication processing module. The wireless communication module 140 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 140 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0064] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 130, and the antenna 2 is coupled to the wireless communication module 140, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite-based augmentation system (SBAS).
[0065] The electronic device implements the display function through a GPU, a display screen 160, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 160 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0066] The touch sensor 151 is also called a "touch control device". The touch sensor 151 can be arranged on the display screen 160. The touch sensor 151 and the display screen 160 form a touch screen, also called a "touch control screen". The touch sensor 151 is used to detect touch operations acting on or near it. The touch sensor 151 can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 160. In other embodiments, the touch sensor 151 can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 160.
[0067] The distance sensor 152 is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, in the distance measurement scenario, the electronic device 100 can use the distance sensor 152 to achieve distance measurement.
[0068] The proximity light sensor 153 may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device emits infrared light outward through the light emitting diode. The electronic device uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device can determine that there is no object near the electronic device. The electronic device can use the proximity light sensor 153 to detect that the user holds the electronic device close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 153 can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0069] The ambient light sensor 154 is used to sense the ambient light brightness. The electronic device can adaptively adjust the brightness of the display screen 160 according to the perceived ambient light brightness. The ambient light sensor 154 can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 154 can also cooperate with the proximity light sensor 153 to detect whether the electronic device is in a pocket to prevent accidental touch.
[0070] The display screen 160 is used to display images, videos, etc. The display screen 160 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oled, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 160, where N is a positive integer greater than 1.
[0071] A series of graphical user interfaces (GUIs) can be displayed on the display screen 160 of the electronic device, and these GUIs are the main screens of the electronic device. Generally speaking, the size of the display screen 160 of the electronic device is fixed, and only limited controls can be displayed on the display screen 160 of the electronic device. A control is a GUI element, which is a software component included in an application program, and controls all data processed by the application program and interactive operations on these data. Users can interact with the control through direct manipulation to read or edit relevant information of the application program. Generally speaking, a control can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0072] The camera 170 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device may include 1 or N cameras 170, where N is a positive integer greater than 1.
[0073] In addition, an operating system is running on the above components, such as the iOS operating system developed by Apple, the Android open source operating system developed by Google, and the Windows operating system developed by Microsoft. Application programs can be installed and run on the operating system.
[0074] The operating system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.
[0075] See also Figure 3 , which is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application. The present application embodiment takes the Android system of layered architecture as an example to exemplarily illustrate the software structure of the electronic device 100.
[0076] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: Applications (APP), Framework (FWK), Hardware Abstraction Layer (HAL), and Kernel.
[0077] The application layer may include a series of application packages. In some embodiments, the application layer may include applications such as digital car keys, cameras, etc.
[0078] The framework layer provides an application programming interface (API) and a programming framework for the application layer's application program, and the framework layer may include some predefined functions. In some specific implementations, the framework layer may include a camera module 301, a light sensing module 302, a positioning module 303, a collection module 304, an AR image processing module 305, an AR gesture parsing module 306, a vehicle instruction parsing module 307, and a communication module 308.
[0079] In some examples, after opening the application digital car key APP, the user can take pictures through the camera 170 based on the camera module 301 or the acquisition module 304 of the framework layer on the digital car key APP, so that the taken picture is used as a scene picture, and then a mapping relationship between the real scene and the display screen 160 is established.
[0080] In some examples, the light sensing module 302 based on the framework layer on the digital car key APP can perform light sensing positioning through the proximity light sensor 153 and the ambient light sensor 154 to obtain the position information of the vehicle and various reference points in the real scene.
[0081] In some examples, the positioning module 303 based on the framework layer can be positioned on the digital car key APP through antenna 1, mobile communication module 130, antenna 2 and wireless communication module 140 to directly obtain the location information of the vehicle and each reference point in the real scene.
[0082] In some examples, the AR image processing module 305 based on the framework layer can be used on the digital car key APP to display the real scene and the virtual vehicle in the real scene in proportion based on information such as distance on the display interface of the digital car key APP.
[0083] In some examples, an AR gesture parsing module 306 based on the framework layer can be implemented on the digital car key APP to respond to the user operating any component of the virtual vehicle on the display interface of the digital car key APP (such as swiping the door, swiping the window, clicking the trunk, etc.), thereby analyzing the touched components and action gestures, and assembling the touched components and action gestures into operation instructions.
[0084] In some examples, the vehicle instruction parsing module 307 of the framework layer can be used on the digital car key APP to assemble the above parsed touched parts and action gestures into operation instructions, and the operation instructions can be sent to the vehicle controller of the vehicle via the cloud server through the communication module 308, so that the vehicle completes the state operation corresponding to the operation instruction. For example, if the touched part in the operation instruction is the door and the action gesture is an external swipe, then the corresponding state operation on the vehicle side is to open the door.
[0085] The hardware abstraction layer defines the interface of the hardware "driver" and reduces the coupling between the Android operating system and the hardware.
[0086] The kernel layer is responsible for managing the system's processes, memory, device drivers, files, and network systems, and determines the system's performance and stability.
[0087] It should be noted that although the embodiment of the present application is described using the Android system as an example, its basic principles are also applicable to electronic devices 100 based on operating systems such as iOS and Windows.
[0088] See also Figure 4A , which is a solution diagram of a vehicle control method provided by an embodiment of the present application. Among them, the digital car key 401 is integrated into the electronic device 100 in the form of application software. The cloud server 402 is a central server with certain performance and storage space, which is used to issue operation instructions collected from the digital car key 401 of the electronic device 100 to the on-board controller 404 of the vehicle 403, to return the status operation completion instruction to the electronic device 100 to feedback the compliance result of the vehicle 403 to the operation instruction, to authenticate the electronic device 100 and the vehicle 403, and to record the operation instruction log of the electronic device 100. It can be understood that if there is no need to authenticate the electronic device 100 and the vehicle 403 and record the operation instruction log of the electronic device 100, the electronic device 100 and the vehicle 403 can directly communicate the vehicle control data and vehicle status without being conveyed through the cloud server 402.
[0089] After the electronic device 100 is successfully bound to the vehicle 403 via the cloud server 402 and the pairing is completed, the virtual vehicle 403 can be displayed on the display interface of the digital car key 401. Subsequently, the user can collect photos or videos, and use computer vision processing methods to attach the virtual vehicle 403 to the real scene in the photo or video in proportion, that is, the user can directly see the virtual vehicle 403 and the real scene where the vehicle 403 is located through the display interface of the digital car key 401, and can realize the corresponding state operation of the corresponding component of the vehicle 403 by operating any component of the virtual vehicle 403.
[0090] Subsequently, in response to different operations of the user on the virtual vehicle 403 in the display interface of the digital car key 401, the electronic device 100 will send the operation as an operation instruction to the cloud server 402. The operation can be an operation on the vehicle control data, such as clicking on the air conditioner of the virtual vehicle 403 in the display interface to adjust the air conditioner of the vehicle 403 to 26°C (degrees Celsius); the operation can also be an operation on the vehicle state, such as clicking on the door of the virtual vehicle 403 in the display interface and sliding it outward to open the door of the vehicle 403, etc. This application does not limit the specific operations and their corresponding operation instructions.
[0091] After receiving the operation instruction sent by the electronic device 100, the cloud server 402 synchronizes the operation instruction to the vehicle 403. After the vehicle 403 receives the operation instruction sent by the cloud server 402, the vehicle controller 404 completes the state operation corresponding to the operation instruction (such as adjusting the air conditioning temperature, opening the door, etc.), and then synchronizes the result of the state operation to the electronic device 100 via the cloud server 402, and then the result of the state operation can be displayed to the user on the display interface of the digital car key 401.
[0092] See also Figure 4B , which is a schematic diagram of the overall architecture of a vehicle control method provided by an embodiment of the present application. The digital car key 401 of the electronic device 100 may include a camera module 301, a light sensing module 302, a positioning module 303, a collection module 304, an AR image processing module 305, an AR gesture parsing module 306, a vehicle instruction parsing module 307, and a communication module 308. The cloud server may have an authentication service module 407, a storage service module 408, and a log service module 409. The vehicle controller 404 of the vehicle 403 may include a vehicle communication module 405 and a vehicle control module 406.
[0093] The digital car key 401 of the electronic device 100 is based on the camera module 301, the light sensing module 302, the positioning module 303, and the acquisition module 304, and receives the real environment and objects as the real scene through the hardware such as the camera 170, the distance sensor 152, the proximity light sensor 153, and the ambient light sensor 154, and obtains the information data (such as light sensing information, location information, etc.) in the real scene. The digital car key 401 of the electronic device 100 is based on the AR image processing module 305, and can display the virtual vehicle 403 and the real scene where the vehicle 403 is located on the display interface of the digital car key 401 of the electronic device 100 based on the above information data. Subsequently, in response to the user operating any component of the virtual vehicle on the display interface of the digital car key APP, the AR gesture analysis module 306 of the digital car key 401 can analyze the touched components and action gestures. Next, the vehicle instruction parsing module 307 of the digital car key 401 assembles the parsed touched parts and action gestures into an operation instruction, and sends the operation instruction to the vehicle communication module 405 of the vehicle controller 404 of the vehicle 403 via the cloud server 402 through the communication module 308. After the vehicle control module 406 of the vehicle controller 404 performs the state operation corresponding to the operation instruction, it sends the state operation completion instruction to the communication module 308 of the digital car key 401 of the electronic device 100.
[0094] The authentication service module 407 of the cloud server 402 is used to manage authorized vehicles and electronic devices, and identify the identity data of the sender and receiver of the command operation. The storage service module 408 is used to store the car keys generated by the user. The user can synchronize his own car keys and data at any time, reducing the storage capacity of the local device of the electronic device 100. The log service module 409 is used to record the user's operation log and the feedback record of the vehicle 403. The operation log and feedback record can reduce the occurrence of accidents and errors.
[0095] See also Figure 5A , which is a signaling diagram of a method for pairing a vehicle with a digital car key provided in an embodiment of the present application. The method includes:
[0096] S501: Digital car key starts.
[0097] After installing the digital car key APP in the electronic device 100 and registering an account on the digital car key APP, the electronic device 100 can start the digital car key 401. The digital car key 401 can be used to control the unlocking, locking, starting, opening / closing, turning on / off the air conditioner, adjusting the air conditioner temperature, turning on / off the seat heating, opening / closing the windows, flashing lights, honking, ventilation and other operations of the vehicle.
[0098] See also Figure 6, this figure is a schematic diagram of an interface for starting an application provided in an embodiment of the present application. The scenario includes an electronic device 100, and the electronic device 100 is taken as a smart phone as an example for explanation. Figure 6 In the embodiment, the electronic device 100 can present a human-computer interaction interface. After the user unlocks the electronic device 100, the electronic device 100 can present a desktop 600 to the user, and the desktop 600 includes icons of various applications, such as a camera icon, a flashlight icon, a digital car key icon 601, etc. The user can trigger an operation on the application icon, such as clicking, long pressing, sliding, etc. After the electronic device 100 receives the operation triggered by the user, it can start the corresponding application. In one embodiment, the user can directly click on the digital car key icon 601 on the desktop 600 of the electronic device 100 to start the digital car key application and enter the application interface of the digital car key 401.
[0099] See also Figure 5B , which is a flowchart of a method for augmented reality provided by an embodiment of the present application. The method for augmented reality is the underlying logic for completing augmented reality display. The method for augmented reality uses ARCore as a whole to develop an AR mobile terminal (i.e., electronic device 100). When a user moves the electronic device 100, ARCore can understand the real scene around it and simulate the real scene digitally.
[0100] It should be noted that the underlying logic of the "digital car key start" operation is the "create a new Android project" in step S5001 and the "install Google ARCore and Sceneform SDK" in step S5002. Among them, Google ARCore and Sceneform SDK are the main installation packages for completing augmented reality, and both are the basis for realizing AR applications.
[0101] S502: The digital vehicle key parses the vehicle model in response to the binding request.
[0102] The binding request is a request to bind the vehicle 403 to the digital car key 401 of the electronic device 100 so that the virtual vehicle 403 can be displayed on the display interface of the digital car key 401. In response to the binding request submitted by the user on the electronic device 100, the digital car key 401 starts to parse the model of the vehicle 403.
[0103] In some specific implementations, the digital car key 401 can obtain a vehicle model by taking a photo of the vehicle, thereby further analyzing the vehicle model. Specifically, the vehicle sample in the photo can be located, and the data of the vehicle sample can be collected, and the vehicle model can be drawn using the data of the vehicle sample as a model parameter. Exemplarily, the data of the vehicle sample (i.e., the model parameter) can include: vehicle shape data (e.g., a car, truck, or bus), vehicle color data, and vehicle size data, etc.
[0104] In other specific implementations, the digital car key 401 can also obtain the vehicle model based on the vehicle information, so as to further parse the vehicle model. Exemplarily, the vehicle information can be the brand and model of the vehicle, the engine number of the vehicle, the unique identification code (Universally Unique Identifier, UUID) of the vehicle, etc. In some implementations, since the engine number of the vehicle and the UUID of the vehicle are both long strings of numbers, users are prone to errors in the process of entering vehicle information. Therefore, in order to avoid errors in entering vehicle information, an electronic code (such as a QR code or a barcode) can be generated based on the engine number and UUID of the vehicle, and the generated electronic code can be displayed to the user (for example, displayed on the central control screen of the vehicle), so that the user can automatically enter the vehicle information after scanning the electronic code.
[0105] It should be noted that if the digital car key 401 obtains the vehicle model based on the vehicle information, then the underlying logic corresponding to the operation of S502 is "using 3DMAX to draw the vehicle model according to the vehicle model parameters" of S5003. That is, the vehicle models supported by the digital car key 401 should be agreed with the cooperating car companies, and the model should be made using 3DMAX or other 3D models according to the wheel feature information and model feature information (such as vehicle wheel, vehicle appearance, vehicle style, vehicle logo and model feature information) provided by the cooperating car companies, or the vehicle model should be directly provided by the cooperating car companies, and finally the model should be imported into the digital car key 401.
[0106] In other specific implementations, the digital car key 401 may also directly parse the vehicle model stored in the electronic device 100, or the digital car key 401 may parse the vehicle model after downloading the vehicle model from the cloud server 402. It should be noted that there are many methods for parsing vehicle models, and this application does not limit the specific method for parsing vehicle models.
[0107] S503: The digital vehicle key stores the vehicle model.
[0108] After executing the operation of parsing the vehicle model in S502 , the digital car key 401 can store the vehicle model in the local memory of the electronic device 100 , so that the next pairing can be performed more conveniently and quickly after the current pairing is disconnected.
[0109] It should be noted that the underlying logic corresponding to the operation of "storing vehicle model in digital car key" is "copying model .obj and other files to the project" in step S5004. Among them, .obj file is a 3D model file format.
[0110] S504: The digital car key initiates an information synchronization request to the cloud server.
[0111] The information synchronization request is accompanied by the vehicle model obtained in step 502. The purpose of the digital car key 401 sending the information synchronization request to the cloud server 402 is to determine that all model parameters in the vehicle model are correct. For example, the vehicle model parameters may be the vehicle's appearance data (e.g., a sedan, truck, or bus), the vehicle's color data, and the vehicle's size data.
[0112] In some specific implementations, in addition to the vehicle model, the information synchronization request initiated by the digital car key 401 of the electronic device 100 to the cloud server 402 may also include authentication information such as the digital key and identity authentication information. Authentication refers to verifying whether the user has the right to access, that is, the cloud server 402 determines whether the digital car key 401 can synchronize the accurate parameters of the vehicle 403. When the cloud server 402 successfully authenticates, the cloud server 402 then initiates an information synchronization request to the vehicle 403 corresponding to the information synchronization request initiated by the digital car key 401 to the cloud server 402, so that the digital car key 401 and the vehicle 403 can complete information synchronization.
[0113] Specifically, the identity authentication information can be a personal universal identity identification number (PIN), fingerprint, face, iris, bone conduction, and behavior-based authentication. It is understandable that when the authentication method is an identity authentication method, the digital car key 401 needs to first collect the biometrics or other authentication data input by the user. In this process, the digital car key 401 can generate an identity authentication interface to inform it of the purpose of the identity authentication performed this time. At the same time, the identity authentication interface can also display guidance information to guide the user to complete the identity authentication.
[0114] See also Figure 7 , which is a schematic diagram of an interface for identity authentication provided in an embodiment of the present application. The scenario includes an electronic device 100, and the electronic device 100 is described by taking a smart phone as an example. Figure 7In the example, the electronic device 100 may present an identity authentication interface 700. In the identity authentication interface 700, the prompt text and picture in the middle area are used to inform the user that this identity authentication is fingerprint recognition and this identity authentication is used for information synchronization. The button in the lower area is used to prompt the user to perform face recognition or cancel verification.
[0115] It is understandable that the effect of the cloud server is to authenticate the stored data to determine whether the digital car key 401 can synchronize the accurate parameters of the vehicle 403. If it is not necessary to authenticate the stored data and directly synchronize the accurate parameters of the vehicle 403 with the digital car key 401, the digital car key 401 can directly initiate an information synchronization request to the vehicle 403.
[0116] S505: The cloud server authenticates the data and stores the vehicle model.
[0117] In some specific implementations, if the information synchronization request initiated by the digital car key 401 is accompanied by the first digital key, the cloud server 402 can verify whether the digital car key 401 can synchronize the accurate parameters of the vehicle 403 by comparing the first digital key with the second digital key stored in the cloud server 402. Under normal circumstances, the first digital key and the second digital key can match each other. If the first digital key and the second digital key match successfully, it means that the comparison is successful, and the cloud server 402 determines that the digital car key 401 can synchronize the accurate parameters of the vehicle 403, and executes S506 and subsequent operations; if the first digital key and the second digital key do not match successfully, it means that the comparison fails, and the cloud server 402 determines that the digital car key 401 cannot synchronize the accurate parameters of the vehicle 403, and needs to return to S501 to restart the pairing.
[0118] In other specific implementations, if the information synchronization request initiated by the digital car key 401 is accompanied by identity authentication, the cloud server 402 can collect the password, biometrics or other authentication data entered by the user, and then compare it with the pre-stored password, biometrics or other authentication data, so as to generate a user identity authentication result. If the collected authentication data matches the pre-stored authentication data, it means that the comparison is successful, and the cloud server 402 determines that the digital car key 401 can synchronize the accurate parameters of the vehicle 403 end, and executes S506 and subsequent operations; if the collected authentication data does not match the pre-stored authentication data, it means that the comparison fails, and the cloud server 402 determines that the digital car key 401 cannot synchronize the accurate parameters of the vehicle 403 end, and needs to return to S501 to restart pairing.
[0119] It should be noted that there are many methods for authenticating data, and this application does not limit the specific method for storing data. The above data authentication process is performed in the authentication service module 407 of the cloud server 402. The authentication service module 407 is used to manage authorized vehicles and electronic devices and identify the identity data of the sender and receiver of the instruction operation.
[0120] After the cloud server 402 authenticates the data, the cloud server also saves the vehicle model in the information synchronization request to the storage service module 408 of the cloud server 402. The storage service module 408 is used to store the car keys, vehicle models, etc. generated by the user. The user can synchronize his own car keys and data at any time to reduce the storage capacity of the local device of the electronic device 100.
[0121] S506: The cloud server initiates an information synchronization request to the vehicle.
[0122] When the cloud server 402 successfully authenticates the stored data and determines that the digital car key 401 can synchronize the accurate parameters of the vehicle 403, the cloud server 402 will initiate an information synchronization request to the vehicle 403 to synchronize the information of the vehicle 403. When the vehicle 403 receives the information synchronization request sent by the cloud server 402, it means that the vehicle 403 and the digital car key 401 are successfully paired.
[0123] After the vehicle 403 is successfully paired with the digital car key 401, the information of the vehicle 403 will be displayed on the display interface of the digital car key 401. Figure 8 , which is a schematic diagram of a successful pairing interface provided in an embodiment of the present application. Figure 8 In the example, the electronic device 100 may present a pairing success interface 800. The pairing success interface 800 may display a car license plate number, a virtual vehicle (vehicle model), and function plug-ins such as an AR command button 801 and a scene import button 802.
[0124] It is understandable that if the user needs to attach the virtual vehicle 403 (vehicle model) to the real scene in proportion, that is, directly see the virtual vehicle 403 and the real scene where the vehicle 403 is located through the display interface of the digital car key 401, then after clicking the scene import button 802, the following S901 and subsequent steps can be executed. If the user does not need to see the real scene where the vehicle 403 is located, and directly operates any component of the virtual vehicle 403 to realize the corresponding state operation of the corresponding component of the vehicle 403, then after clicking the AR command button 801, the following S904 and subsequent steps can be executed.
[0125] See also Fig. 9 , which is a flow chart of a vehicle control method provided by an embodiment of the present application, and is applied after the vehicle 403 is successfully paired with the digital car key 401. The method includes:
[0126] S901: The digital car key obtains a scene image sequence.
[0127] The scene refers to the real scene in which the vehicle 403 is located in reality, and all scene images contained in the scene image sequence are images of the vehicle 403 at different angles in the real scene. The scene image can be an RGB image or an image in other formats, and the application does not limit the specific image format. The scene picture sequence can be an image frame sequence formed by splitting the scene video after frame extraction processing, or a sequence composed of two or more scene images.
[0128] In some possible implementations, after the electronic device 100 is used to shoot a video for the vehicle 403, the video can be subjected to video frame extraction processing using OpenCV software. For example, images with an interval of 5 frames can be selected as key frame images, and the key frame image sequence can be used as the scene image sequence. It should be noted that images with an interval of 3 frames, 10 frames, or other frame numbers can also be selected as key frame images, and the specific frame number is not limited in this application.
[0129] In some other possible implementations, two or more photos may be taken by the electronic device 100 for the vehicle 403, and the photos are used as the scene image sequence. It should be noted that the photos may be photos taken by a series of electronic devices at different positions at the same time, or photos taken by a single electronic device while moving. The specific shooting method is not limited in this application.
[0130] See also Figure 8 After entering the pairing success interface 800, the user can click the scene import button 802 to enter the Fig.10 See the interface shown. Fig.10 , which is a schematic diagram of an AR command interface provided in an embodiment of the present application. The electronic device 100 can present an AR command interface 1000. After entering the AR command interface 1000, the AR command interface 1000 displays a camera button 1001 and a gallery button 1002. The user can enter the camera plug-in of the electronic device 100 by clicking the camera button 1001, or enter the gallery plug-in of the electronic device 100 by clicking the gallery button 1002.
[0131] See also Fig.11, which is a schematic diagram of a camera page of an electronic device provided in an embodiment of the present application. After clicking the camera button 1001 to enter the camera plug-in of the electronic device 100, a camera page 1100 may be displayed. The camera page 1100 includes a gallery button, a lens flip button, a shooting button 1101, etc. The user may click the shooting button 1101 in the camera page 1100 to shoot multiple scene pictures as a scene picture sequence.
[0132] See also Fig.12 , which is a schematic diagram of a gallery page of an electronic device provided in an embodiment of the present application. After clicking the gallery button 1002 to enter the gallery plug-in of the electronic device 100, the gallery page 1200 can be displayed. The user can click on the pictures in the gallery page 1200 to select multiple scene pictures as a scene picture sequence.
[0133] S902: The digital car key performs light sensing positioning to obtain location information.
[0134] In some specific implementations, the digital car key 401 can obtain the current light sensing information through the proximity light sensor 153 and / or the ambient light sensor 154 in the hardware structure of the electronic device 100, and then perform light sensing positioning based on the current light sensing information obtained to obtain the position information of the vehicle 403 in the real scene and each reference point in the real scene. Among them, the proximity light sensor 153 is a sensor that uses electromagnetic fields, light and sound to detect the presence or absence of reflected light. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, it can be determined that there is no object near the electronic device 100. The ambient light sensor 154 is a sensor that outputs an electrical signal in real time by sensing the surrounding light intensity. It should be noted that this application does not limit the position and number of specific reference points.
[0135] In some other specific implementations, the digital car key 401 can measure the light sensing information by detecting the brightness in the scene image sequence, and then perform light sensing positioning based on the obtained light sensing information to obtain the position information of the vehicle 403 in the real scene and each reference point in the real scene. It should be noted that this application does not limit the method for obtaining the current light sensing information.
[0136] It is understandable that the digital car key 401 can also directly obtain the distance information between the vehicle 403 in the real scene and each reference point in the real scene through the distance sensor 152 in the hardware structure of the electronic device 100. Then, the position information of the vehicle in the scene is determined based on the distance information. It should be noted that the specific method for obtaining the position information is not limited in this application.
[0137] It should be noted that the underlying logic corresponding to the operation of "obtaining digital car keys for light sensing positioning to obtain location information" is "creating and managing AR system through com.google.ar.core.session" in step S5005, and "obtaining image capture data and estimated information of real scene lighting through com.google.ar.core.ImageMedata and com.google.ar.core.LightEstimate" in step S5006.
[0138] In S5005, to create and manage the AR system through com.google.ar.core.session, you need to create Session and Config in the onCreate method of the application's Activity. Among them, Session is the management class of ARCore. The opening and closing of ARCore, the acquisition of video frames, etc. are all managed through Session. Config can be used to store some configuration information, such as the plane search mode, lighting mode, etc., which are all recorded in this class.
[0139] In S5006, while obtaining the image capture data and the estimated information of the real scene lighting through com.google.ar.core.ImageMedata and com.google.ar.core.LightEstimate, the vehicle model previously imported into the project can be loaded, and arFragment can be created to host the current scene. Subsequently, an anchor point can be created based on HitResult. The anchor point is a fixed position and direction in the real world. The position of the anchor point will change with the position of the mobile phone camera, thereby achieving "position invariance" in a relative sense.
[0140] S903: The digital car key displays a virtual vehicle in a real scene based on the scene image, location information and vehicle model.
[0141] After obtaining the location information, the digital car key 401 can integrate the location information with the vehicle model and scene image stored in S503 to display the virtual vehicle in the real scene. Fig.13 , which is a schematic diagram of an interface of a virtual vehicle in a real scene provided in an embodiment of the present application. Fig.13 In the example, the electronic device 100 can present an interface 1300 of a virtual vehicle in a real scene. The vehicle in the interface is a vehicle model parsed and stored by the car key, the trees in the interface are trees in the real scene, and the ratio of the vehicle in the interface to the real scene is the same as that of the vehicle in reality.
[0142] In some specific implementations, before displaying a virtual vehicle in a real scene, the digital car key needs to determine whether the acquired location information is sufficient to integrate the vehicle model with the location information and the scene image. Exemplarily, it can be determined whether the number of acquired location information is greater than or equal to a preset number threshold. If the number of acquired location information is greater than or equal to the preset number threshold, then the location information acquired by the digital car key is sufficient to integrate the virtual vehicle with the location information; if the number of acquired location information is less than the preset number threshold, then the location information acquired by the digital car key cannot integrate the virtual vehicle with the location information.
[0143] It should be noted that the underlying logic corresponding to the operation of "the digital car key displays a virtual vehicle in a real scene based on location information" is "update the AR system in real time through com.google.ar.core.Frame" in step S5007 and "render and display through GLSurfaceView video" in step S5008. That is, after the electronic device 100 updates the AR system, the acquired real scene will diverge from the anchor point, and create nodes and GLSurfaceView objects based on resource files such as vehicle models. GLSurfaceView will be associated with the context of graphics rendering, and finally render the video to the screen and display the combination of the virtual vehicle and the real scene.
[0144] S904: In response to the user's operation, the digital car key obtains an operation instruction.
[0145] When the virtual vehicle 403 (vehicle model) in the real scene is displayed on the display screen of the electronic device 100, the user can operate any component of the virtual vehicle 403, such as doors, windows, trunk, etc. The digital car key will analyze the components touched by the user and the action gestures, and assemble the touched components and action gestures into operation instructions.
[0146] For example, if the user clicks on the door of a virtual vehicle and slides it outward, the touch component in the operation instruction is the door and the action gesture is sliding outward; if the user clicks on the trunk of the virtual vehicle and slides it downward, the touch component in the operation instruction is the trunk and the action gesture is sliding downward.
[0147] It should be noted that the underlying logic corresponding to the operation "In response to the user's operation, the digital car key obtains the operation instruction" is the "Use GestureDetector to obtain the user's operation instruction according to the touch coordinates and the virtual vehicle coordinates" in step S5009. That is, when the user touches the screen and the virtual vehicle 403, Sceneform will pass the touch event to the event handler and listener connected to the node and the real scene, and then support the tap (select), drag (move), pinch (zoom) and tilt (rotate) gestures through GestureDetecto. According to the touch point, the operation action is calculated, and the action is encapsulated into a transmittable data packet, that is, the operation instruction.
[0148] S905: The digital car key sends the operation instruction to the cloud server.
[0149] After assembling the operation instruction, the digital car key 401 synchronizes the operation instruction to the cloud server 402. It should be noted that the underlying logic corresponding to the operation of "in response to the user's operation, the digital car key obtains the operation instruction" is the "transmitting the operation instruction to the cloud server" in step S5010.
[0150] S906: The cloud server authenticates the data and stores the operation instructions.
[0151] The cloud server 402 may save the operation instructions obtained in step S905 to the local log service module 409 of the cloud server 402. The log service module 409 is used to record the user's operation log and the vehicle's feedback record, and the occurrence of accidents and errors can be reduced through the log.
[0152] It should be noted that the method in which the cloud server 402 authenticates data in step S906 is the same as the method in which the cloud server 402 authenticates data in step S505, which will not be repeated here.
[0153] S907: The cloud server sends the actual operation instructions to the vehicle.
[0154] After acquiring the operation instruction, the cloud server 402 sends the operation instruction to the vehicle 403, so that the on-board controller 404 of the vehicle 403 can perform the state operation corresponding to the operation instruction.
[0155] It is understandable that the above-mentioned steps S906 and S907 are not performed in any order during actual execution, that is, there is no order between the two steps of the cloud server 402 storing the operation instruction and sending the operation instruction to the vehicle 403.
[0156] S908: The vehicle executes a state operation corresponding to the operation instruction.
[0157] The state operation is an operation corresponding to the operation instruction. For example, if the touch component in the operation instruction is a door and the action gesture is sliding outward, the vehicle controller 404 of the vehicle 403 will automatically open the door; if the touch component in the operation instruction is an engine and the action gesture is clicking, the vehicle controller 404 of the vehicle 403 will automatically start the engine.
[0158] S909: A completion instruction indicating that the vehicle assembly representative state operation is completed.
[0159] After the vehicle 403 performs the state operation corresponding to the operation instruction, the vehicle 403 will assemble a completion instruction representing the completion of the state operation.
[0160] S910: The vehicle sends the completion instruction to the cloud server.
[0161] After the vehicle 403 assembles the completion instruction representing the completion of the state operation, the completion instruction is sent to the cloud server 402 .
[0162] S911: The cloud server authenticates the data and stores the completion instruction.
[0163] The cloud server 402 may save the completion instruction obtained in step S909 to the local log service module 409 of the cloud server 402. The log service module 409 is used to record the user's operation log and the vehicle's feedback record, and the occurrence of accidents and errors can be reduced through the log.
[0164] It should be noted that the method in which the cloud server 402 authenticates data in step S910 is the same as the method in which the cloud server 402 authenticates data in step S505, which will not be repeated here.
[0165] S912: The cloud server sends the completion instruction to the digital car key.
[0166] After obtaining the completion instruction, the cloud server 402 sends the completion instruction to the digital car key 401 of the electronic folding device 100, so that the digital car key 401 knows that the vehicle 403 has completed the status operation.
[0167] It is understandable that the above-mentioned steps S911 and S912 are not in any particular order during actual execution, that is, there is no particular order between the two steps of the cloud server 402 storing the completion instruction and sending the completion instruction to the digital car key 401.
[0168] S913: The digital car key displays a status corresponding to the completion instruction.
[0169] At this time, the display interface of the digital car key 401 can display a state corresponding to the state operation of the vehicle 403. For example, if the trunk of the vehicle 403 is already opened at this time, the trunk of the virtual vehicle 403 on the display interface of the digital car key 401 also needs to be opened.
[0170] The present application discloses a vehicle control method, which visualizes the control of a vehicle by a digital car key through augmented reality technology, and enables more precise control of the vehicle through detailed user operations. The vehicle can also be displayed in the real-life camera position and the front and rear distance can be measured, thereby making the interaction design between the electronic device and the vehicle more automated, user-friendly, and precise, and also more conducive to the expansion and upgrade of the digital car key function.
[0171] Further, see Fig.14 , which is a schematic diagram of a solution for vehicle maintenance provided in an embodiment of the present application. As can be seen from the figure, through the vehicle model projected by the augmented reality in the electronic device 100, the user can fully control the overall structure, status, etc. of the vehicle 403. When various sensors and inductors are set for the vehicle 403, the user can view the current status of each component and part of the vehicle 403 through the electronic device 100, and can disassemble and repair the vehicle machine according to the position of the parts and the perspective structure diagram on the vehicle model under the guidance of big data analysis. In addition, with the assistance of autonomous driving technology, after the user projects the vehicle at a designated location, the vehicle 403 will automatically park at the designated location, providing convenience for the user.
[0172] In addition, the digital car key 401 based on augmented reality technology proposed in the present invention also supports ranging of the current scene. When the user needs to park at a certain location, the scene data can be collected through the mobile phone camera, and the position of obstacles in the scene can be calculated through a parallel ranging process of motion tracking, and a combined analysis is performed based on various parameters of the vehicle to draw a conclusion on whether parking is possible.
[0173] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed, each function or step performed by the electronic device 100 in the above method embodiment is implemented.
[0174] Another embodiment of the present application further provides a computer program product including instructions. When the computer program product is run on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods.
Claims
1. A vehicle control system, characterized in that: The vehicle control system includes: an electronic device, a cloud server and a vehicle; The electronic device is used to send an information synchronization request to the cloud server, wherein the information synchronization request includes model information and authentication information of a virtual vehicle corresponding to the vehicle, and the authentication information includes a digital key and / or identity authentication information; The cloud server is configured to send the information synchronization request to the vehicle if the authentication information indicates that the electronic device and the vehicle match; The vehicle is configured to send response information to the electronic device in response to the model information in the information synchronization request, wherein the response information is configured to indicate whether the information between the vehicle and the electronic device has been synchronized; The electronic device is used to obtain a scene picture if the response information indicates that the information between the vehicle and the electronic device has been synchronized, the scene picture including a real vehicle; obtain light sensing information of the real vehicle in the scene picture according to the brightness in the scene picture; perform light sensing positioning according to the light sensing information to determine the distance information of the real vehicle from a reference point in the scene picture; obtain the position information of the real vehicle in the scene picture according to the distance information; display a virtual vehicle with the scene picture as a background according to the position information; and send a first instruction to the cloud server in response to a user's operation on the virtual vehicle, the first instruction being an instruction to adjust the vehicle control data of the vehicle or an instruction to adjust the vehicle state of the vehicle; The cloud server is used to send the first instruction to the vehicle; The vehicle is configured to execute the first instruction to obtain an execution result; and send the execution result to the cloud server; The cloud server is used to send the execution result to the electronic device; The electronic device is used to display a virtual vehicle after executing the first instruction according to the execution result; The electronic device is also used to obtain the status of parts of the vehicle, where the parts include sensors and inductors; and display the status of the parts according to the position of the parts of the virtual vehicle.
2. A vehicle control method, characterized in that: Applied to electronic equipment, the method comprises: Sending an information synchronization request to a cloud server, wherein the information synchronization request includes model information and authentication information of a virtual vehicle corresponding to the vehicle, wherein the authentication information includes a digital key and / or identity authentication information; Acquiring response information, where the response information is used to indicate whether information between the vehicle and the electronic device has been synchronized; If the response information indicates that the information between the vehicle and the electronic device has been synchronized, acquiring a scene image, wherein the scene image includes a real vehicle; Acquiring light information of the real vehicle in the scene picture according to the brightness in the scene picture; Performing light sensing positioning according to the light sensing information to determine the distance information of the real vehicle from the reference point in the scene image; According to the distance information, obtaining the position information of the real vehicle in the scene picture; according to the position information, displaying the virtual vehicle with the scene picture as the background; In response to the user's operation on the virtual vehicle, a first instruction is sent to the cloud server, so that after sending the first instruction to the vehicle, the cloud server receives an execution result sent by the vehicle in response to the first instruction, and sends the execution result to the electronic device, wherein the first instruction is an instruction to adjust the vehicle control data of the vehicle, or an instruction to adjust the vehicle state of the vehicle; According to the execution result, displaying a virtual vehicle after executing the first instruction; Acquiring the status of parts of the vehicle, wherein the parts include sensors and inductors; The component status is displayed according to the component position of the virtual vehicle.
3. The method according to claim 2, characterized in that The virtual vehicle is obtained in the following manner: A virtual vehicle is obtained according to the information of the real vehicle, wherein the information of the real vehicle includes one or more of the brand and model, engine number, and unique identification code of the real vehicle.
4. The method according to claim 2, characterized in that: The virtual vehicle is obtained in the following manner: Based on the scene image, obtaining length sample data of the real vehicle; A virtual vehicle is acquired based on the length sample data.
5. The method according to claim 2, characterized in that: Based on the position information of the real vehicle in the scene picture, displaying a virtual vehicle with the scene picture as a background includes: Obtaining position information of the real vehicle in the scene image; Determine whether the number of the location information is greater than or equal to a number threshold; If so, based on the position information of the real vehicle in the scene picture, a virtual vehicle with the scene picture as the background is displayed.
6. An electronic device, characterized in that: including a processor and a memory; The memory is used to store computer-executable instructions; The processor is configured to execute the computer-executable instructions stored in the memory, so that the processor executes the method according to any one of claims 2 to 5.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or instruction, and when the computer program or instruction is executed, the method according to any one of claims 2 to 5 is implemented.
