Vehicle control method, device and equipment and storage medium

The location of the shared vehicle is identified through image recognition technology, which solves the problem of failure to return the vehicle caused by GPS positioning drift, and improves the success rate and user experience of returning the vehicle.

CN119251467APending Publication Date: 2025-01-03BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411296422.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

The existing shared vehicles' return system relies heavily on GPS positioning, resulting in positioning drift problems, resulting in high return failure rate, affecting user experience and return efficiency.

Method used

By acquiring the target image corresponding to the return interface, identifying the target vehicle and the location area of ​​the designated return location, determining whether the vehicle parked in accordance with the image recognition technology, and providing a response to determine the result of the return request.

Benefits of technology

It effectively reduces the failure of returning the car due to GPS positioning drift, improves the success rate and user experience of returning the car, and ensures that the vehicle is parked in the correct position.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119251467A_ABST
    Figure CN119251467A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a vehicle control method and device, equipment and a storage medium. The method comprises the steps of obtaining a target image corresponding to a vehicle returning interface of an application program in response to a vehicle returning request for a target vehicle; and determining a first position area corresponding to the target vehicle and a second position area corresponding to the specified vehicle returning place from the target image. And based on the first position area and the second position area, determining whether parking of the target vehicle meets a parking requirement. And providing a response to the vehicle return request based on a determination result of whether the target vehicle meets the parking requirement. Therefore, the bicycle returning success rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and storage media for vehicle control. Background Art

[0002] Shared vehicles have become an important mode of transportation. Taking two-wheeled vehicles such as shared vehicles as an example, users can use their own portable devices (such as mobile phones) to conveniently control the vehicle and complete various operations such as unlocking, locking, paying, and account management. When users finish using shared bicycles, they need to return the shared bicycles. If the return and parking of shared bicycles are not managed and monitored, it will have an adverse impact on the civilized construction of the city. In view of this, it is necessary to provide a solution for managing the parking of shared vehicles to achieve the standardized return of shared vehicles. Summary of the invention

[0003] In a first aspect of the present disclosure, a method for controlling a vehicle is provided. The method may include: in response to a return request for a target vehicle, obtaining a target image corresponding to a return interface of an application. Determining a first location area corresponding to the target vehicle and a second location area corresponding to a designated return location from the target image. Determining whether the parking of the target vehicle meets parking requirements based on the first location area and the second location area. Providing a response to the return request based on a determination result of whether the target vehicle meets the parking requirements.

[0004] In a second aspect of the present disclosure, a vehicle control device is provided. The device may include: a target image acquisition module, configured to acquire a target image corresponding to a vehicle return interface of an application in response to a vehicle return request for a target vehicle. A position area determination module, configured to determine a first position area corresponding to the target vehicle and a second position area corresponding to a designated vehicle return location from the target image. A parking requirement detection module, configured to determine whether the parking of the target vehicle meets the parking requirements based on the first position area and the second position area. A vehicle return request response module, configured to provide a response to the vehicle return request based on a determination result of whether the target vehicle meets the parking requirements.

[0005] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the electronic device executes the method of the first aspect.

[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the medium, and when the computer program is executed by a processor, the method of the first aspect is implemented.

[0007] In a fifth aspect of the present disclosure, a computer program product is provided, which includes computer executable instructions, and when the computer executable instructions are executed by a processor, the method of the first aspect is implemented.

[0008] It should be understood that the content described in this section is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0010] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;

[0011] Figure 2 A flow chart showing a method of vehicle control according to some embodiments of the present disclosure;

[0012] Figure 3 An example diagram of a car return interface according to some embodiments of the present disclosure is shown;

[0013] Figure 4 An example diagram showing vehicle return guidance information according to some embodiments of the present disclosure is shown;

[0014] Figure 5 An example diagram of a successful car return interface according to some embodiments of the present disclosure is shown;

[0015] Figure 6 A schematic structural block diagram of a vehicle control device according to some embodiments of the present disclosure is shown; and

[0016] Figure 7 A block diagram of an electronic device in which one or more embodiments of the present disclosure may be implemented is shown. DETAILED DESCRIPTION

[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.

[0019] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.

[0020] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0021] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.

[0022] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.

[0023] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.

[0024] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0025] Figure 1 A schematic diagram of an environment 100 in which embodiments of the present disclosure can be implemented is shown. The environment 100 includes a target vehicle 130, a control device 110 (eg, a cloud platform), a user 160, and a user device 120 used by the user 160.

[0026] In some embodiments, an application may be installed and run on the user device 120, and an interface may be presented for operation by the user 160. For example, map information may be presented in the interface for operation by the user 160. For example, the map information may indicate the location of the vehicle return area and the target vehicle 130, and so on.

[0027] The user device 120 may be a terminal device on which a shared vehicle service application is installed and executed, including but not limited to a personal computer, a smart phone, a smart watch, smart glasses, a smart helmet, a laptop, a tablet computer, a personal digital assistant, or any other appropriate portable electronic device.

[0028] In some embodiments, the target vehicle 130 is a shared vehicle, such as a shared two-wheeled vehicle, a shared electric motorcycle, a shared car, or any other shared transportation vehicle that complies with laws and regulations.

[0029] In some implementations, the control device 110 may be a remote server. In this case, the control device 110 may be configured as a remote server that centrally manages and controls various shared vehicles including the target vehicle 130. For example, the control device 110 may at least manage and control the target vehicle 130 by communicating with a central control unit on the target vehicle 130. In some embodiments, at least part of the functions of the control device 110 may be implemented by the user device 120.

[0030] In some embodiments, the control device 110 may be implemented with an independent server or a server cluster consisting of multiple servers. In other words, the control device 110 may be one or a group of servers that provide service functions, or one or a group of virtual machines that can provide services. The present disclosure is not limited in the implementation form of the control device 110.

[0031] The control device 110 can be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a gaming device, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the control device 110 can also support any type of interface for the user (such as a "wearable" circuit, etc.).

[0032] It should be understood that the structure and function of the various elements in the environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.

[0033] Fixed-point return is a set of return capabilities developed by shared vehicle operators to standardize the parking location of vehicles. Users need to initiate a return request on the application, and then the shared vehicle operator's server verifies the location of the shared vehicle. If the location verification passes, the vehicle can be returned. If the location verification fails, the vehicle is not allowed to be returned.

[0034] The current car return scheme relies heavily on the positioning accuracy of the vehicle's global positioning system (GPS). The user initiates a car return request on the application, and the shared vehicle operator's server communicates with the shared vehicle through the transmission control protocol to obtain the real-time location of the shared vehicle. However, in actual scenarios, due to factors such as weather, signal, and battery power of the shared vehicle, the GPS module of the shared vehicle often has positioning drift, resulting in the reported location not matching the actual location. As a result, it often happens that the user has parked the shared vehicle in the designated area, but the shared vehicle operator's server still determines that it does not meet the parking requirements, resulting in the user's failure to return the vehicle. This phenomenon of positioning drift greatly reduces the success rate of returning the vehicle, and ultimately leads to low efficiency in returning the vehicle for the user.

[0035] In an embodiment of the present disclosure, a method for controlling a vehicle is provided. The method includes: in response to a request to return a target vehicle, obtaining a target image corresponding to a vehicle return interface. Determining a first position area corresponding to the target vehicle and a second position area corresponding to a designated vehicle return location from the target image. Determining whether the parking of the target vehicle meets the parking requirements based on the first position area and the second position area. Providing a response to the vehicle return request based on the determination result of whether the target vehicle meets the parking requirements.

[0036] Through the above process, when responding to the return request of the target vehicle, the control device first obtains the target image corresponding to the return interface. From the target image, the first location area where the target vehicle is located and the second location area of ​​the designated return location are determined. Based on these two location areas, it is determined whether the parking of the target vehicle meets the requirements. Based on this judgment result, the control device provides a response to the return request. The above process effectively reduces the failure of the return due to GPS positioning drift and improves the success rate of the return.

[0037] Figure 2 FIG. 2 shows an example process of a method 200 for controlling a vehicle according to some embodiments of the present disclosure. Figure 1 The process 200 is described in the environment 100. In the environment 100, the control device 110 can perform an evaluation on whether the target vehicle 130 meets the parking requirements.

[0038] In block 201, the control device 110 obtains a target image corresponding to a vehicle return interface of an application in response to a vehicle return request for the target vehicle 130. The vehicle return interface may be a vehicle return interface presented by an application running on the user device 120, and the vehicle return interface may include a first location area corresponding to the target vehicle and a second location area corresponding to a designated vehicle return location.

[0039] Figure 3 An example diagram of a target image corresponding to a vehicle return interface 300 according to some embodiments of the present disclosure is shown. The vehicle return interface 300 includes a first location area 310-A ​​corresponding to the target vehicle and a second location area 310-B corresponding to the designated vehicle return location. Figure 3 In the example shown, the control device 110 determines that the parking of the target vehicle does not meet the parking requirements. Therefore, the display interface 300 also includes a return instruction sub-interface 330 to instruct the user 160 to park the target vehicle 130 at the second location area 310-B corresponding to the designated return location.

[0040] At block 202 , the control device 110 determines, from the target image, a first location area corresponding to the target vehicle and a second location area corresponding to the designated vehicle return location.

[0041] The control device 110 may determine, in the target image, a first location area corresponding to the target vehicle and a second location area corresponding to the designated vehicle return location based on image recognition technology. For identification of different location areas, at least one of a color recognition-based technology and a shape recognition-based technology may be used.

[0042] For example, the control device 110 performs color analysis on the target image through a preset color range to determine the corresponding location area. For example, computer vision technology can be used to identify specific colors (such as gray areas) related to the designated vehicle return location and specific colors (such as green or blue areas) related to the location of the target vehicle in the image. The color mask map technology is used to separate these specific areas and calculate the pixel coordinates of these areas.

[0043] For another example, the control device 110 uses an image processing algorithm to detect an area with a specific shape feature in the image. For example, edge detection and contour extraction techniques can be used to identify a rectangular designated vehicle return location area and a circular target vehicle location mark in the target image. Then, by analyzing the geometric features and positional relationship of these shapes, the relative position of the target vehicle 130 and the vehicle return location is determined.

[0044] In block 203, the control device 110 determines whether the parking of the target vehicle 130 meets the parking requirements based on the first location area and the second location area. For example, whether the parking of the target vehicle 130 meets the parking requirements can be determined based on whether the first location area and the second location area overlap.

[0045] The control device 110 compares the first location area with the second location area. If the first location area is completely within the second location area, or the first location area and the second location area partially overlap, it can be determined that the parking of the target vehicle 130 meets the parking requirements. Otherwise, the control device 110 determines that the parking of the target vehicle 130 does not meet the requirements.

[0046] In block 204, the control device 110 provides a response to the vehicle return request based on the determination result of whether the target vehicle meets the parking requirements. For example, if the target vehicle meets the parking requirements, the response may include operations such as locking and settlement. If the target vehicle does not meet the parking requirements, the response may include providing vehicle return guidance information.

[0047] If it is determined that the target vehicle meets the parking requirements, the control device 110 will send a confirmation message to the user device 120, indicating that the vehicle return is successful, and complete the relevant settlement and locking operations of the target vehicle. If it is determined that the target vehicle 130 does not meet the parking requirements, the control device 110 will send a message of vehicle return failure to the user device 120 and provide the user with corresponding vehicle return guidance information to ensure that the target vehicle 130 can be parked correctly.

[0048] Figure 4 An example diagram corresponding to a vehicle return guidance interface 400 according to some embodiments of the present disclosure is shown. In addition to the corresponding vehicle return indication sub-interface 330 in the display interface 300, a vehicle return guidance information 401 may also be displayed in a separate interface. Vehicle return guidance information 401. The user 160 may be guided to park the target vehicle 130 at a designated vehicle return location by way of map navigation, so as to successfully complete the vehicle return operation.

[0049] Through the above process, after receiving the vehicle return request, the control device 110 can use the target image corresponding to the vehicle return interface in the application as auxiliary information to determine the first location area where the target vehicle is located and the second location area of ​​the designated vehicle return location from the target image. Based on these two location areas, it is determined whether the parking of the target vehicle meets the requirements. According to the judgment result, the control device 110 provides a response to the vehicle return request. The above process effectively reduces the vehicle return failure caused by GPS positioning drift, and improves the user experience and the vehicle return success rate.

[0050] Different position areas may be classified into different types. For example, the first position area corresponds to the first type, and the second position area corresponds to the second type. Based on the classified types, determining the first position area and the second position area from the target image may include the following process: for a given position area in the first position area and the second position area, obtaining a color representation corresponding to the type of the given position area. Based on the color representation, determining the given position area corresponding to the color representation in the target image.

[0051] In order to determine the two position areas from the target image, the control device 110 may obtain a color representation corresponding to each position area type. For example, for each given position area, the application program may pre-set a color representation. For example, the first position area may be represented by green or blue, and the second position area may be represented by gray.

[0052] In actual operation, the control device 110 detects these pre-set color representations by analyzing the color distribution in the target image. Based on the color representation, the control device 110 determines a given location area corresponding to the color representation in the target image. In this way, the control device 110 can accurately identify and distinguish the location of the target vehicle and the location of the designated vehicle return location.

[0053] Through the above process, the control device 110 can more accurately identify the location of the target vehicle and the designated return location, reducing the return failure caused by GPS positioning drift. For the user on the terminal side, the user no longer needs to try the return operation multiple times, and the control device 110 can accurately determine the parking location at the first attempt, thereby improving the success rate of the return operation and user satisfaction.

[0054] The detection process of the given position region may specifically include determining a screening parameter of the target color from the color representation based on the color representation, and determining a contour of the target color region in the target image based on the screening parameter of the target color as the given position region corresponding to the color representation.

[0055] The control device 110 may determine the screening parameters of the target color based on the color representation. For example, in the RGB color space, the screening parameters of the target color may correspond to the RGB value range of the color. For the HSV color space, the screening parameters of the target color may correspond to the HSV value range, etc. The screening parameters of the target color may be used to accurately describe the characteristics of the color.

[0056] For example, if the first position area is represented by green, the control device 110 sets the RGB value range or HSV value range of green as the screening parameter. Taking the RGB value range as an example, the RGB color space consists of three channels: red, green, and blue, and the value range of each channel is usually 0 to 255. Taking the color representation of green as an example, the screening parameters of the target color can be: R range is 0-100, G range is 150-255, and B range is 0-100.

[0057] The control device 110 extracts the pixel area that meets the target color characteristics based on these screening parameters. Then, the control device 110 determines the contour of the target color area in the target image. For example, an edge detection algorithm (such as Canny edge detection) or a contour extraction algorithm (such as OpenCV's findContours function) can be used to identify and determine the contour of the target color area.

[0058] These detected contour areas are used as given position areas corresponding to the color representations. Through the above process, the control device 110 can accurately identify the first position area where the target vehicle is located and the second position area of ​​the designated vehicle return location.

[0059] The detection process for a given position area can be performed in different color spaces. For example, the RGB color space and the HSV color space mentioned in the above example. The following takes the HSV color space as an example to introduce the process of determining the screening parameters of the target color. The control device 110 performs color space conversion on the target image, converting the target image from the original RGB color space image to the HSV color space image. Because the HSV color space image is more in line with the perception of color. Therefore, through this conversion, color segmentation and recognition can be performed more conveniently.

[0060] For an HSV color space image, the target color's filtering parameters may indicate the range of hue, saturation, and value. For example, for a green color representation, the target color's filtering parameters may correspond to the ranges of H (35-85), S (100-255), and V (100-255). For a gray color representation, the target color's filtering parameters may correspond to the ranges of H (0-180), S (0-50), and V (50-200).

[0061] The HSV color space is more adaptable to changes in lighting and color perception, and can maintain a high color recognition effect in different environments. By determining the screening parameters of the target color in the HSV color space, the target color area can be more accurately identified and segmented. The combination of color space conversion and screening parameters can simplify the processing steps of color detection and improve the efficiency and reliability of image processing.

[0062] After the target color screening parameters are determined, the contour of the target color region can be determined in the target image. The process of determining the contour of the target color region can extract the contour of the target color region from the target image using a mask image corresponding to at least one target color region.

[0063] The control device 110 can generate a mask map of the target color area based on the screening parameters of the target color. The mask map is a binary image in which the target color area is marked as white (value is 1) and other areas are black (value is 0). Exemplarily, the control device 110 can perform screening on each pixel in the target image of a given color space. Taking the HSV color space as an example, it is determined whether the hue, saturation and brightness of each pixel are within the target color range. If it is within the target range, the pixel is marked as white in the mask map, otherwise it is marked as black. By executing a contour detection algorithm (such as Canny edge detection or contour finding algorithm or any other applicable algorithm) on the mask map image, the boundary information of the target color area can be obtained. Based on the boundary information, the contour of the target color area can be extracted.

[0064] Ideally, the position area corresponding to the color representation is single. That is, there is only one gray area (specified vehicle return location) and one green area (the location of the target vehicle) in the target image. However, if there are multiple position areas corresponding to the color representation, then a given position area corresponding to the color representation can be determined in the target image with the help of a preset contour. For example, in some embodiments of the present disclosure, in response to detecting multiple position areas corresponding to the color representation in the target image, the control device 110 can obtain a preset contour of a given position area. Perform similarity matching on the preset contour and the position areas among the multiple position areas, and determine the target position area from the multiple position areas as the given position area.

[0065] The control device 110 may pre-store or dynamically obtain preset contours corresponding to a given location area. These preset contours are usually determined based on known target shapes or historical data, and represent the shape of the given location area under ideal circumstances.

[0066] The preset contour is matched with the detected multiple position regions respectively. The similarity matching can be achieved by various methods, such as using a shape matching algorithm to calculate the similarity between the preset contour and the multiple position regions. The target position region with the highest similarity score is selected as the given position region corresponding to the color representation.

[0067] The above process ensures that when there are multiple position areas corresponding to the color representation, the non-target areas can be effectively filtered out through the preset contour matching, so as to accurately identify the target contour that best meets the expected one, thereby improving the accuracy and reliability of target detection.

[0068] After determining the first location area and the second location area, it can be determined whether the parking of the target vehicle meets the parking requirements through the following process. For example, in some embodiments of the present disclosure, the control device 110 can detect whether the first location area and the second location area overlap. In response to detecting the overlap, it is determined that the target vehicle meets the parking requirements. In response to not detecting the overlap, it is determined that the target vehicle does not meet the parking requirements.

[0069] The control device 110 can determine whether there is overlap by calculating the geometric intersection of the two position areas. Specifically, the images corresponding to the mask images of the two position areas can be subjected to a bitwise AND operation. If there are white pixels in the result image, it indicates that there is overlap. That is, the result is 1 when both binary numbers at the corresponding positions are 1, otherwise it is 0.

[0070] Assume that the current position of the target vehicle (first position area) and the designated return location (second position area) are represented as two rectangular areas respectively. The control device 110 determines whether there is overlap by the following steps: based on the first vertex coordinates, the first width and the first height of the first position area, determine the first boundary position corresponding to the first position area. Based on the second vertex coordinates, the second width and the second height of the second position area, determine the second boundary position corresponding to the second position area. Based on the first boundary position and the second boundary position, detect whether there is overlap between the first position area and the second position area.

[0071] The boundary of the first position area (referred to as rectangle 1) is obtained. For example, the coordinates of the upper left corner can be used as the coordinates of the first vertex. The coordinates of the first vertex can be expressed as (x1, y1), the first width is w1, and the first height is h1.

[0072] Get the boundary of the second position area (referred to as rectangle 2), for example, the upper left corner coordinates can be used as the second vertex coordinates, the second vertex coordinates can be expressed as (x2, y2), the second width is w2, and the second height is h2.

[0073] Exemplarily, if it is determined that the following four conditions are simultaneously satisfied, it can be determined that there is an overlap. The four conditions include: the left boundary of rectangle 1 is to the left of the right boundary of rectangle 2 (x1 < x2 + w2); the right boundary of rectangle 1 is to the right of the left boundary of rectangle 2 (x1 + w1 > x2); the upper boundary of rectangle 1 is above the lower boundary of rectangle 2 (y1 < y2 + h2); the lower boundary of rectangle 1 is below the upper boundary of rectangle 2 (y1 + h1 > y2).

[0074] If there is an overlap and the target vehicle meets the parking requirements, the control device 110 confirms that the vehicle can be successfully returned. If there is no overlap and the target vehicle does not meet the parking requirements, the control device 110 confirms that returning the vehicle is not allowed.

[0075] By detecting the overlap between the current position of the target vehicle and the designated vehicle return location, the control device can ensure that the vehicle is parked in the correct position and improve the success rate of vehicle return.

[0076] After determining whether the target vehicle complies with the parking rules, the control device 110 can provide a response to the vehicle return request based on the determination result of whether the target vehicle complies with the parking rules. In some embodiments of the present disclosure, providing a response to the vehicle return request may include, if it is determined that the target vehicle complies with the parking rules, controlling the completion of the vehicle return process of the target vehicle. If it is determined that the target vehicle does not comply with the parking rules, providing vehicle return guidance information to indicate a parking method that complies with the parking rules.

[0077] Figure 5 Fig. shows an example diagram corresponding to the vehicle return success interface 500 according to some embodiments of the present disclosure. Figure 5 corresponding to Figure 3 After adopting the method introduced in the present disclosure, based on the first position area corresponding to the target vehicle and the second position area corresponding to the designated vehicle return location, the control device 110 can determine that there is an overlap between the two. Thus, a determination result different from Figure 3 can be obtained, that is, the determination result that the target vehicle meets the parking requirements. It can be seen that adopting the method of the present disclosure can effectively reduce the situation of vehicle return failure caused by GPS positioning drift.

[0078] In addition, if it is determined that the target vehicle does not comply with the parking rules, the control device 110 will provide vehicle return guidance information to indicate a parking method that complies with the parking rules. Exemplarily, the vehicle return guidance information may include: generating and displaying detailed vehicle return guidance information to explain the reason why the current parking position does not comply with the rules. Providing a map and navigation information of nearby parking spots that comply with the parking rules to guide the user to park the vehicle at a suitable location. Providing parking specifications and precautions to help the user understand the correct parking method so that the vehicle can comply with the parking rules when returning the vehicle next time. Providing the user with an option to contact the customer service staff to obtain further assistance or explanation.

[0079] Through the above steps, the disclosed embodiment can effectively improve the success rate of vehicle return. By accurately determining the parking position, it is ensured that the vehicle is parked in an area that complies with the regulations, avoiding the situation where the vehicle cannot be successfully returned due to the parking position not complying with the rules. In addition, if it is confirmed that the return vehicle does not meet the parking requirements, detailed return guidance information and specifications can be provided to help users better understand and follow the parking rules, thereby reducing the occurrence of incorrect parking.

[0080] Figure 6 A schematic structural block diagram of a vehicle control apparatus 600 according to some embodiments of the present disclosure is shown. The apparatus 600 may be implemented in or included in the control device 110, for example. Each module / component in the apparatus 600 may be implemented by hardware, software, firmware, or any combination thereof.

[0081] As shown in the figure, the device 600 includes a target image acquisition module 601, which is configured to acquire a target image corresponding to the vehicle return interface of the application in response to a vehicle return request for the target vehicle. A position area determination module 602 is configured to determine a first position area corresponding to the target vehicle and a second position area corresponding to the designated vehicle return location from the target image. A parking requirement detection module 603 is configured to determine whether the parking of the target vehicle meets the parking requirements based on the first position area and the second position area. A vehicle return request response module 604 is configured to provide a response to the vehicle return request based on the determination result of whether the target vehicle meets the parking requirements.

[0082] In some embodiments of the present disclosure, the first position region corresponds to the first type, and the second position region corresponds to the second type. Based on this, the position region determination module 602 can be configured to: for a given position region in the first position region and the second position region, obtain a color representation corresponding to the type of the given position region. Based on the color representation, detect the given position region corresponding to the color representation in the target image.

[0083] In some embodiments of the present disclosure, the position region determination module 602 is specifically configured to: determine a screening parameter of a target color based on the color representation. Based on the screening parameter of the target color, determine the outline of the target color region in the target image as a given position region corresponding to the color representation.

[0084] In some embodiments of the present disclosure, the position region determining module 602 is specifically configured to: extract the contour of the target color region from the target image using a mask image corresponding to at least one target color region.

[0085] In some embodiments of the present disclosure, the location region determination module 602 is specifically configured to: perform color space conversion on the target image to obtain the target image in a given color space, and determine a screening parameter of a target color corresponding to the color representation in the given color space.

[0086] In some embodiments of the present disclosure, in response to detecting multiple position areas corresponding to the color representation in the target image, the position area determination module 602 is specifically configured to: obtain a preset outline of a given position area, perform similarity matching on the preset outline and position areas among the multiple position areas, and determine the target position area from the multiple position areas as the given position area.

[0087] In some embodiments of the present disclosure, the parking requirement detection module 603 may be configured to: detect whether there is an overlap between the first location area and the second location area. In response to detecting an overlap, determine that the target vehicle meets the parking requirement. In response to not detecting an overlap, determine that the target vehicle does not meet the parking requirement.

[0088] In some embodiments of the present disclosure, the parking requirement detection module 603 may be specifically configured to: determine a first boundary position corresponding to the first position area based on the first vertex coordinates, the first width, and the first height of the first position area. Determine a second boundary position corresponding to the second position area based on the second vertex coordinates, the second width, and the second height of the second position area. Detect whether the first position area and the second position area have an intersection based on the first boundary position and the second boundary position.

[0089] In some embodiments of the present disclosure, the vehicle return request response module 604 may be configured to: if it is determined that the target vehicle complies with the parking rules, control the completion of the vehicle return process of the target vehicle. If it is determined that the target vehicle does not comply with the parking rules, provide vehicle return guidance information to indicate a parking method that complies with the parking rules.

[0090] Figure 7 1 shows a block diagram of an electronic device 700 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 7 The electronic device 700 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 7 The electronic device 700 shown may include or be implemented as Figure 1 The control device 110, or Figure 6 Device 600.

[0091] like Figure 7As shown, the electronic device 700 is in the form of a general electronic device. The components of the electronic device 700 may include, but are not limited to, one or more processors or processing units 710, a memory 720, a storage device 730, one or more communication units 740, one or more input devices 750, and one or more output devices 760. The processing unit 710 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 720. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 700.

[0092] The electronic device 700 typically includes a plurality of computer storage media. Such media may be any accessible media that is accessible to the electronic device 700, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 720 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 730 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data and may be accessed within the electronic device 700.

[0093] The electronic device 700 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 7 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 720 may include a computer program product 725 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.

[0094] The communication unit 740 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 700 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 700 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0095] The input device 750 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 760 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 700 may also communicate with one or more external devices (not shown) through the communication unit 740 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 700, or communicate with any device that allows the electronic device 700 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0096] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.

[0097] According to an exemplary implementation of the present disclosure, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes Figure 2 The methods provided in the various optional methods are therefore not described in detail here.

[0098] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0099] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0100] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0101] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0102] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.

Claims

1. A method for controlling a vehicle, comprising: In response to a request to return a target vehicle, obtaining a target image corresponding to a vehicle return interface of the application program; Determining, from the target image, a first location area corresponding to the target vehicle and a second location area corresponding to a designated vehicle return location; Based on the first location area and the second location area, determining whether the parking of the target vehicle meets the parking requirements; as well as Based on the determination result of whether the target vehicle meets the parking requirements, a response to the vehicle return request is provided.

2. The method according to claim 1, wherein the first position area corresponds to a first type and the second position area corresponds to a second type, wherein determining the first position area and the second position area from the target image comprises: For a given location area of ​​the first location area and the second location area, Obtain a color representation corresponding to the type of the given location area; as well as Based on the color representation, a given position area corresponding to the color representation is detected in the target image.

3. The method according to claim 2, wherein detecting a given position area corresponding to the color representation in the target image comprises: determining screening parameters for a target color based on the color representation; as well as Based on the screening parameters of the target color, an outline of a target color area is determined in the target image as a given position area corresponding to the color representation.

4. The method of claim 3, wherein determining the outline of the target color area comprises: The contour of the target color region is extracted from the target image using the mask image corresponding to the at least one target color region.

5. The method of claim 3, wherein determining a screening parameter of a target color based on the color representation comprises: Performing color space conversion on the target image to obtain a target image in a given color space; as well as A screening parameter of a target color corresponding to the color representation in the given color space is determined.

6. The method according to claim 2, in response to detecting a plurality of position regions corresponding to the color representation in the target image, wherein determining a given position region corresponding to the color representation in the target image comprises: Obtaining a preset outline of the given location area; as well as The preset contour is respectively matched with position areas among the multiple position areas, and a target position area is determined from the multiple position areas as the given position area.

7. The method according to claim 1, wherein determining whether the parking of the target vehicle meets the parking requirements comprises: Detecting whether the first location area and the second location area overlap; In response to detecting the overlap, determining that the target vehicle meets the parking requirement; as well as In response to not detecting the overlap, it is determined that the target vehicle does not meet the parking requirement.

8. The method according to claim 7, wherein detecting whether the first location area and the second location area overlap comprises: Determine a first boundary position corresponding to the first position area based on first vertex coordinates, a first width, and a first height of the first position area; determining a second boundary position corresponding to the second position area based on second vertex coordinates, a second width, and a second height of the second position area; and Based on the first boundary position and the second boundary position, it is detected whether the first position area and the second position area have an intersection.

9. The method of claim 1, wherein providing a response to the vehicle return request based on a determination of whether the target vehicle complies with parking rules comprises: If it is determined that the target vehicle complies with the parking rule, controlling completion of the vehicle return process of the target vehicle; as well as If it is determined that the target vehicle does not comply with the parking rules, vehicle return guidance information is provided to indicate a parking method that complies with the parking rules.

10. A vehicle control device, comprising: A target image acquisition module is configured to acquire a target image corresponding to a vehicle return interface of the application program in response to a vehicle return request for the target vehicle; a location area determination module, configured to determine, from the target image, a first location area corresponding to the target vehicle and a second location area corresponding to a designated vehicle return location; a parking requirement detection module, configured to determine whether the parking of the target vehicle meets the parking requirement based on the first location area and the second location area; as well as The vehicle return request response module is configured to provide a response to the vehicle return request based on a determination result of whether the target vehicle meets the parking requirements.

11. An electronic device, comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 9 when executed by the at least one processing unit.

12. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 9.

13. A computer program product, comprising computer executable instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 9.