Vehicle-mounted payment method and device, electronic equipment, storage medium and program product
Through the cooperation between the on-board system and the video acquisition equipment, the QR code is automatically obtained from the surrounding environment of the vehicle and the payment is completed, which solves the problem of complex and time-consuming payment operations in the existing technology and realizes a more efficient payment process.
Patent Information
- Application Number
- CN202411213488.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-06
AI Technical Summary
In the existing in-vehicle payment methods, when paying through QR code, the user's handheld device is required to scan close to the front, which is complex and time-consuming, which affects the driving experience and payment efficiency.
The vehicle-mounted system is used to communicate with the video acquisition device, obtain QR codes from the surrounding environment of the vehicle through a rotatable camera or multiple cameras, and automatically perform payment operations to simplify the payment process.
No need for user handheld devices to participate in scanning codes, reducing operational difficulty, improving payment efficiency, simplifying payment links, and improving user driving experience.
Smart Images

Figure CN119090497A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle-mounted applications, and in particular to a vehicle-mounted payment method, device, electronic equipment, storage medium and program product. Background Art
[0002] With the popularity of smart terminals such as mobile phones, QR codes have been widely used. Especially in the field of payment, payment through QR code scanning has replaced many traditional payment methods due to its convenience.
[0003] Currently, many parking lots provide a QR code payment function. Users can complete parking fee payment by scanning the QR code set by the parking lot, which simplifies the payment process to a certain extent. However, when paying by QR code, users still need to hold their mobile phones or other devices close to scan in order to recognize the payment-related QR code, which is complicated and time-consuming. Summary of the invention
[0004] One of the purposes of the present invention is to provide a vehicle-mounted payment method, device, electronic device, storage medium and program product to solve the problem that payment operations are complicated and time-consuming.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0006] An in-vehicle payment method is applied to an in-vehicle system of a vehicle, wherein the in-vehicle system communicates with a video acquisition device installed in the vehicle, and the in-vehicle payment method comprises:
[0007] In response to obtaining a code scanning instruction, controlling the video acquisition device to obtain a QR code from the surrounding environment of the vehicle;
[0008] The payment operation is performed according to the QR code.
[0009] Furthermore, the video acquisition device is a rotatable camera, and controlling the video acquisition device to acquire a QR code from the surrounding environment of the vehicle includes:
[0010] Controlling the shooting angle of the camera to align with the first angle;
[0011] Controlling the camera to start scanning and rotate in a scanning state to move the shooting angle from the first angle to a second angle;
[0012] Determine whether the camera scans a QR code during the period when the shooting angle of view moves from the first angle to the second angle, and transmit the QR code to the vehicle-mounted system if the QR code is scanned.
[0013] Furthermore, it also includes:
[0014] If the camera does not scan the QR code during the period when the shooting angle of view moves from the first angle to the second angle, continue to control the camera to rotate so as to move the shooting angle of view of the camera from the second angle to a third angle;
[0015] Determine whether the camera scans a QR code during the period when the shooting angle of view moves from the second angle to the third angle, and transmit the QR code to the vehicle-mounted system if the QR code is scanned.
[0016] Furthermore, it also includes:
[0017] If the camera needs to pass through the first angle when the shooting angle moves from the second angle to the third angle, the camera is controlled to close scanning and increase the rotation speed before the shooting angle passes through the first angle.
[0018] Furthermore, before controlling the shooting angle of the camera to align with the first angle, the method further includes:
[0019] Outputting first prompt information, where the first prompt information is used to instruct a user to input an angle for controlling the rotation of the camera;
[0020] Get the first angle and second angle input by the user.
[0021] Furthermore, the video acquisition device includes a plurality of cameras, and the shooting angles of different cameras are aimed at different directions of the vehicle. The step of controlling the video acquisition device to acquire a QR code from the surrounding environment of the vehicle includes:
[0022] Outputting second prompt information, where the second prompt information is used to instruct the user to select a target camera from the multiple cameras;
[0023] Controlling the target camera to shoot to obtain a target image;
[0024] Identify whether the target image contains a QR code, and if so, transmit the QR code in the target image to the vehicle-mounted system.
[0025] Further, the multiple cameras include a first camera and / or a second camera, the shooting angle of the first camera is aimed at the left front of the vehicle, and the shooting angle of the second camera is aimed at the right front of the vehicle.
[0026] Further, controlling the video acquisition device to obtain a QR code from the surrounding environment of the vehicle includes:
[0027] In response to detecting that the vehicle is in a driving state, obtaining a motion trajectory of the vehicle in a next time period, wherein the motion trajectory of the next time period is determined based on the motion trajectory of the vehicle in a previous time period and / or environmental data collected by a preset sensor;
[0028] Calculating the reverse compensation parameter according to the motion trajectory of the next period;
[0029] The preset scanning algorithm is optimized according to the reverse compensation parameters, and the video acquisition device is controlled to acquire a QR code from the surrounding environment of the vehicle through the optimized scanning algorithm.
[0030] Further, performing a payment operation according to the QR code includes:
[0031] Displaying the QR code scanned by the video acquisition device;
[0032] In response to a selection operation on the QR code, generating a payment request according to the selected QR code;
[0033] The payment request is sent to the payment server, and the payment result returned by the payment server is obtained.
[0034] An in-vehicle payment device is applied to an in-vehicle system of a vehicle, wherein the in-vehicle system communicates with a video acquisition device installed in the vehicle, and the in-vehicle payment device comprises:
[0035] An acquisition module, configured to control the video acquisition device to acquire a QR code from the surrounding environment of the vehicle in response to acquiring a code scanning instruction;
[0036] An execution module is used to execute a payment operation according to the QR code.
[0037] An electronic device comprises: a processor, and a memory communicatively connected to the processor;
[0038] The memory stores computer-executable instructions;
[0039] The processor executes the computer-executable instructions stored in the memory to implement the in-vehicle payment method as described in any one of the above items.
[0040] A computer-readable storage medium comprises: the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to implement the vehicle-mounted payment method as described in any one of the above when executed by a processor.
[0041] A computer program product comprises a computer program, which, when executed by a processor, implements the in-vehicle payment method as described in any one of the above.
[0042] Beneficial effects of the present invention:
[0043] (1) The present invention uses a video acquisition device installed on the vehicle to scan the QR codes around the vehicle, without the need for the user to use a handheld device to scan the code, which can reduce the difficulty of scanning the code and improve the user's driving experience;
[0044] (2) The present invention can realize the entire payment process through the vehicle-mounted system, simplify the payment link, and improve payment efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of an application scenario provided for an exemplary embodiment of the present invention;
[0046] Figure 2 A schematic flow chart of an in-vehicle payment method provided for an exemplary embodiment of the present invention;
[0047] Figure 3 A schematic diagram of a process for obtaining a QR code provided by an exemplary embodiment of the present invention;
[0048] Figure 4 A schematic diagram of camera rotation angle provided for an exemplary embodiment of the present invention;
[0049] Figure 5 A schematic diagram of a music playing interface provided by an exemplary embodiment of the present invention;
[0050] Figure 6 A schematic diagram of another process of obtaining a QR code provided by an exemplary embodiment of the present invention;
[0051] Figure 7 A schematic diagram of the structure of a vehicle-mounted payment device provided for an exemplary embodiment of the present invention;
[0052] Figure 8 A schematic structural diagram of an electronic device provided by an exemplary embodiment of the present invention.
[0053] Through the above drawings, clear embodiments of the present invention have been shown, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0054] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0055] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0056] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0057] The terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, product or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, product or device. In the absence of further restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. For example, if the words first, second, etc. are used to indicate names, they do not indicate any particular order.
[0058] Figure 1 A schematic diagram of an application scenario provided by an exemplary embodiment of the present invention. Figure 1 As shown in the figure, when a vehicle needs to pay parking fees after leaving the parking lot, it needs to scan the QR code provided by the parking lot to enter the payment page to complete the payment of parking fees. Usually, users need to hold a mobile phone or other terminal device and manually aim at the QR code to scan, which not only affects payment efficiency, but also easily causes users to be distracted while driving, posing a safety hazard.
[0059] In view of the above application scenarios, the present invention provides an in-vehicle payment method, device, electronic device, storage medium and program product. Through the in-vehicle payment method of the present invention, the code scanning and payment process can be completed based on the in-vehicle system without the user's handheld device, thereby simplifying the operation process and improving the overall payment efficiency.
[0060] The application scenarios mentioned above are only some examples. Those skilled in the art can expand the application to specific business scenarios, and the embodiments of this application do not impose specific limitations on this. Figure 1 For application scenarios, refer to Figures 2 to 6 The in-vehicle payment method according to an exemplary embodiment of the present invention is described.
[0061] Figure 2 FIG. 1 is a flow chart of an in-vehicle payment method provided by an exemplary embodiment of the present invention. Figure 2 As shown, the method may include:
[0062] Step S201, in response to obtaining a code scanning instruction, controlling a video acquisition device to obtain a QR code from the surrounding environment of the vehicle.
[0063] The in-vehicle payment method in the embodiment of the present invention can be applied to an in-vehicle system of a vehicle, and the in-vehicle system communicates with a video acquisition device installed in the vehicle.
[0064] The vehicle-mounted system may be a central control system of the vehicle, and the video acquisition device may be an electronic device such as a wide-angle camera or a camera.
[0065] Specifically, the vehicle-mounted system can be pre-installed with an application for controlling the video acquisition device. The user can send a code scanning instruction to the vehicle-mounted system based on this application. After receiving the code scanning instruction, the vehicle-mounted system can control the video acquisition device to scan the vehicle's surrounding environment to determine whether the QR code can be scanned.
[0066] In some possible implementations, the user may also input a code scanning instruction to the vehicle-mounted system in the form of voice.
[0067] In some possible implementations, the video acquisition device can be installed on the top or side of the vehicle, etc., where the QR code can be easily scanned.
[0068] Step S202, executing a payment operation according to the QR code.
[0069] Specifically, after the video acquisition device scans the QR code, it can transmit the QR code to the vehicle system, which can recognize the QR code and generate a corresponding payment request, and then send the payment request to the payment server through the network. After receiving the corresponding payment request, the payment server will process the payment and return the payment result to the vehicle system.
[0070] In some possible implementations, after the vehicle-mounted system obtains the QR code, it can transmit the QR code to a terminal device such as a mobile phone used by the user through a communication method such as Bluetooth, so that the user can complete the payment through the mobile phone. For example, the video acquisition device can be a camera, which, under the control of the vehicle-mounted system, captures an image containing the QR code and transmits it to the vehicle-mounted system. The vehicle-mounted system can transmit the image to the user's mobile phone through Bluetooth, and the user can complete the payment by recognizing the QR code through the mobile phone.
[0071] In the above embodiment, after the vehicle-mounted system obtains the code scanning instruction, it can control the video acquisition device installed in the vehicle to obtain the QR code from the vehicle's surrounding environment, and then complete the payment operation according to the QR code. In this way, the vehicle-mounted system can automatically scan the QR code and complete the payment according to the code scanning instruction without the user's handheld device being involved, thereby simplifying the operation process and improving the overall payment efficiency.
[0072] In one embodiment, controlling a video acquisition device to acquire a QR code from the surrounding environment of a vehicle includes:
[0073] S2011, in response to detecting that the vehicle is in a driving state, obtaining a movement trajectory of the vehicle in a next time period.
[0074] The motion trajectory of the next time period is determined based on the motion trajectory of the vehicle in the previous time period and / or the environmental data collected by the preset sensor. The values of the previous time period and the next time period can be arbitrary. For example, the previous time period can be from 5 seconds ago to the current moment, and the next time period can be from the current moment to 5 seconds later. The preset sensor may include an imaging radar installed on the vehicle. The environmental data may include the road conditions around the vehicle, such as the slope of the road in front of the vehicle.
[0075] Specifically, after receiving the code scanning instruction, the vehicle-mounted system can detect whether the vehicle is in a driving state. If it is in a driving state, the movement trajectory of the vehicle in the previous period can be obtained. The road conditions around the vehicle can also be obtained through the imaging radar on the vehicle. Based on at least one of the movement trajectory and road conditions in the previous period, the movement trajectory of the vehicle in the next period can be predicted.
[0076] For example, the vehicle's speed in the last 5 seconds has been maintained at 5 km / h, and based on the traveled trajectory, image radar and other sensor data collected, it can be determined that the vehicle is going uphill with a slope of 30 degrees. The vehicle's movement trajectory in the next 5 seconds can be estimated based on these data.
[0077] For example, if the sensor detects that the vehicle has not changed in the vertical direction within the last 10 seconds, but the driving speed is increasing, it can be determined that the vehicle is driving on a smooth road, and the vehicle's movement trajectory in the next 10 seconds can be predicted based on the speed change within 10 seconds.
[0078] S2012, calculating reverse compensation parameters according to the motion trajectory of the next period.
[0079] Specifically, the compensation parameters of the video acquisition device can be calculated inversely according to the motion trajectory of the next period, so that the video acquisition device can scan the QR code based on the compensation parameters to reduce lens shake and improve scanning clarity. For example, if the motion trajectory of the vehicle in the next period is uphill, and the video acquisition device is a camera that can rotate in the vertical direction, the reverse compensation parameters can make the video acquisition device rotate downward to keep the camera lens stable and reduce the interference to the scanning caused by the movement of the vehicle and the movement of the camera.
[0080] S2013, optimizing a preset scanning algorithm according to the reverse compensation parameters, and controlling the video acquisition device to acquire a QR code from the surrounding environment of the vehicle through the optimized scanning algorithm.
[0081] Specifically, the reverse compensation parameters calculated according to the motion trajectory of the next period can be used to update the scanning algorithm of the video acquisition device, so that the interference can be moved by adjusting the internal and external parameters of the video acquisition device.
[0082] In the above embodiment, if the vehicle is in a moving state when scanning and acquiring a QR code, the movement trajectory of the vehicle in the next period of time can be predicted to calculate the reverse compensation parameters of the video acquisition device. The scanning algorithm of the video acquisition device is optimized by using the compensation parameters, which can reduce the interference of vehicle movement on the scanning process, thereby enhancing the clarity of the scan and improving the success rate of QR code scanning.
[0083] In one embodiment, the video acquisition device is a rotatable camera, such as Figure 3 As shown, controlling the video acquisition device to obtain a QR code from the surrounding environment of the vehicle includes:
[0084] Step S301, controlling the shooting angle of the camera to align with a first angle.
[0085] The first angle may be a preset initial angle or an angle input by a user obtained through human-computer interaction.
[0086] Specifically, the camera can be set on the top of the vehicle, and the vehicle-mounted system can obtain the internal and external parameters of the camera and determine the shooting angle of the camera in a preset coordinate system. If the shooting angle is consistent with the first angle, there is no need to rotate the camera. If the shooting angle is inconsistent with the first angle, the shooting angle is aligned with the first angle by rotating the camera.
[0087] Step S302, controlling the camera to start scanning and rotate in the scanning state to move the shooting angle from the first angle to the second angle.
[0088] The second angle may be a preset initial angle or an angle input by a user obtained through human-computer interaction.
[0089] Specifically, the vehicle-mounted system can send a control instruction to the camera to control the camera to start a scanning state, and the camera can maintain the scanning state and rotate the optical axis from the first angle to the second angle.
[0090] Step S303, determining whether the camera scans a QR code when the shooting angle moves from the first angle to the second angle, and transmitting the QR code to the vehicle-mounted system if the QR code is scanned.
[0091] Specifically, if the camera scans a QR code during the rotation, at least one frame of image containing the QR code can be sent to the vehicle-mounted system. If the camera scans multiple QR codes during the period when the shooting angle moves from the first angle to the second angle, the scanned QR code can be transmitted to the vehicle-mounted system after each QR code is scanned, or all scanned QR codes can be transmitted to the vehicle-mounted system together after the shooting angle rotates to the second angle to complete the scanning.
[0092] In some possible implementations, before controlling the shooting angle of the camera to align with the first angle, the method further includes:
[0093] Output a first prompt message; obtain a first angle and a second angle input by a user.
[0094] The first prompt information is used to instruct the user to input an angle to control the rotation of the camera.
[0095] For example, the vehicle system can provide an input interface to the user through the vehicle's central control display screen, and prompt the user to enter the angle for controlling the rotation of the camera. The user can enter the desired first angle and second angle, or choose to use the default initial angle as the first angle and second angle.
[0096] In one embodiment, determining whether the camera scans a QR code during the period when the shooting angle of view moves from a first angle to a second angle further includes:
[0097] Step S304, if the camera does not scan the QR code during the period when the shooting angle moves from the first angle to the second angle, continue to control the camera to rotate to move the shooting angle of the camera from the second angle to the third angle.
[0098] Step S305, determining whether the camera scans a QR code during the period when the shooting angle moves from the second angle to the third angle, and transmitting the QR code to the vehicle-mounted system if the QR code is scanned.
[0099] The third angle may be a preset initial angle or an angle input by a user obtained through human-computer interaction.
[0100] The first angle and the second angle in the embodiment of the present invention are used to control the angle of rotation of the camera, and can be expressed based on a preset angle coordinate system. For example, the left direction of the vehicle can be regarded as 0 degrees, and a coordinate system can be established in a clockwise direction from the left to the front and then to the right, with the front direction being 90 degrees and the right direction being 180 degrees.
[0101] For example, Figure 4 As shown, for the scenario where the QR code is often set on the left front of the vehicle, the first angle can be set to 60 degrees, that is, the angle between the direction represented by the first angle and the due left direction in the horizontal plane is 60 degrees, and the second angle is set to 10 degrees. In this way, when the vehicle-mounted system controls the camera to scan from the first angle to the second angle, it can first scan the area where the QR code is more likely to appear.
[0102] It should be noted that the values of the first angle and the second angle are only possible examples according to the present invention, and the examples do not limit the value range of the first angle and the second angle, nor do they represent the relative relationship between the first angle and the second angle. For example, in other examples, the first angle may be 0 degrees, and the second angle may be 60 degrees.
[0103] In some possible implementations, after the camera completes a scanning task each time, the shooting angle can be restored to the front by default.
[0104] In some possible implementations, controlling the video acquisition device to acquire a QR code from the surrounding environment of the vehicle further includes:
[0105] If the camera needs to pass through the first angle when the shooting angle of view moves from the second angle to the third angle, the camera is controlled to close scanning and increase the rotation speed before the shooting angle of view passes through the first angle.
[0106] For example, Figure 4 As shown, if the camera's shooting angle of view does not scan the QR code during the period when it moves from the first angle to the second angle, the camera's shooting angle of view can continue to move from the second angle to the third angle. In the process of moving from the second angle to the third angle, the shooting angle of view may pass through the area between the second angle and the first angle again. In view of this situation, the scanning can be turned off and the rotation speed of the camera can be increased before the shooting angle of view passes through the first angle, thereby avoiding repeated scanning of the area between the second angle and the first angle, speeding up the scanning speed and improving the scanning efficiency.
[0107] In one embodiment, Figure 5 As shown, controlling the video acquisition device to obtain a QR code from the surrounding environment of the vehicle includes:
[0108] Step S501: output second prompt information.
[0109] The second prompt information is used to instruct the user to select a target camera from multiple cameras.
[0110] In the embodiment of the present invention, the video acquisition device may include multiple cameras, and the shooting angles of different cameras are aimed at different directions of the vehicle.
[0111] Specifically, the vehicle-mounted system can output the second prompt information to the user through voice, text or image, so that the user can select one of multiple preset cameras as the target camera. These cameras can be installed on the top or side of the vehicle, and each camera can be aimed in one direction.
[0112] In some possible implementations, the multiple cameras may include a first camera and / or a second camera, the shooting angle of the first camera is aimed at the left front of the vehicle, and the shooting angle of the second camera is aimed at the right front of the vehicle.
[0113] Exemplarily, the first camera and the second camera can be wide-angle cameras, and the first camera and the second camera can be installed on the top of the vehicle. The optical axis of the first camera can be oriented at a 45-degree angle to the left and a 45-degree angle to the front, and the optical axis of the second camera can be oriented at a 45-degree angle to the right and a 45-degree angle to the front.
[0114] Step S502, controlling the target camera to shoot to obtain a target image.
[0115] Step S503, identifying whether the target image contains a QR code, and if so, transmitting the QR code in the target image to the vehicle-mounted system.
[0116] Specifically, after the user selects the target camera, the vehicle-mounted system can control the target camera to take pictures. If a QR code is recognized in the captured image, the QR code can be transmitted to the vehicle-mounted system for payment operations.
[0117] In the above embodiment, by installing multiple cameras on the vehicle, the vehicle's surroundings can be included in the camera's shooting range, and the vehicle-mounted system can control the target camera to shoot according to the user's selection to obtain an image containing a QR code, so that the payment operation can be performed according to the QR code. This embodiment does not require the use of a rotatable camera, nor does it require the design of an algorithm for scanning a QR code with a camera. Scanning a QR code through a camera can reduce the complexity of scanning the code.
[0118] In one embodiment, Figure 6 As shown, the payment operation is performed according to the QR code, including:
[0119] Step S601, displaying the QR code scanned by the video acquisition device.
[0120] Specifically, after the vehicle-mounted system obtains the QR code transmitted by the video acquisition device, it can display the QR code to the user through the vehicle-mounted display screen. If there are multiple QR codes, the QR codes can be displayed on the display screen in sequence according to the scanning order, and after the scanning task is completed, all QR codes can be displayed on the same interface for the user to select.
[0121] Step S602, in response to a selection operation on a QR code, generating a payment request according to the selected QR code.
[0122] Specifically, the user can select the QR code displayed by the vehicle system by clicking on the QR code on the display screen or through voice input and other operations. The vehicle system can recognize the selected QR code and call an application with payment function, and generate a payment request through the application.
[0123] Step S603, sending the payment request to the payment server, and obtaining the payment result returned by the payment server.
[0124] Specifically, the generated payment request can be sent to the payment server and the returned payment result can be obtained. If the payment result is a successful payment, the payment operation can be completed. If the payment result is a failed payment, the scanning command can be re-issued to the vehicle system to continue scanning the QR code.
[0125] In some possible implementations, if the video capture device scans a QR code while acquiring the QR code and the user selects the QR code, the scanning of the video capture device can be interrupted, and the interrupted scanning process can be continued if the payment result is a payment failure.
[0126] Figure 7 The following is a schematic diagram of the structure of a vehicle-mounted payment device provided by an exemplary embodiment of the present invention. Figure 7 As shown, the vehicle-mounted payment device 700 may include:
[0127] The acquisition module 701 is used to control the video acquisition device to acquire a QR code from the surrounding environment of the vehicle in response to obtaining a code scanning instruction.
[0128] The execution module 702 is used to execute the payment operation according to the QR code.
[0129] The in-vehicle payment device 700 in the embodiment of the present invention can be applied to an in-vehicle system of a vehicle, and the in-vehicle system communicates with a video acquisition device installed in the vehicle.
[0130] In one embodiment, the video acquisition device is a rotatable camera, and the acquisition module 701 may include:
[0131] The first alignment unit is used to control the shooting angle of view of the camera to be aligned with a first angle.
[0132] The first rotating unit is used to control the camera to start scanning and rotate in the scanning state to move the shooting angle from the first angle to the second angle.
[0133] The first determination unit is used to determine whether the camera scans a QR code during the period when the shooting angle of view moves from the first angle to the second angle, and transmit the QR code to the vehicle-mounted system if the QR code is scanned.
[0134] In one embodiment, the acquisition module 701 may further include:
[0135] The second rotation unit is used to continue controlling the camera to rotate if the camera fails to scan the QR code during the period when the shooting angle of the camera moves from the first angle to the second angle, so as to move the shooting angle of the camera from the second angle to a third angle.
[0136] The second determination unit is used to determine whether the camera scans a QR code during the period when the shooting angle moves from the second angle to the third angle, and transmit the QR code to the vehicle-mounted system if the QR code is scanned.
[0137] In one embodiment, the second determination unit is further used to: if the camera needs to pass through the first angle during the period when the shooting angle moves from the second angle to the third angle, control the camera to turn off scanning and increase the rotation speed before the shooting angle passes through the first angle.
[0138] In one embodiment, the acquisition module 701 is further used to: output first prompt information, where the first prompt information is used to indicate the angle input by the user to control the rotation of the camera; and acquire the first angle and the second angle input by the user.
[0139] In one embodiment, the video acquisition device includes multiple cameras, and the shooting angles of different cameras are aimed at different directions of the vehicle. The acquisition module 701 may include:
[0140] The prompt unit is used to output second prompt information, where the second prompt information is used to instruct the user to select a target camera from the multiple cameras.
[0141] A shooting control unit is used to control the target camera to shoot to obtain a target image.
[0142] The identification unit is used to identify whether the target image contains a two-dimensional code, and if so, transmit the two-dimensional code in the target image to the vehicle-mounted system.
[0143] In one embodiment, the plurality of cameras include a first camera and / or a second camera, the shooting angle of the first camera is aimed at the left front of the vehicle, and the shooting angle of the second camera is aimed at the right front of the vehicle.
[0144] In one embodiment, the acquisition module 701 is further used to: in response to detecting that the vehicle is in a driving state, acquire a motion trajectory of the vehicle in a next time period, where the motion trajectory of the next time period is determined based on the motion trajectory of the vehicle in a previous time period and / or environmental data collected by a preset sensor;
[0145] Calculating the reverse compensation parameter according to the motion trajectory of the next period;
[0146] The preset scanning algorithm is optimized according to the reverse compensation parameters, and the video acquisition device is controlled to acquire a QR code from the surrounding environment of the vehicle through the optimized scanning algorithm.
[0147] In one embodiment, the execution module 702 may include:
[0148] The display unit is used to display the QR code scanned by the video acquisition device.
[0149] The selection unit is used to generate a payment request according to the selected QR code in response to a selection operation on the QR code.
[0150] The payment unit is used to send the payment request to the payment end server and obtain the payment result returned by the payment end server.
[0151] The vehicle-mounted payment device provided in this embodiment is used to execute the technical solution in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0152] It should be understood that the above device embodiments are only illustrative, and the device of the present invention can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.
[0153] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present invention may be integrated into one unit / module, or each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.
[0154] Figure 8FIG. 1 is a schematic diagram of a structure of an electronic device provided by an exemplary embodiment of the present invention. Figure 8 As shown, the electronic device 80 includes:
[0155] Processor 81, memory 82, and communication interface 83;
[0156] The memory 82 is used to store executable instructions of the processor 81; the executable instructions may be computer-executable instructions;
[0157] The processor 81 is configured to execute the technical solution in any of the aforementioned method embodiments by executing the executable instructions.
[0158] Optionally, the memory 82 can be independent or integrated with the processor 81.
[0159] Optionally, when the memory 82 is a device independent of the processor 81, the electronic device 80 may further include:
[0160] The bus 84 , the memory 82 and the communication interface 83 are connected to the processor 81 via the bus 84 and communicate with each other. The communication interface 83 is used to communicate with other devices.
[0161] Optionally, the communication interface 83 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.
[0162] The bus 84 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0163] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0164] The electronic device is used to execute the technical solution in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.
[0165] An embodiment of the present invention further provides a readable storage medium, which may be a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the technical solution provided by any of the aforementioned method embodiments is implemented.
[0166] An embodiment of the present invention further provides a computer program product, including a computer program, which is used to implement the technical solution provided by any of the aforementioned method embodiments when executed by a processor.
[0167] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0168] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0169] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention is indicated by the following claims.
[0170] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.
Claims
1. A vehicle-mounted payment method, It is characterized in that An in-vehicle system applied to a vehicle, the in-vehicle system communicating with a video acquisition device installed in the vehicle, the in-vehicle payment method comprising: In response to obtaining a code scanning instruction, controlling the video acquisition device to obtain a QR code from the surrounding environment of the vehicle; The payment operation is performed according to the QR code.
2. The vehicle-mounted payment method according to claim 1, It is characterized in that The video acquisition device is a rotatable camera, and controlling the video acquisition device to acquire a QR code from the surrounding environment of the vehicle includes: Controlling the shooting angle of the camera to align with the first angle; Controlling the camera to start scanning and rotate in a scanning state to move the shooting angle from the first angle to a second angle; Determine whether the camera scans a QR code during the period when the shooting angle of view moves from the first angle to the second angle, and transmit the QR code to the vehicle-mounted system if the QR code is scanned.
3. The vehicle-mounted payment method according to claim 2, It is characterized in that Also includes: If the camera does not scan the QR code during the period when the shooting angle of view moves from the first angle to the second angle, continue to control the camera to rotate so as to move the shooting angle of view of the camera from the second angle to a third angle; Determine whether the camera scans a QR code during the period when the shooting angle of view moves from the second angle to the third angle, and transmit the QR code to the vehicle-mounted system if the QR code is scanned.
4. The vehicle-mounted payment method according to claim 3, It is characterized in that Also includes: If the camera needs to pass through the first angle when the shooting angle moves from the second angle to the third angle, the camera is controlled to close scanning and increase the rotation speed before the shooting angle passes through the first angle.
5. The vehicle-mounted payment method according to any one of claims 1 to 4, It is characterized in that Before controlling the shooting angle of view of the camera to align with the first angle, the method further includes: Outputting first prompt information, where the first prompt information is used to instruct a user to input an angle for controlling the rotation of the camera; Get the first angle and second angle input by the user.
6. The in-vehicle payment method according to claim 1, It is characterized in that The video acquisition device includes a plurality of cameras, and shooting angles of different cameras are aimed at different directions of the vehicle. The controlling the video acquisition device to acquire a QR code from the surrounding environment of the vehicle includes: Outputting second prompt information, where the second prompt information is used to instruct the user to select a target camera from the multiple cameras; Controlling the target camera to shoot to obtain a target image; Identify whether the target image contains a QR code, and if so, transmit the QR code in the target image to the vehicle-mounted system.
7. The in-vehicle payment method according to claim 6, It is characterized in that The multiple cameras include a first camera and / or a second camera. The shooting angle of the first camera is aimed at the left front of the vehicle, and the shooting angle of the second camera is aimed at the right front of the vehicle.
8. The vehicle-mounted payment method according to any one of claims 1 to 4, It is characterized in that The controlling the video acquisition device to acquire a QR code from the surrounding environment of the vehicle includes: In response to detecting that the vehicle is in a driving state, obtaining a motion trajectory of the vehicle in a next time period, wherein the motion trajectory of the next time period is determined based on the motion trajectory of the vehicle in a previous time period and / or environmental data collected by a preset sensor; Calculating the reverse compensation parameter according to the motion trajectory of the next period; The preset scanning algorithm is optimized according to the reverse compensation parameters, and the video acquisition device is controlled to acquire a two-dimensional code from the surrounding environment of the vehicle through the optimized scanning algorithm.
9. The vehicle-mounted payment method according to any one of claims 1 to 4, It is characterized in that The performing a payment operation according to the QR code comprises: Displaying the QR code scanned by the video acquisition device; In response to a selection operation on the QR code, generating a payment request according to the selected QR code; The payment request is sent to the payment server, and the payment result returned by the payment server is obtained.
10. A vehicle-mounted payment device, It is characterized in that An in-vehicle system applied to a vehicle, the in-vehicle system communicating with a video acquisition device installed in the vehicle, the in-vehicle payment device comprising: An acquisition module, configured to control the video acquisition device to acquire a QR code from the surrounding environment of the vehicle in response to acquiring a code scanning instruction; An execution module is used to execute a payment operation according to the QR code.
11. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 9 when executed by a processor.
13. A computer program product, It is characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 9 when being executed by a processor.
