WO2021027944A1 - Position compliance recognition method and apparatus, storage medium and electronic apparatus - Google Patents

Position compliance recognition method and apparatus, storage medium and electronic apparatus Download PDF

Info

Publication number
WO2021027944A1
WO2021027944A1 PCT/CN2020/109344 CN2020109344W WO2021027944A1 WO 2021027944 A1 WO2021027944 A1 WO 2021027944A1 CN 2020109344 W CN2020109344 W CN 2020109344W WO 2021027944 A1 WO2021027944 A1 WO 2021027944A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
image
parking
location
target vehicle
Prior art date
Application number
PCT/CN2020/109344
Other languages
French (fr)
Chinese (zh)
Inventor
薛舟
陈子冲
Original Assignee
纳恩博(常州)科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 纳恩博(常州)科技有限公司 filed Critical 纳恩博(常州)科技有限公司
Publication of WO2021027944A1 publication Critical patent/WO2021027944A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • G06V20/54Surveillance or monitoring of activities, e.g. for recognising suspicious objects of traffic, e.g. cars on the road, trains or boats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle

Definitions

  • the present disclosure relates to the field of data processing technology, and in particular, to a location compliance recognition method and device, storage medium, and electronic device.
  • GPS Global Positioning System
  • IMU Inertial Measurement Unit
  • the embodiments of the present disclosure provide a location compliance recognition method and device, a storage medium, and an electronic device, so as to at least solve the problem in the related art that it is impossible to accurately recognize whether the parking place of a shared vehicle is appropriate.
  • a location compliance recognition method including: in the case of detecting a parking instruction indicating that a target vehicle has stopped, using an image capture device installed on the target vehicle Collect an image of the location of the target vehicle; identify the target parking location of the target vehicle based on the image; determine whether the target parking location is a compliant parking by judging whether the target parking location is located in a designated parking area position.
  • the recognizing the target parking position of the target vehicle according to the image includes: extracting a first image feature in the image; and inputting the first image feature into a first positioning model to identify the The target docking position.
  • the method further includes: recognizing environmental parameters of the target parking position according to the image, wherein the environmental parameters include at least one of the following: Whether there are buildings blocking the surrounding area, whether there are public facilities in the surrounding area, and whether it is located within the designated parking area.
  • the determining whether the target parking location is a compliant parking location by determining whether the target parking location is located in a designated parking area includes: when the environmental parameters of the target parking location meet a preset rule Next, determine that the target parking position is located in the designated parking area, and then determine that the target parking position is a compliant parking position; when the environmental parameters of the target parking position do not meet the preset rules, determine the The target parking position is not located in the designated parking area, and it is determined that the target parking position is a non-compliant parking position.
  • the method further includes: performing at least one of the following operations: sending the non-compliant parking position to a server; sending warning information, The warning information is used to prompt that the target parking position is a non-compliant parking position, and/or is used to prompt a designated parking area within a designated range from the target parking position.
  • the collecting an image of the location of the target vehicle through an image acquisition device installed on the target vehicle includes: collecting a video image and/or a photo image of the location of the target vehicle within a predetermined time period, wherein, the target vehicle includes a shared vehicle.
  • a location compliance recognition method including: in the case of detecting a parking instruction indicating that the target vehicle has stopped, using an image installed on the target vehicle
  • the collection device collects an image of the location of the target vehicle; sends the image to a server so that the server can recognize the target parking position of the target vehicle according to the image; receives the target returned by the server Parking position; determining whether the target parking position is a compliant parking position by determining whether the target parking position is located in a designated parking area.
  • a location compliance recognition method including: acquiring an image sent by a target vehicle, where the image is that when the target vehicle detects a stop instruction, An image of the location of the target vehicle collected by the image acquisition device installed on the target vehicle, the parking instruction is used to indicate that the target vehicle has stopped; and the image of the target vehicle is identified The target parking position; the identified target parking position is sent to the target vehicle, so that the target vehicle determines whether the target parking position is a closed area by judging whether the target parking position is located in a designated parking area Regulation docking position.
  • the recognizing the target parking position of the target vehicle according to the image includes: extracting a second image feature in the image; and inputting the second image feature into a second positioning model to identify the The target docking position.
  • a location compliance recognition device including: a first collection module, configured to pass the said stop instruction when the stop instruction indicating that the target vehicle has stopped is detected.
  • the image acquisition device installed on the target vehicle collects an image of the location of the target vehicle; the first recognition module is used to identify the target parking position of the target vehicle according to the image; the first determination module is used to pass Determine whether the target parking position is located in a designated parking area, and determine whether the target parking position is a compliant parking position.
  • the recognition module includes: a first extraction unit for extracting a first image feature in the image; a first input unit for inputting the first image feature into a first positioning model to identify The target docking position.
  • the device further includes: a third recognition module for recognizing environmental parameters of the target parking position according to the image, wherein the environmental parameters include at least one of the following: whether there are buildings around, Whether there are public facilities in the surrounding area and whether they are located within the designated stopping area.
  • the environmental parameters include at least one of the following: whether there are buildings around, Whether there are public facilities in the surrounding area and whether they are located within the designated stopping area.
  • the first determination module is configured to determine that the target parking position is located in the designated parking area when the environmental parameters of the target parking position meet a preset rule, and then determine the target The parking location is a compliant parking location; when the environmental parameters of the target parking location do not meet the preset rules, it is determined that the target parking location is not located in the designated parking area, and then the target parking location is determined to be Non-compliant docking location.
  • the device further includes: an execution module, configured to perform at least one of the following operations after determining that the target parking position is a non-compliant parking position: sending the non-compliant parking position to Server; sending warning information, wherein the warning information is used to prompt that the target parking location is a non-compliant parking location, and/or used to prompt a designated parking area within a specified range from the target parking location.
  • an execution module configured to perform at least one of the following operations after determining that the target parking position is a non-compliant parking position: sending the non-compliant parking position to Server; sending warning information, wherein the warning information is used to prompt that the target parking location is a non-compliant parking location, and/or used to prompt a designated parking area within a specified range from the target parking location.
  • the first collection module includes: a collection unit configured to collect a video image and/or a photo image of the location of the target vehicle within a predetermined period of time, wherein the target vehicle includes a shared vehicle.
  • a location compliance recognition device including: a second acquisition module, configured to pass the said parking instruction when the parking instruction indicating that the target vehicle has stopped is detected
  • the image acquisition device installed on the target vehicle collects an image of the location of the target vehicle; the first sending module is configured to send the image to the server so that the server can recognize the target vehicle based on the image
  • the receiving module is used to receive the target stopping position returned by the server; the second determining module is used to determine whether the target stopping position is in the designated stopping area by judging whether the target stopping position is Compliant docking position.
  • a location compliance recognition device including: an acquisition module, configured to acquire an image sent by a target vehicle, wherein the image shows that the target vehicle detects a stop
  • an image of the location of the target vehicle collected by an image acquisition device installed on the target vehicle, the parking instruction is used to indicate that the target vehicle has stopped
  • the second recognition module uses To identify the target parking position of the target vehicle according to the image
  • the second sending module is used to send the identified target parking position to the target vehicle so that the target vehicle can pass the judgment station Whether the target parking position is located in a designated parking area is used to determine whether the target parking position is a compliant parking position.
  • the second recognition module includes: a second extraction unit for extracting a second image feature in the image; a second input unit for inputting the second image feature into a second positioning model, To identify the target docking position.
  • a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute any of the foregoing method embodiments when running A step of.
  • an electronic device including a memory and a processor, the memory is stored with a computer program, and the processor is configured to run the computer program to execute any of the above Steps in the method embodiment.
  • the image acquisition device installed on the target vehicle is used to collect Image of the location of the target vehicle; identify the target parking location of the target vehicle based on the image; determine whether the target parking location is a compliant parking location by judging whether the target parking location is in the designated parking area, that is, through the image that comes with the target vehicle
  • the collection device collects the image of the location and then recognizes it.
  • FIG. 1 is a hardware structural block diagram of a mobile terminal of an optional location compliance identification method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of an optional location compliance identification method according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart of another optional location compliance recognition method according to an embodiment of the present disclosure.
  • FIG. 4 is a flowchart of another optional location compliance recognition method according to an embodiment of the present disclosure.
  • FIG. 5 is a flowchart of another optional location compliance recognition method according to an embodiment of the present disclosure.
  • FIG. 6 is a structural block diagram of an optional location compliance recognition device according to an embodiment of the present disclosure.
  • Fig. 7 is a structural block diagram of another optional location compliance recognition device according to an embodiment of the present disclosure.
  • Fig. 8 is a structural block diagram of another optional location compliance recognition device according to an embodiment of the present disclosure.
  • FIG. 1 is a hardware structural block diagram of a mobile terminal of a location compliance identification method according to an embodiment of the present disclosure.
  • the mobile terminal 10 may include one or more (only one is shown in FIG. 1) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. ) And a memory 104 for storing data.
  • the above mobile terminal may also include a transmission device 106 and an input/output device 108 for communication functions.
  • FIG. 1 is only for illustration, and does not limit the structure of the above-mentioned mobile terminal.
  • the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration from that shown in FIG.
  • the memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as the computer programs corresponding to the method for obtaining scheduling throughput in the embodiments of the present disclosure.
  • the processor 102 runs the computer programs stored in the memory 104, Thereby, various functional applications and data processing are executed, that is, the above-mentioned method is realized.
  • the memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include a memory remotely provided with respect to the processor 102, and these remote memories may be connected to the mobile terminal 10 via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission device 106 is used to receive or send data via a network.
  • the above-mentioned specific example of the network may include a wireless network provided by the communication provider of the mobile terminal 10.
  • the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • FIG. 2 is a flowchart of an optional location compliance identification method according to an embodiment of the present disclosure. As shown in FIG. 2, the method includes:
  • Step S202 in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
  • Step S204 Identify the target stopping position of the target vehicle according to the image
  • Step S206 Determine whether the target parking position is a compliant parking position by determining whether the target parking position is located in the designated parking area.
  • an image of the location of the target vehicle is collected through the image acquisition device installed on the target vehicle; the target parking of the target vehicle is recognized according to the image Location: Determine whether the target parking location is a compliant parking location by judging whether the target parking location is in the designated parking area, that is, the image of the location is collected by the image capture device of the target vehicle and then recognized, based on the content displayed in the image Intuitively determine whether the current parking location meets the rules of the designated parking area, and then determine whether it is a compliant location, which solves the problem that the existing technology cannot accurately identify whether the parking location of shared vehicles is appropriate, and improves the recognition of the parking location of shared vehicles Accuracy.
  • the target vehicles in the embodiments of the present disclosure may include, but are not limited to, any shared vehicles, for example, shared bicycles, shared cars, shared electric vehicles, shared scooters, and the like.
  • a parking instruction is triggered.
  • the parking instruction here can be automatically triggered after the user turns off or locks the target vehicle, or it can be triggered by the user.
  • the single-chip microcomputer or chip set inside the target vehicle will trigger the image capture device installed on the target vehicle to take a photo or video after detecting the parking instruction.
  • the lens here can be set as a wide-angle lens or a lens with a deeper depth of field, as much as possible Collect image information of the surrounding environment.
  • recognizing the target stopping position of the target vehicle according to the image can be achieved through the following steps:
  • S2 Input the first image feature into the first positioning model to identify the target stopping position.
  • the first positioning model here can be any two classification algorithm model.
  • the input is the sensor data of the target vehicle, including but not limited to the captured image and GPS data of the current stop position, and the output is a determination result between 0 and 1.
  • the result output by the first positioning model can be the identified target stopping position, or the judgment result of whether the target stopping position is located in the designated stopping area, or whether the target stopping position is a compliant stopping position
  • the result of the judgment can also output the probability value of the target parking location in the designated parking area, or the probability value of the target parking location being a compliant parking location, and then judging whether it is a compliant parking location based on the obtained probability value. This is not limited.
  • the first positioning model here can be implemented by the Support Vector Machine (SVM) algorithm: first prepare training data, that is, known reasonable or unreasonable parking photos and their judgments, and perform features in the image Detection, using detection methods such as harris, DOG, etc., extracting feature description words from feature locations, such as SIFT, Brief, etc., construct a bag of words feature description for each image, and use svm to train regression according to the judgment result Find the correspondence between features and judgments. Every time a new picture is obtained, the picture is first extracted with features, and then the SVM classifier is used to determine whether it is a compliant parking position.
  • SVM Support Vector Machine
  • the principle of Harris corner detection is to use a moving window to calculate the gray change value in the image.
  • the key process includes converting to gray image, calculating difference image, Gaussian smoothing, calculating local extremum, and confirming corners.
  • DOG Difference of Gaussian
  • SIFT Scale-invariant feature transform
  • BRIEF is a 2010 article named "BRIEF: Binary Robust Independent Elementary Features”.
  • BRIEF is a description of the detected feature points. It is a binary-coded descriptor that discards the use of regional gray.
  • the traditional method of describing feature points with degree histogram greatly speeds up the establishment of feature descriptors, and also greatly reduces the time for feature matching.
  • Bag-of-words model (Bag-of-words model) is a simplified expression model under natural language processing and information retrieval (IR).
  • IR information retrieval
  • Bag-of-words model assumes that for a text, its word order, grammar and syntax are ignored , Regard it as just a word set, or a combination of words, the appearance of each word in the text is independent, and it does not depend on whether other words appear or not, or it is not necessary to select a word at any position Selected independently by the influence of the previous sentence.
  • Bag of words to represent the feature description of the image can be understood in this way.
  • each image is first divided into patches (it can be rigid segmentation or it can be based on SIFT key Point detection), in this way, each image is represented by many patches, and each patch is represented by a feature vector.
  • Sift An image may have hundreds of patches, each The dimension of the patch feature vector is 128.
  • build a Bag of words model assuming that the Size of the Dictionary is 100, that is, there are 100 words.
  • the first positioning model here can also be implemented by a convolutional neural network.
  • recognizing the target parking position of the target vehicle according to the image can also be achieved by the following steps: sending the image to the server, so that the server recognizes the target parking position of the target vehicle in the image.
  • image recognition can be done in the following three ways:
  • the algorithm a0 deployed in the body of the target vehicle is used to determine whether it is a reasonable parking position, and the determination result d0 is obtained.
  • the image is determined by the background user, under the auxiliary information of GPS, through naked eye observation, referring to the preset rules, and the result is d2.
  • the algorithm a0 and the algorithm a1 can be implemented by using machine learning algorithms, including the above-mentioned SVM algorithm and convolutional neural network model, which is not limited in the embodiment of the present disclosure.
  • the algorithm a0 can choose an algorithm with a fast operation speed and low accuracy requirements
  • the algorithm a1 can choose an algorithm with a slower operation speed but higher accuracy.
  • method 1 can be used to make a judgment using the result d0.
  • the user parks the target vehicle unreasonably one or more times and needs statistical data to decide whether to reduce its credit, he can use the high accuracy but slower method 2 and use the result d1 to make a judgment.
  • method 3 can be used for manual assistance determination, and the result d2 is used to make the determination.
  • the result d2 is generally more accurate, but the quantity is small and the cost is high.
  • the judgment rules need to be judged by experience. For example, the judge must first determine the area where the scooter is parked through GPS, use maps, personal experience, etc., to obtain the judgment basis for normal parking (such as a designated area on the roadside) and abnormal parking in the area, and then use the target vehicle in the image To determine the location.
  • the result d2 can be used as the truth value used for verification, and machine learning training can be carried out. Through continuous data accumulation, the accuracy of d0 and d1 can be improved.
  • the results of d0 and d1 in the above steps also include the degree of confidence in the judgment. You can decide whether to wait for the result of d1 according to the confidence of d0. When the confidence of d1 is also low, the result d2 can be obtained through manual judgment, which makes it easier to provide machine learning understanding of difficult scenarios.
  • the target parking position of the target vehicle after recognizing the target parking position of the target vehicle according to the image, it further includes: recognizing the environmental parameter of the target parking position according to the image, wherein the environmental parameter includes at least one of the following: whether there is a building block in the surrounding area, and whether there is a surrounding area Whether the public facilities are located in the designated parking area; when the environmental parameters of the target parking location meet the preset rules, it is determined that the standard parking location is located in the designated parking area.
  • the determining whether the target parking position is a compliant parking position by determining whether the target parking position is located in a designated parking area includes: determining whether the environmental parameters of the target parking position meet a preset rule , Determining whether the target parking location is located in the designated parking area; wherein, when the environmental parameters of the target parking location meet a preset rule, it is determined that the target parking location is located in the designated parking area, and then It is determined that the target parking position is a compliant parking position; when the environmental parameters of the target parking position do not meet the preset rules, it is determined that the target parking position is not located in the designated parking area, and then the The target docking position is a non-compliant docking position.
  • the method further includes: performing at least one of the following operations: sending the non-compliant parking position to a server; sending warning information, The warning information is used to prompt that the target parking position is a non-compliant parking position, and/or is used to prompt a designated parking area within a designated range from the target parking position.
  • the surrounding environment is dark and narrow, it may indicate that the parking location is in a relatively hidden place, which is a non-compliant parking location. If the parking area is wide and bright, but there are no public facilities around, it may indicate that the parking location is too remote and it is also an illegal parking location.
  • the designated stopping area can also be pre-set, and the stopping area can be divided according to GPS data.
  • the stopping area can be set with more eye-catching signs. As long as the target vehicle stops within the designated stopping area, it can be detected by GPS, even if it is not detected, It can also be identified by the logo included in the image.
  • the warning information can be directly sent by the target vehicle to the user’s client.
  • the client here can be a client used to connect to the target vehicle, or the target vehicle can send the warning information to the server. It is sent by the server to the user's client, which is not limited in the embodiment of the present disclosure.
  • capturing an image of the location of the target vehicle through an image capture device installed on the target vehicle includes: capturing a video image and/or photo image of the location of the target vehicle within a predetermined time period, where the target vehicle includes shared Transportation.
  • FIG. 3 is a flowchart of an alternative location compliance recognition method according to an embodiment of the present disclosure. As shown in FIG. 3, the method includes:
  • Step S302 in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
  • Step S304 Send the image to the server, so that the server recognizes the target parking position of the target vehicle according to the image;
  • Step S306 receiving the target parking position returned by the server
  • step S308 it is determined whether the target parking position is a compliant parking position by determining whether the target parking position is located in the designated parking area.
  • FIG. 4 is a flowchart of another optional location compliance recognition method according to an embodiment of the present disclosure. As shown in FIG. 4, the method includes:
  • Step S402 Acquire an image sent by the target vehicle, where the image is an image of the location of the target vehicle collected by the image acquisition device installed on the target vehicle when the parking instruction is detected by the target vehicle.
  • the image acquisition device installed on the target vehicle when the parking instruction is detected by the target vehicle.
  • Step S404 Identify the target stopping position of the target vehicle according to the image
  • Step S406 Send the identified target parking location to the target vehicle, so that the target vehicle determines whether the target parking location is a compliant parking location by judging whether the target parking location is located in the designated parking area.
  • recognizing the target stopping position of the target vehicle according to the image includes: extracting a second image feature in the image; and inputting the second image characteristic into a second positioning model to identify the target stopping position.
  • the second positioning model here can use the same algorithm as the first positioning model, and the content already described will not be repeated here.
  • the result output by the second positioning model can be the identified target stopping position, or the judgment result of whether the target stopping position is located in the designated stopping area, or whether the target stopping position is a compliant stopping position
  • the result of the judgment that is, the image recognition process and the judgment process of the compliant parking position can be executed on the server side, which is not limited in the embodiment of the present disclosure.
  • the second positioning model can also output the probability value of the target stopping position in the designated stopping area, or the probability value of the target stopping position being a compliant stopping position, and then output the probability Send the value to the target vehicle.
  • Fig. 5 is a flowchart of another optional location compliance recognition method according to an embodiment of the present disclosure. As shown in Fig. 5, the method includes:
  • the user 50 triggers a parking instruction for the target vehicle 52;
  • the target vehicle 52 After receiving the parking instruction, the target vehicle 52 uses its own installed image acquisition device to collect an image of the location of the target vehicle;
  • S503 The target vehicle 52 sends the image to the server 54;
  • S504 The server 54 recognizes the target stopping position of the target vehicle 52 according to the image
  • S505 The server 54 sends the identified target stopping position to the target vehicle 52;
  • the target vehicle 52 determines whether the target parking position is a compliant parking position by judging whether the target parking position is located in the designated parking area;
  • the target vehicle 52 After the target vehicle 52 recognizes the result, it can give the user 50 a feedback. If it is a compliant parking location, execute the parking instruction, complete the parking and end the use process of the target vehicle, if it is a non-compliant parking location, no The execution of the parking instruction does not end the use process of the target vehicle, and can send a prompt message to the user to remind the user that the current parking location is not compliant, and provide a designated parking area nearby.
  • the embodiments of the present disclosure also provide a location compliance recognition device, which is used to implement the foregoing location compliance recognition method embodiments and preferred implementations, and those that have been described will not be repeated.
  • the term "module” can implement a combination of software and/or hardware with predetermined functions.
  • the devices described in the following embodiments are preferably implemented by software, hardware or a combination of software and hardware is also possible and conceived.
  • Fig. 6 is a structural block diagram of an optional location compliance recognition device according to an embodiment of the present disclosure. As shown in Fig. 6, the device includes:
  • the first collection module 602 is configured to collect an image of the location of the target vehicle through an image collection device installed on the target vehicle in the case of detecting a parking instruction indicating that the target vehicle has stopped;
  • the first recognition module 604 is configured to recognize the target parking position of the target vehicle according to the image
  • the first determining module 606 is used to determine whether the target parking position is a compliant parking position by determining whether the target parking position is located in the designated parking area.
  • the first recognition module 604 includes: a first extraction unit for extracting the first image feature in the image; a first input unit for inputting the first image feature into the first positioning model to identify the target stopping position .
  • the first recognition module 604 includes: a sending unit, configured to send the image to the server, so that the server recognizes the target parking position of the target vehicle in the image.
  • the device further includes: a third recognition module for recognizing the environmental parameters of the target parking position according to the image, wherein the environmental parameters include at least one of the following: whether there are buildings obstructing the surrounding area, whether there are public facilities nearby, Whether it is located in the designated parking area; the third determining module is used to determine that the target parking location is located in the designated parking area when the environmental parameters of the target parking location meet the preset rules.
  • the environmental parameters include at least one of the following: whether there are buildings obstructing the surrounding area, whether there are public facilities nearby, Whether it is located in the designated parking area; the third determining module is used to determine that the target parking location is located in the designated parking area when the environmental parameters of the target parking location meet the preset rules.
  • the first determining module 606 is further configured to determine that the target parking position is located in the designated parking area when the environmental parameters of the target parking position meet a preset rule, and then determine the target parking position The parking location is a compliant parking location; when the environmental parameters of the target parking location do not meet the preset rules, it is determined that the target parking location is not located in the designated parking area, and then the target parking location is determined to be Non-compliant docking location.
  • the device further includes: an execution module configured to perform at least one of the following operations: sending the non-compliant parking location to the server; sending warning information, wherein the warning information is used to prompt the target
  • the docking position is a non-compliant docking position, and/or used to prompt a designated docking area within a designated range from the target docking position.
  • the first collection module 602 includes: a collection unit configured to collect a video image and/or a photo image of the location of the target vehicle within a predetermined time period, where the target vehicle includes a shared vehicle.
  • Fig. 7 is a structural block diagram of another optional location compliance recognition device according to an embodiment of the present disclosure. As shown in Fig. 7, the device includes:
  • the second acquisition module 702 is configured to collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle in the case of detecting a parking instruction indicating that the target vehicle has stopped;
  • the first sending module 704 is configured to send the image to the server, so that the server can recognize the target parking position of the target vehicle according to the image;
  • the receiving module 706 is used to receive the target parking position returned by the server
  • the second determining module 708 is used for determining whether the target parking position is a compliant parking position by determining whether the target parking position is located in the designated parking area.
  • Fig. 8 is a structural block diagram of an optional location compliance recognition device according to an embodiment of the present disclosure. As shown in Fig. 8, the device includes:
  • the acquisition module 802 is used to acquire the image sent by the target vehicle, where the image is the image of the location of the target vehicle collected by the image acquisition device installed on the target vehicle when the target vehicle detects the parking instruction,
  • the stop instruction is used to indicate that the target vehicle has stopped;
  • the second recognition module 804 is configured to recognize the target stopping position of the target vehicle according to the image
  • the second sending module 806 is configured to send the identified target parking location to the target vehicle, so that the target vehicle determines whether the target parking location is a compliant parking by judging whether the target parking location is in a designated parking area position.
  • the second recognition module 804 includes: a second extraction unit for extracting the second image feature in the image; a second input unit for inputting the second image feature into the second positioning model to identify the target stopping position .
  • the second positioning model here can use the same algorithm as the first positioning model, and the content already described will not be repeated here.
  • the embodiments of the present disclosure also provide a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any one of the foregoing method embodiments when running.
  • the computer-readable storage medium is a non-volatile computer-readable storage medium.
  • the foregoing storage medium may be configured to store a computer program for executing the following steps:
  • S1 in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
  • S3 Determine whether the target parking position is a compliant parking position by judging whether the target parking position is located in the designated parking area.
  • the foregoing storage medium may also be configured to store a computer program for executing the following steps:
  • S11 in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
  • S14 Determine whether the target parking position is a compliant parking position by judging whether the target parking position is located in a designated parking area.
  • the foregoing storage medium may also be configured to store a computer program for executing the following steps:
  • S21 Acquire an image sent by the target vehicle, where the image is an image of the location of the target vehicle collected by an image acquisition device installed on the target vehicle when the target vehicle detects a parking instruction, and the parking instruction is used for Indicate that the target vehicle has stopped;
  • S23 Send the identified target parking location to the target vehicle, so that the target vehicle determines whether the target parking location is a compliant parking by judging whether the target parking location is located in a designated parking area. position.
  • the above-mentioned storage medium may include, but is not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), Various media that can store computer programs, such as mobile hard disks, magnetic disks, or optical disks.
  • An embodiment of the present disclosure also provides an electronic device, including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the foregoing method embodiments.
  • the aforementioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the aforementioned processor, and the input-output device is connected to the aforementioned processor.
  • the foregoing processor may be configured to execute the following steps through a computer program:
  • S1 in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
  • S3 Determine whether the target parking position is a compliant parking position by judging whether the target parking position is located in the designated parking area.
  • the foregoing processor may be configured to execute the following steps through a computer program:
  • S11 in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
  • S12 Send an image to a server, so that the server recognizes the target parking position of the target vehicle according to the image;
  • S14 Determine whether the target parking position is a compliant parking position by judging whether the target parking position is located in the designated parking area.
  • the foregoing processor may be configured to execute the following steps through a computer program:
  • S21 Acquire an image sent by the target vehicle, where the image is an image of the location of the target vehicle collected by the image acquisition device installed on the target vehicle when the target vehicle detects the parking instruction, and the parking instruction is used for Indicate that the target vehicle has stopped;
  • S23 Send the identified target parking location to the target vehicle, so that the target vehicle determines whether the target parking location is a compliant parking location by determining whether the target parking location is located in a designated parking area.
  • modules or steps of the present disclosure can be implemented by a general computing device, and they can be concentrated on a single computing device or distributed in a network composed of multiple computing devices.
  • they can be implemented with program codes executable by the computing device, so that they can be stored in the storage device for execution by the computing device, and in some cases, can be executed in a different order than here.

Abstract

Provided are a position compliance recognition method and apparatus, a storage medium and an electronic apparatus. The method comprises: collecting an image of a position where a target vehicle is located by means of an image collection device installed on the target vehicle insofar as a parking instruction for indicating that the target vehicle is parked is detected (S202); recognizing a target parking position of the target vehicle according to the image (S204); and determining whether the target parking position is a compliant parking position or not by means of determining whether the target parking position is located in a designated parking area or not (S206). The invention solves the problem in the prior art that whether a parking place of a shared vehicle is appropriate cannot be accurately recognized.

Description

位置合规识别方法及装置、存储介质、电子装置Location compliance identification method and device, storage medium and electronic device 技术领域Technical field
本公开涉及数据处理技术领域,具体而言,涉及一种位置合规识别方法及装置、存储介质、电子装置。The present disclosure relates to the field of data processing technology, and in particular, to a location compliance recognition method and device, storage medium, and electronic device.
背景技术Background technique
目前市面流通的共享交通工具,一般是通过其内部安装的全球定位系统(Global Positioning System,简称为GPS)或惯性测量单元(Inertial Measurement Unit,简称为IMU)识别停靠位置。但是这种识别方法精度不高,无法精准识别出共享交通工具是否停靠在合适的地点。Currently, shared transportation vehicles circulating in the market generally recognize the stopping position through the Global Positioning System (GPS) or Inertial Measurement Unit (IMU) installed inside. However, the accuracy of this recognition method is not high, and it cannot accurately identify whether the shared vehicle is parked at a suitable place.
针对相关技术中,无法精准识别共享交通工具停靠地点是否合适的问题,目前尚未有合理的解决办法。Regarding the problem of the inability to accurately identify whether the parking place of a shared vehicle is appropriate in related technologies, there is currently no reasonable solution.
发明内容Summary of the invention
本公开实施例提供了一种位置合规识别方法及装置、存储介质、电子装置,以至少解决相关技术中无法精准识别共享交通工具停靠地点是否合适的问题。The embodiments of the present disclosure provide a location compliance recognition method and device, a storage medium, and an electronic device, so as to at least solve the problem in the related art that it is impossible to accurately recognize whether the parking place of a shared vehicle is appropriate.
根据本公开的一个实施例,提供了一种位置合规识别方法,包括:在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像;根据所述图像识别所述目标交通工具的目标停靠位置;通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置。According to an embodiment of the present disclosure, there is provided a location compliance recognition method, including: in the case of detecting a parking instruction indicating that a target vehicle has stopped, using an image capture device installed on the target vehicle Collect an image of the location of the target vehicle; identify the target parking location of the target vehicle based on the image; determine whether the target parking location is a compliant parking by judging whether the target parking location is located in a designated parking area position.
可选地,所述根据所述图像识别所述目标交通工具的目标停靠位置包括:提取所述图像中的第一图像特征;将所述第一图像特征输入第一定位模型,以识别所述目标停靠位置。Optionally, the recognizing the target parking position of the target vehicle according to the image includes: extracting a first image feature in the image; and inputting the first image feature into a first positioning model to identify the The target docking position.
可选地,在根据所述图像识别所述目标交通工具的目标停靠位置之后, 还包括:根据所述图像识别所述目标停靠位置的环境参数,其中,所述环境参数至少包括以下之一:周边是否存在建筑物遮挡、周边是否存在公共设施、是否位于所述指定停靠区域的范围内。Optionally, after recognizing the target parking position of the target vehicle according to the image, the method further includes: recognizing environmental parameters of the target parking position according to the image, wherein the environmental parameters include at least one of the following: Whether there are buildings blocking the surrounding area, whether there are public facilities in the surrounding area, and whether it is located within the designated parking area.
可选地,所述通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置包括:当所述目标停靠位置的环境参数满足预先设定的规则的情况下,确定所述目标停靠位置位于所述指定停靠区域,进而确定所述目标停靠位置为合规停靠位置;当所述目标停靠位置的环境参数不满足预先设定的规则的情况下,确定所述目标停靠位置不位于所述指定停靠区域,进而确定所述目标停靠位置为不合规停靠位置。Optionally, the determining whether the target parking location is a compliant parking location by determining whether the target parking location is located in a designated parking area includes: when the environmental parameters of the target parking location meet a preset rule Next, determine that the target parking position is located in the designated parking area, and then determine that the target parking position is a compliant parking position; when the environmental parameters of the target parking position do not meet the preset rules, determine the The target parking position is not located in the designated parking area, and it is determined that the target parking position is a non-compliant parking position.
可选地,所述确定所述目标停靠位置为不合规停靠位置之后,所述方法还包括:执行以下至少之一的操作:将所述不合规停靠位置发送给服务器;发送警示信息,其中所述警示信息用于提示所述目标停靠位置为不合规停靠位置,和/或,用于提示距离所述目标停靠位置指定范围内的指定停靠区域。Optionally, after the determining that the target parking position is a non-compliant parking position, the method further includes: performing at least one of the following operations: sending the non-compliant parking position to a server; sending warning information, The warning information is used to prompt that the target parking position is a non-compliant parking position, and/or is used to prompt a designated parking area within a designated range from the target parking position.
可选地,所述通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像包括:在预定时间段内采集目标交通工具所在位置的视频图像和/或照片图像,其中,所述目标交通工具包括共享交通工具。Optionally, the collecting an image of the location of the target vehicle through an image acquisition device installed on the target vehicle includes: collecting a video image and/or a photo image of the location of the target vehicle within a predetermined time period, Wherein, the target vehicle includes a shared vehicle.
根据本公开的另一个实施例,还提供了一种位置合规识别方法,包括:在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像;将所述图像发送给服务器,以使所述服务器根据所述图像识别所述目标交通工具的目标停靠位置;接收所述服务器返回的所述目标停靠位置;通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置。According to another embodiment of the present disclosure, there is also provided a location compliance recognition method, including: in the case of detecting a parking instruction indicating that the target vehicle has stopped, using an image installed on the target vehicle The collection device collects an image of the location of the target vehicle; sends the image to a server so that the server can recognize the target parking position of the target vehicle according to the image; receives the target returned by the server Parking position; determining whether the target parking position is a compliant parking position by determining whether the target parking position is located in a designated parking area.
根据本公开的另一个实施例,还提供了一种位置合规识别方法,包括: 获取目标交通工具发送的图像,其中,所述图像为所述目标交通工具在检测到停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集的所述目标交通工具所在位置的图像,所述停靠指令用于指示所述目标交通工具已停靠;根据所述图像识别所述目标交通工具的目标停靠位置;将识别出的所述目标停靠位置发送给所述目标交通工具,以使所述目标交通工具通过判断所述目标停靠位置是否位于指定停靠区域来确定所述目标停靠位置是否为合规停靠位置。According to another embodiment of the present disclosure, there is also provided a location compliance recognition method, including: acquiring an image sent by a target vehicle, where the image is that when the target vehicle detects a stop instruction, An image of the location of the target vehicle collected by the image acquisition device installed on the target vehicle, the parking instruction is used to indicate that the target vehicle has stopped; and the image of the target vehicle is identified The target parking position; the identified target parking position is sent to the target vehicle, so that the target vehicle determines whether the target parking position is a closed area by judging whether the target parking position is located in a designated parking area Regulation docking position.
可选地,所述根据所述图像识别所述目标交通工具的目标停靠位置包括:提取所述图像中的第二图像特征;将所述第二图像特征输入第二定位模型,以识别所述目标停靠位置。Optionally, the recognizing the target parking position of the target vehicle according to the image includes: extracting a second image feature in the image; and inputting the second image feature into a second positioning model to identify the The target docking position.
根据本公开的另一个实施例,还提供了一种位置合规识别装置,包括:第一采集模块,用于在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像;第一识别模块,用于根据所述图像识别所述目标交通工具的目标停靠位置;第一确定模块,用于通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置。According to another embodiment of the present disclosure, there is also provided a location compliance recognition device, including: a first collection module, configured to pass the said stop instruction when the stop instruction indicating that the target vehicle has stopped is detected The image acquisition device installed on the target vehicle collects an image of the location of the target vehicle; the first recognition module is used to identify the target parking position of the target vehicle according to the image; the first determination module is used to pass Determine whether the target parking position is located in a designated parking area, and determine whether the target parking position is a compliant parking position.
可选地,所述识别模块包括:第一提取单元,用于提取所述图像中的第一图像特征;第一输入单元,用于将所述第一图像特征输入第一定位模型,以识别所述目标停靠位置。Optionally, the recognition module includes: a first extraction unit for extracting a first image feature in the image; a first input unit for inputting the first image feature into a first positioning model to identify The target docking position.
可选地,所述装置还包括:第三识别模块,用于根据所述图像识别所述目标停靠位置的环境参数,其中,所述环境参数至少包括以下之一:周边是否存在建筑物遮挡、周边是否存在公共设施、是否位于所述指定停靠区域的范围内。Optionally, the device further includes: a third recognition module for recognizing environmental parameters of the target parking position according to the image, wherein the environmental parameters include at least one of the following: whether there are buildings around, Whether there are public facilities in the surrounding area and whether they are located within the designated stopping area.
可选地,所述第一确定模块用于:当所述目标停靠位置的环境参数满足预先设定的规则的情况下,确定所述目标停靠位置位于所述指定停靠区域,进而确定所述目标停靠位置为合规停靠位置;当所述目标停靠位置的环境参数不满足预先设定的规则的情况下,确定所述目标停靠位置不位于 所述指定停靠区域,进而确定所述目标停靠位置为不合规停靠位置。Optionally, the first determination module is configured to determine that the target parking position is located in the designated parking area when the environmental parameters of the target parking position meet a preset rule, and then determine the target The parking location is a compliant parking location; when the environmental parameters of the target parking location do not meet the preset rules, it is determined that the target parking location is not located in the designated parking area, and then the target parking location is determined to be Non-compliant docking location.
可选地,所述装置还包括:执行模块,用于在所述确定所述目标停靠位置为不合规停靠位置之后,执行以下至少之一的操作:将所述不合规停靠位置发送给服务器;发送警示信息,其中所述警示信息用于提示所述目标停靠位置为不合规停靠位置,和/或,用于提示距离所述目标停靠位置指定范围内的指定停靠区域。Optionally, the device further includes: an execution module, configured to perform at least one of the following operations after determining that the target parking position is a non-compliant parking position: sending the non-compliant parking position to Server; sending warning information, wherein the warning information is used to prompt that the target parking location is a non-compliant parking location, and/or used to prompt a designated parking area within a specified range from the target parking location.
可选地,所述第一采集模块包括:采集单元,用于在预定时间段内采集目标交通工具所在位置的视频图像和/或照片图像,其中,所述目标交通工具包括共享交通工具。Optionally, the first collection module includes: a collection unit configured to collect a video image and/or a photo image of the location of the target vehicle within a predetermined period of time, wherein the target vehicle includes a shared vehicle.
根据本公开的另一个实施例,还提供了一种位置合规识别装置,包括:第二采集模块,用于在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像;第一发送模块,用于将所述图像发送给服务器,以使所述服务器根据所述图像识别所述目标交通工具的目标停靠位置;接收模块,用于接收所述服务器返回的所述目标停靠位置;第二确定模块,用于通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置。According to another embodiment of the present disclosure, there is also provided a location compliance recognition device, including: a second acquisition module, configured to pass the said parking instruction when the parking instruction indicating that the target vehicle has stopped is detected The image acquisition device installed on the target vehicle collects an image of the location of the target vehicle; the first sending module is configured to send the image to the server so that the server can recognize the target vehicle based on the image The receiving module is used to receive the target stopping position returned by the server; the second determining module is used to determine whether the target stopping position is in the designated stopping area by judging whether the target stopping position is Compliant docking position.
根据本公开的另一个实施例,还提供了一种位置合规识别装置,包括:获取模块,用于获取目标交通工具发送的图像,其中,所述图像为所述目标交通工具在检测到停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集的所述目标交通工具所在位置的图像,所述停靠指令用于指示所述目标交通工具已停靠;第二识别模块,用于根据所述图像识别所述目标交通工具的目标停靠位置;第二发送模块,用于将识别出的所述目标停靠位置发送给所述目标交通工具,以使所述目标交通工具通过判断所述目标停靠位置是否位于指定停靠区域来确定所述目标停靠位置是否为合规停靠位置。According to another embodiment of the present disclosure, there is also provided a location compliance recognition device, including: an acquisition module, configured to acquire an image sent by a target vehicle, wherein the image shows that the target vehicle detects a stop In the case of an instruction, an image of the location of the target vehicle collected by an image acquisition device installed on the target vehicle, the parking instruction is used to indicate that the target vehicle has stopped; the second recognition module uses To identify the target parking position of the target vehicle according to the image; the second sending module is used to send the identified target parking position to the target vehicle so that the target vehicle can pass the judgment station Whether the target parking position is located in a designated parking area is used to determine whether the target parking position is a compliant parking position.
可选地,所述第二识别模块包括:第二提取单元,用于提取所述图像 中的第二图像特征;第二输入单元,用于将所述第二图像特征输入第二定位模型,以识别所述目标停靠位置。Optionally, the second recognition module includes: a second extraction unit for extracting a second image feature in the image; a second input unit for inputting the second image feature into a second positioning model, To identify the target docking position.
根据本公开的另一个实施例,还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to another embodiment of the present disclosure, there is also provided a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute any of the foregoing method embodiments when running A step of.
根据本公开的另一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to another embodiment of the present disclosure, there is also provided an electronic device including a memory and a processor, the memory is stored with a computer program, and the processor is configured to run the computer program to execute any of the above Steps in the method embodiment.
通过本公开实施例提供的位置合规识别方法及装置、存储介质、电子装置,在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集目标交通工具所在位置的图像;根据图像识别目标交通工具的目标停靠位置;通过判断目标停靠位置是否位于指定停靠区域,确定目标停靠位置是否为合规停靠位置,即通过目标交通工具自带的图像采集设备采集所在位置的图像然后进行识别,根据图像中显示的内容直观地判定当前停靠位置是否满足指定停靠区域的规则,进而确定是否为合规位置,解决了现有技术中无法精准识别共享交通工具停靠地点是否合适的问题,提高了针对共享交通工具停靠位置识别的精准度。Through the location compliance recognition method and device, storage medium, and electronic device provided by the embodiments of the present disclosure, in the case of detecting a parking instruction indicating that the target vehicle has stopped, the image acquisition device installed on the target vehicle is used to collect Image of the location of the target vehicle; identify the target parking location of the target vehicle based on the image; determine whether the target parking location is a compliant parking location by judging whether the target parking location is in the designated parking area, that is, through the image that comes with the target vehicle The collection device collects the image of the location and then recognizes it. According to the content displayed in the image, it intuitively determines whether the current parking location meets the rules of the designated parking area, and then determines whether it is a compliant location, which solves the inability to accurately identify shared traffic in the prior art The question of whether the parking place of the tool is appropriate has improved the accuracy of identifying the parking location of shared vehicles.
附图说明Description of the drawings
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present disclosure and constitute a part of the present application. The exemplary embodiments of the present disclosure and their descriptions are used to explain the present disclosure, and do not constitute an improper limitation of the present disclosure. In the attached picture:
图1是本公开实施例的一种可选的位置合规识别方法的移动终端的硬件结构框图;FIG. 1 is a hardware structural block diagram of a mobile terminal of an optional location compliance identification method according to an embodiment of the present disclosure;
图2是本公开实施例的一种可选的位置合规识别方法的流程图;2 is a flowchart of an optional location compliance identification method according to an embodiment of the present disclosure;
图3是本公开实施例的另一种可选的位置合规识别方法的流程图;FIG. 3 is a flowchart of another optional location compliance recognition method according to an embodiment of the present disclosure;
图4是本公开实施例的另一种可选的位置合规识别方法的流程图;FIG. 4 is a flowchart of another optional location compliance recognition method according to an embodiment of the present disclosure;
图5是本公开实施例的另一种可选的位置合规识别方法的流程图;FIG. 5 is a flowchart of another optional location compliance recognition method according to an embodiment of the present disclosure;
图6是根据本公开实施例的一种可选的位置合规识别装置的结构框图;6 is a structural block diagram of an optional location compliance recognition device according to an embodiment of the present disclosure;
图7是根据本公开实施例的另一种可选的位置合规识别装置的结构框图;Fig. 7 is a structural block diagram of another optional location compliance recognition device according to an embodiment of the present disclosure;
图8是根据本公开实施例的另一种可选的位置合规识别装置的结构框图。Fig. 8 is a structural block diagram of another optional location compliance recognition device according to an embodiment of the present disclosure.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present disclosure will be described in detail with reference to the drawings and in conjunction with embodiments. It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other if there is no conflict.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
实施例1Example 1
本申请实施例一所提供的位置合规识别方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本公开实施例的一种位置合规识别方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,可选地,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The location compliance recognition method embodiment provided in the first embodiment of the present application may be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, FIG. 1 is a hardware structural block diagram of a mobile terminal of a location compliance identification method according to an embodiment of the present disclosure. As shown in FIG. 1, the mobile terminal 10 may include one or more (only one is shown in FIG. 1) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. ) And a memory 104 for storing data. Optionally, the above mobile terminal may also include a transmission device 106 and an input/output device 108 for communication functions. Those of ordinary skill in the art can understand that the structure shown in FIG. 1 is only for illustration, and does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration from that shown in FIG.
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的调度吞吐量的获取方法对应的计算机程序,处 理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as the computer programs corresponding to the method for obtaining scheduling throughput in the embodiments of the present disclosure. The processor 102 runs the computer programs stored in the memory 104, Thereby, various functional applications and data processing are executed, that is, the above-mentioned method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely provided with respect to the processor 102, and these remote memories may be connected to the mobile terminal 10 via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used to receive or send data via a network. The above-mentioned specific example of the network may include a wireless network provided by the communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet. In an example, the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
本公开实施例提供了一种位置合规识别方法。图2是本公开实施例的一种可选的位置合规识别方法的流程图,如图2所示,该方法包括:The embodiment of the present disclosure provides a location compliance identification method. FIG. 2 is a flowchart of an optional location compliance identification method according to an embodiment of the present disclosure. As shown in FIG. 2, the method includes:
步骤S202,在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集目标交通工具所在位置的图像;Step S202, in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
步骤S204,根据图像识别目标交通工具的目标停靠位置;Step S204: Identify the target stopping position of the target vehicle according to the image;
步骤S206,通过判断目标停靠位置是否位于指定停靠区域,确定目标停靠位置是否为合规停靠位置。Step S206: Determine whether the target parking position is a compliant parking position by determining whether the target parking position is located in the designated parking area.
通过上述方法,在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集目标交通工具所在位置的图像;根据图像识别目标交通工具的目标停靠位置;通过判断目标停靠位置是否位于指定停靠区域,确定目标停靠位置是否为合规停靠位置,即通过目标交通工具自带的图像采集设备采集所在位置的图像然后进行识别,根据图像中显示的内容直观地判定当前停靠位置是否满足指定停靠 区域的规则,进而确定是否为合规位置,解决了现有技术中无法精准识别共享交通工具停靠地点是否合适的问题,提高了针对共享交通工具停靠位置识别的精准度。Through the above method, in the case of detecting a parking instruction indicating that the target vehicle has stopped, an image of the location of the target vehicle is collected through the image acquisition device installed on the target vehicle; the target parking of the target vehicle is recognized according to the image Location: Determine whether the target parking location is a compliant parking location by judging whether the target parking location is in the designated parking area, that is, the image of the location is collected by the image capture device of the target vehicle and then recognized, based on the content displayed in the image Intuitively determine whether the current parking location meets the rules of the designated parking area, and then determine whether it is a compliant location, which solves the problem that the existing technology cannot accurately identify whether the parking location of shared vehicles is appropriate, and improves the recognition of the parking location of shared vehicles Accuracy.
可选地,本公开实施例中的目标交通工具可以包括但不限于任意共享交通工具,例如,共享单车、共享汽车、共享电动车、共享滑板车等。Optionally, the target vehicles in the embodiments of the present disclosure may include, but are not limited to, any shared vehicles, for example, shared bicycles, shared cars, shared electric vehicles, shared scooters, and the like.
可选地,在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集目标交通工具所在位置的图像可以通过以下步骤实现:当用户结束使用目标交通工具后,触发停靠指令,此处的停靠指令可以是用户将目标交通工具熄火或上锁后自动触发,也可以由用户主动触发。目标交通工具内部设置的单片机或芯片,检测到停靠指令后,触发目标交通工具上安装的图像采集设备进行拍照或录像,此处的镜头可以设置为广角镜头或景深较深的镜头,尽可能多地采集周边环境的图像信息。Optionally, in the case of detecting a parking instruction indicating that the target vehicle has stopped, collecting an image of the location of the target vehicle through an image acquisition device installed on the target vehicle can be achieved through the following steps: After the target vehicle, a parking instruction is triggered. The parking instruction here can be automatically triggered after the user turns off or locks the target vehicle, or it can be triggered by the user. The single-chip microcomputer or chip set inside the target vehicle will trigger the image capture device installed on the target vehicle to take a photo or video after detecting the parking instruction. The lens here can be set as a wide-angle lens or a lens with a deeper depth of field, as much as possible Collect image information of the surrounding environment.
可选地,根据图像识别目标交通工具的目标停靠位置可以通过以下步骤实现:Optionally, recognizing the target stopping position of the target vehicle according to the image can be achieved through the following steps:
S1,提取图像中的第一图像特征;S1, extract the first image feature in the image;
S2,将第一图像特征输入第一定位模型,以识别目标停靠位置。S2: Input the first image feature into the first positioning model to identify the target stopping position.
此处的第一定位模型可以是任意二分类算法模型。其输入为目标交通工具的传感器数据,包括但不限于拍摄的图像和当前停靠位置的GPS数据,输出为一个在0到1之间的判定结果。需要说明的是,通过第一定位模型输出的结果,可以是识别出的目标停靠位置,也可以是目标停靠位置是否位于指定停靠区域的判断结果,也可以是目标停靠位置是否为合规停靠位置的判断结果,也可以输出目标停靠位置位于指定停靠区域的概率值,或目标停靠位置为合规停靠位置的概率值,然后根据得到的概率值判断是否为合规停靠位置,本公开实施例对此不做限定。The first positioning model here can be any two classification algorithm model. The input is the sensor data of the target vehicle, including but not limited to the captured image and GPS data of the current stop position, and the output is a determination result between 0 and 1. It should be noted that the result output by the first positioning model can be the identified target stopping position, or the judgment result of whether the target stopping position is located in the designated stopping area, or whether the target stopping position is a compliant stopping position The result of the judgment can also output the probability value of the target parking location in the designated parking area, or the probability value of the target parking location being a compliant parking location, and then judging whether it is a compliant parking location based on the obtained probability value. This is not limited.
此处的第一定位模型可以通过支持向量机(Support Vector Machine,简称为SVM)算法的实现:首先准备训练数据,即已知的合理或不合理的停 放照片以及其判定,在图像中进行特征检测,使用例如harris、DOG等检测方法,在对特征位置提取特征描述字,例如SIFT、Brief等,每张图像构建词袋(Bag of words)的特征描述,对应其判定结果,使用svm训练回归出特征与判定的对应。每次得到一张新图片时,首先对图片进行特征提取,然后使用SVM的分类器判定是否为合规停放位置。Svm算法的优势是运算较快,因此适合在目标交通工具内部运行,占用内存较小,运算快,可以及时得出结果。The first positioning model here can be implemented by the Support Vector Machine (SVM) algorithm: first prepare training data, that is, known reasonable or unreasonable parking photos and their judgments, and perform features in the image Detection, using detection methods such as harris, DOG, etc., extracting feature description words from feature locations, such as SIFT, Brief, etc., construct a bag of words feature description for each image, and use svm to train regression according to the judgment result Find the correspondence between features and judgments. Every time a new picture is obtained, the picture is first extracted with features, and then the SVM classifier is used to determine whether it is a compliant parking position. The advantage of the Svm algorithm is that the calculation is faster, so it is suitable for running inside the target vehicle, it occupies a small memory, the calculation is fast, and the result can be obtained in time.
其中,Harris角点检测原理是利用移动的窗口在图像中计算灰度变化值,其中关键流程包括转化为灰度图像、计算差分图像、高斯平滑、计算局部极值、确认角点。DOG(Difference of Gaussian)是灰度图像增强和角点检测的方法。SIFT,即尺度不变特征变换(Scale-invariant feature transform,简称为SIFT),是用于图像处理领域的一种描述。这种描述具有尺度不变性,可在图像中检测出关键点,是一种局部特征描述子。BRIEF是2010年的一篇名为《BRIEF:Binary Robust Independent Elementary Features》的文章中提出,BRIEF是对已检测到的特征点进行描述,它是一种二进制编码的描述子,摈弃了利用区域灰度直方图描述特征点的传统方法,大大的加快了特征描述符建立的速度,同时也极大的降低了特征匹配的时间。Among them, the principle of Harris corner detection is to use a moving window to calculate the gray change value in the image. The key process includes converting to gray image, calculating difference image, Gaussian smoothing, calculating local extremum, and confirming corners. DOG (Difference of Gaussian) is a method of gray image enhancement and corner detection. SIFT, namely Scale-invariant feature transform (SIFT), is a description used in the field of image processing. This description is scale-invariant, can detect key points in the image, and is a local feature descriptor. BRIEF is a 2010 article named "BRIEF: Binary Robust Independent Elementary Features". BRIEF is a description of the detected feature points. It is a binary-coded descriptor that discards the use of regional gray. The traditional method of describing feature points with degree histogram greatly speeds up the establishment of feature descriptors, and also greatly reduces the time for feature matching.
词袋模型(Bag-of-words model)是个在自然语言处理和信息检索(IR)下被简化的表达模型,在信息检索中,Bag of words model假定对于一个文本,忽略其词序和语法、句法,将其仅仅看做是一个词集合,或者说是词的一个组合,文本中每个词的出现都是独立的,不依赖于其他词是否出现,或者说在任意一个位置选择一个词汇都不受前面句子的影响而独立选择的。Bag-of-words model (Bag-of-words model) is a simplified expression model under natural language processing and information retrieval (IR). In information retrieval, Bag-of-words model assumes that for a text, its word order, grammar and syntax are ignored , Regard it as just a word set, or a combination of words, the appearance of each word in the text is independent, and it does not depend on whether other words appear or not, or it is not necessary to select a word at any position Selected independently by the influence of the previous sentence.
Bag of words来表示图像的特征描述可以这样理解,假设有5类图像,每一类中有10幅图像,这样首先对每一幅图像划分成patch(可以是刚性分割也可以是像SIFT基于关键点检测的),这样,每一个图像就由很多个patch表示,每一个patch用一个特征向量来表示,咱就假设用Sift表示的,一幅图像可能会有成百上千个patch,每一个patch特征向量的维数128。 接下来构建Bag of words模型,假设Dictionary词典的Size为100,即有100个词。那么可以用K-means算法对所有的patch进行聚类,k=100,等k-means收敛时,得到每一个cluster最后的质心,那么这100个质心(维数128)就是词典里德100个词了,词典构建完成。词典构建完后,先初始化一个100个bin的初始值为0的直方图h。每一幅图像有很多patch,再次计算这些patch和和每一个质心的距离,看看每一个patch离哪一个质心最近,那么直方图h中相对应的bin就加1,然后计算完这幅图像所有的patches之后,就得到了一个bin=100的直方图,然后进行归一化,用这个100维的向量来表示这幅图像。对所有图像计算完成之后,就可以进行分类聚类训练预测了。Bag of words to represent the feature description of the image can be understood in this way. Suppose there are 5 categories of images, and there are 10 images in each category. In this way, each image is first divided into patches (it can be rigid segmentation or it can be based on SIFT key Point detection), in this way, each image is represented by many patches, and each patch is represented by a feature vector. Let's assume that it is represented by Sift. An image may have hundreds of patches, each The dimension of the patch feature vector is 128. Next, build a Bag of words model, assuming that the Size of the Dictionary is 100, that is, there are 100 words. Then you can use the K-means algorithm to cluster all patches, k=100, when k-means converges, get the final centroid of each cluster, then these 100 centroids (dimension 128) are the 100 in the dictionary Words are over, and the dictionary is built. After the dictionary is constructed, first initialize a histogram h of 100 bins with an initial value of 0. There are many patches in each image, calculate the distance between these patches and each centroid again, and see which centroid is closest to each patch, then the corresponding bin in the histogram h is increased by 1, and then the image is calculated. After all the patches, a histogram with bin=100 is obtained, and then normalized, using this 100-dimensional vector to represent the image. After the calculation of all images is completed, classification and clustering training and prediction can be performed.
此处的第一定位模型也可以通过卷积神经网络实现,首先准备图片及其是否合理停放的判定的结果,设计卷积神经网络,例如vgg,resnet,mobilenet等,最后将网络提取的特征对应一个停放合理与否的判定标签head,回归出0到1之间的预测值。The first positioning model here can also be implemented by a convolutional neural network. First, prepare the picture and the result of determining whether it is reasonably parked, design the convolutional neural network, such as vgg, resnet, mobilenet, etc., and finally correspond to the features extracted by the network A label head that determines whether parking is reasonable or not, returns a predicted value between 0 and 1.
由于停放合理判定是一个经典的图像分类问题,即一张图像对应一个是否的二分类判定结果,还有许多其他可以使用的、通用的机器学习方法进行判定,本公开实施例对此不作限定。Since parking reasonable judgment is a classic image classification problem, that is, an image corresponds to a binary classification judgment result of whether or not, there are many other general machine learning methods that can be used for judgment, which is not limited in the embodiment of the present disclosure.
可选地,根据图像识别目标交通工具的目标停靠位置还可以通过以下步骤实现:将图像发送给服务器,以使服务器识别图像中目标交通工具的目标停靠位置。Optionally, recognizing the target parking position of the target vehicle according to the image can also be achieved by the following steps: sending the image to the server, so that the server recognizes the target parking position of the target vehicle in the image.
需要说明的是,对图像进行识别可以通过以下三种方式进行:It should be noted that image recognition can be done in the following three ways:
1、通过目标交通工具机体内部署的算法a0判定是否为合理停放位置,得到判定结果d0。1. The algorithm a0 deployed in the body of the target vehicle is used to determine whether it is a reasonable parking position, and the determination result d0 is obtained.
2.将图像通过无线网络上传到云端服务器,在云端通过算法a1判定是否为合理停放位置,得到判定d1。2. Upload the image to the cloud server through the wireless network, and determine whether it is a reasonable parking position in the cloud through the algorithm a1, and get the judgment d1.
3.图像由后台使用者,在GPS的辅助信息下,通过肉眼观察,参考预设规则,判定是否为合理位置,结果为d2。3. The image is determined by the background user, under the auxiliary information of GPS, through naked eye observation, referring to the preset rules, and the result is d2.
其中,算法a0和算法a1可以使用通过的机器学习算法实现,包括上述SVM算法和卷积神经网络模型,本公开实施例对此不作限定。为了更好地匹配应用场景,算法a0可以选择运算速度快而对精度要求不高的算法,算法a1可以选择运算速度较慢但精度较高的算法。Among them, the algorithm a0 and the algorithm a1 can be implemented by using machine learning algorithms, including the above-mentioned SVM algorithm and convolutional neural network model, which is not limited in the embodiment of the present disclosure. In order to better match the application scenario, the algorithm a0 can choose an algorithm with a fast operation speed and low accuracy requirements, and the algorithm a1 can choose an algorithm with a slower operation speed but higher accuracy.
根据不同的业务场景需求可以选择不同的判定方式。例如,当停放位置不合理则无法正常还车结束行程时,为了保证快速给出判定结果,可以采用方式1,使用结果d0做出判断。当用户一次或多次不合理停放目标交通工具,需要统计数据决定是否降低其信用度时,可以使用准确率高但速度较慢的方式2,使用结果d1做出判断。当用户认为已正常停车,但判定为不合理停车的争议判定时,可以采用方式3进行人工辅助判定,使用结果d2做出判断。Different judgment methods can be selected according to the requirements of different business scenarios. For example, when the parking position is unreasonable and the car cannot be returned to the end of the trip, in order to ensure that the judgment result is given quickly, method 1 can be used to make a judgment using the result d0. When the user parks the target vehicle unreasonably one or more times and needs statistical data to decide whether to reduce its credit, he can use the high accuracy but slower method 2 and use the result d1 to make a judgment. When the user thinks that he has parked normally, but is determined to be an unreasonable parking dispute determination, method 3 can be used for manual assistance determination, and the result d2 is used to make the determination.
其中结果d2一般较为准确,但数量少,成本高,其判定规则需要通过经验判定。例如判定者首先要通过GPS确定滑板车停放的区域,使用地图、个人经验等,得到该区域的正常停放(例如路边指定区域)和非正常停放的判断依据,然后通过图像中目标交通工具所在的位置,进行判定。Among them, the result d2 is generally more accurate, but the quantity is small and the cost is high. The judgment rules need to be judged by experience. For example, the judge must first determine the area where the scooter is parked through GPS, use maps, personal experience, etc., to obtain the judgment basis for normal parking (such as a designated area on the roadside) and abnormal parking in the area, and then use the target vehicle in the image To determine the location.
在方式1和方式2的算法中,可以使用结果d2作为验证使用的真值,进行机器学习的训练,通过不断的数据积累,提高d0与d1的正确率。In the algorithm of method 1 and method 2, the result d2 can be used as the truth value used for verification, and machine learning training can be carried out. Through continuous data accumulation, the accuracy of d0 and d1 can be improved.
d0与d1两种结果,由于计算资源的不同,也会存在d1较d0更加准确的情况,一般同时考虑d0、d1的结果做判定,但当存在网络困难、或延迟较大时,也可以只用d0的结果。There are two results of d0 and d1. Due to different computing resources, d1 may be more accurate than d0. Generally, the results of d0 and d1 are considered at the same time to make judgments. However, when there is network difficulty or large delay, it can only Use the result of d0.
上述步骤中d0、d1的结果,还包括了对判定的置信程度。可以根据d0的置信度决定是否等待d1的结果进行判断。当d1的置信度也较低时,可以通过人工判断得到结果d2,从而更容易提供机器学习对于困难场景的理解。The results of d0 and d1 in the above steps also include the degree of confidence in the judgment. You can decide whether to wait for the result of d1 according to the confidence of d0. When the confidence of d1 is also low, the result d2 can be obtained through manual judgment, which makes it easier to provide machine learning understanding of difficult scenarios.
可选地,在根据图像识别目标交通工具的目标停靠位置之后,还包括:根据图像识别目标停靠位置的环境参数,其中,环境参数至少包括以下之一:周边是否存在建筑物遮挡、周边是否存在公共设施、是否位于指定停 靠区域的范围内;目标停靠位置的环境参数满足预先设定的规则时,确定所述标停靠位置位于指定停靠区域。Optionally, after recognizing the target parking position of the target vehicle according to the image, it further includes: recognizing the environmental parameter of the target parking position according to the image, wherein the environmental parameter includes at least one of the following: whether there is a building block in the surrounding area, and whether there is a surrounding area Whether the public facilities are located in the designated parking area; when the environmental parameters of the target parking location meet the preset rules, it is determined that the standard parking location is located in the designated parking area.
可选地,所述通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置包括:通过判断所述目标停靠位置的环境参数是否满足预先设定的规则,确定所述目标停靠位置是否位于所述指定停靠区域;其中,当所述目标停靠位置的环境参数满足预先设定的规则的情况下,确定所述目标停靠位置位于所述指定停靠区域,进而确定所述目标停靠位置为合规停靠位置;当所述目标停靠位置的环境参数不满足预先设定的规则的情况下,确定所述目标停靠位置不位于所述指定停靠区域,进而确定所述目标停靠位置为不合规停靠位置。Optionally, the determining whether the target parking position is a compliant parking position by determining whether the target parking position is located in a designated parking area includes: determining whether the environmental parameters of the target parking position meet a preset rule , Determining whether the target parking location is located in the designated parking area; wherein, when the environmental parameters of the target parking location meet a preset rule, it is determined that the target parking location is located in the designated parking area, and then It is determined that the target parking position is a compliant parking position; when the environmental parameters of the target parking position do not meet the preset rules, it is determined that the target parking position is not located in the designated parking area, and then the The target docking position is a non-compliant docking position.
可选地,所述确定所述目标停靠位置为不合规停靠位置之后,所述方法还包括:执行以下至少之一的操作:将所述不合规停靠位置发送给服务器;发送警示信息,其中所述警示信息用于提示所述目标停靠位置为不合规停靠位置,和/或,用于提示距离所述目标停靠位置指定范围内的指定停靠区域。Optionally, after the determining that the target parking position is a non-compliant parking position, the method further includes: performing at least one of the following operations: sending the non-compliant parking position to a server; sending warning information, The warning information is used to prompt that the target parking position is a non-compliant parking position, and/or is used to prompt a designated parking area within a designated range from the target parking position.
如果周边环境阴暗狭窄,可能说明停靠位置在较为隐蔽的地方,属于不合规的停靠位置。如果停靠区域宽阔明亮,但周边没有任何公共设施,可能说明停靠位置过于偏僻,也属于不合规的停靠位置。If the surrounding environment is dark and narrow, it may indicate that the parking location is in a relatively hidden place, which is a non-compliant parking location. If the parking area is wide and bright, but there are no public facilities around, it may indicate that the parking location is too remote and it is also an illegal parking location.
也可以预先设定好指定停靠区域,根据GPS数据划分出停靠范围,停靠区域可以设置较为醒目的标志,只要目标交通工具停靠在指定停靠区域范围内即可通过GPS检测到,即使检测不到,也可以通过图像中包含的标志来识别。The designated stopping area can also be pre-set, and the stopping area can be divided according to GPS data. The stopping area can be set with more eye-catching signs. As long as the target vehicle stops within the designated stopping area, it can be detected by GPS, even if it is not detected, It can also be identified by the logo included in the image.
需要说明的是,警示信息可以直接由目标交通工具发送给用户的客户端,此处的客户端可以是用于连接目标交通工具的客户端,也可以是目标交通工具将警示信息发送到服务器,由服务器发送到用户的客户端,本公开实施例对此不做限定。It should be noted that the warning information can be directly sent by the target vehicle to the user’s client. The client here can be a client used to connect to the target vehicle, or the target vehicle can send the warning information to the server. It is sent by the server to the user's client, which is not limited in the embodiment of the present disclosure.
可选地通过目标交通工具上安装的图像采集设备采集目标交通工具 所在位置的图像包括:在预定时间段内采集目标交通工具所在位置的视频图像和/或照片图像,其中,目标交通工具包括共享交通工具。Optionally, capturing an image of the location of the target vehicle through an image capture device installed on the target vehicle includes: capturing a video image and/or photo image of the location of the target vehicle within a predetermined time period, where the target vehicle includes shared Transportation.
图3是本公开实施例的一种另可选的位置合规识别方法的流程图,如图3所示,该方法包括:FIG. 3 is a flowchart of an alternative location compliance recognition method according to an embodiment of the present disclosure. As shown in FIG. 3, the method includes:
步骤S302,在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集目标交通工具所在位置的图像;Step S302, in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
步骤S304,将图像发送给服务器,以使服务器根据图像识别目标交通工具的目标停靠位置;Step S304: Send the image to the server, so that the server recognizes the target parking position of the target vehicle according to the image;
步骤S306,接收服务器返回的目标停靠位置;Step S306, receiving the target parking position returned by the server;
步骤S308,通过判断目标停靠位置是否位于指定停靠区域,确定目标停靠位置是否为合规停靠位置。In step S308, it is determined whether the target parking position is a compliant parking position by determining whether the target parking position is located in the designated parking area.
图4是本公开实施例的另一种可选的位置合规识别方法的流程图,如图4所示,该方法包括:FIG. 4 is a flowchart of another optional location compliance recognition method according to an embodiment of the present disclosure. As shown in FIG. 4, the method includes:
步骤S402,获取目标交通工具发送的图像,其中,图像为目标交通工具在检测到停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集的目标交通工具所在位置的图像,停靠指令用于指示目标交通工具已停靠;Step S402: Acquire an image sent by the target vehicle, where the image is an image of the location of the target vehicle collected by the image acquisition device installed on the target vehicle when the parking instruction is detected by the target vehicle. When indicating that the target vehicle has stopped;
步骤S404,根据图像识别目标交通工具的目标停靠位置;Step S404: Identify the target stopping position of the target vehicle according to the image;
步骤S406,将识别出的目标停靠位置发送给目标交通工具,以使目标交通工具通过判断目标停靠位置是否位于指定停靠区域来确定所目标停靠位置是否为合规停靠位置。Step S406: Send the identified target parking location to the target vehicle, so that the target vehicle determines whether the target parking location is a compliant parking location by judging whether the target parking location is located in the designated parking area.
可选地,根据图像识别目标交通工具的目标停靠位置包括:提取图像中的第二图像特征;将所第二图像特征输入第二定位模型,以识别目标停靠位置。此处的第二定位模型可以使用与第一定位模型相同的算法,已经描述过的内容此处不再重复。需要说明的是,通过第二定位模型输出的结 果,可以是识别出的目标停靠位置,也可以是目标停靠位置是否位于指定停靠区域的判断结果,也可以是目标停靠位置是否为合规停靠位置的判断结果,即,图像识别过程和合规停靠位置的判断过程都可以在服务器侧执行,本公开实施例对此不做限定。如果第二定位模型输出结果是“目标停靠位置是否位于指定停靠区域的判断结果”,直接将此结果发送给目标交通工具,如果第二定位模型输出结果是“目标停靠位置是否为合规停靠位置的判断结果”,直接将此结果发送目标交通工具,第二定位模型也可以输出目标停靠位置位于指定停靠区域的概率值,或目标停靠位置为合规停靠位置的概率值,然后将输出的概率值发送给目标交通工具即可。Optionally, recognizing the target stopping position of the target vehicle according to the image includes: extracting a second image feature in the image; and inputting the second image characteristic into a second positioning model to identify the target stopping position. The second positioning model here can use the same algorithm as the first positioning model, and the content already described will not be repeated here. It should be noted that the result output by the second positioning model can be the identified target stopping position, or the judgment result of whether the target stopping position is located in the designated stopping area, or whether the target stopping position is a compliant stopping position The result of the judgment, that is, the image recognition process and the judgment process of the compliant parking position can be executed on the server side, which is not limited in the embodiment of the present disclosure. If the output result of the second positioning model is "the judgment result of whether the target stopping position is located in the designated stopping area", the result is directly sent to the target vehicle, if the output result of the second positioning model is "whether the target stopping position is a compliant stopping position The result of the judgment", directly send this result to the target vehicle, the second positioning model can also output the probability value of the target stopping position in the designated stopping area, or the probability value of the target stopping position being a compliant stopping position, and then output the probability Send the value to the target vehicle.
为了更好地理解目标交通工具与服务器之间的交互过程,结合图5来具体说明。图5是根据本公开实施例的另一种可选的位置合规识别方法的流程图,如图5所示,该方法包括:In order to better understand the interaction process between the target vehicle and the server, a detailed description is given in conjunction with FIG. 5. Fig. 5 is a flowchart of another optional location compliance recognition method according to an embodiment of the present disclosure. As shown in Fig. 5, the method includes:
S501,由用户50触发一个针对目标交通工具52的停靠指令;S501, the user 50 triggers a parking instruction for the target vehicle 52;
S502,目标交通工具52接收到停靠指令后,使用自身安装的图像采集设备采集目标交通工具所在位置的图像;S502: After receiving the parking instruction, the target vehicle 52 uses its own installed image acquisition device to collect an image of the location of the target vehicle;
S503,目标交通工具52将图像发送给服务器54;S503: The target vehicle 52 sends the image to the server 54;
S504,服务器54根据图像识别目标交通工具52的目标停靠位置;S504: The server 54 recognizes the target stopping position of the target vehicle 52 according to the image;
S505,服务器54将识别出的目标停靠位置发送给目标交通工具52;S505: The server 54 sends the identified target stopping position to the target vehicle 52;
S506,目标交通工具52通过判断目标停靠位置是否位于指定停靠区域,确定目标停靠位置是否为合规停靠位置;S506: The target vehicle 52 determines whether the target parking position is a compliant parking position by judging whether the target parking position is located in the designated parking area;
S507,目标交通工具52识别出结果后,可以给用户50一个反馈,如果是合规停靠位置,执行停靠指令,完成停靠并结束目标交通工具的使用流程,如果是不合规停靠位置,则不执行停靠指令,即不结束目标交通工具的使用流程,并可以向用户发出提示信息,提示用户当前停靠位置不合规,并提供附近指定的停靠区域。S507: After the target vehicle 52 recognizes the result, it can give the user 50 a feedback. If it is a compliant parking location, execute the parking instruction, complete the parking and end the use process of the target vehicle, if it is a non-compliant parking location, no The execution of the parking instruction does not end the use process of the target vehicle, and can send a prompt message to the user to remind the user that the current parking location is not compliant, and provide a designated parking area nearby.
本公开实施例中还提供了一种位置合规识别装置,该装置用于实现上述位置合规识别方法实施例及优选实施方式,已经进行过说明的不再赘述。 如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。The embodiments of the present disclosure also provide a location compliance recognition device, which is used to implement the foregoing location compliance recognition method embodiments and preferred implementations, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and/or hardware with predetermined functions. Although the devices described in the following embodiments are preferably implemented by software, hardware or a combination of software and hardware is also possible and conceived.
图6是根据本公开实施例的一种可选的位置合规识别装置的结构框图,如图6所示,该装置包括:Fig. 6 is a structural block diagram of an optional location compliance recognition device according to an embodiment of the present disclosure. As shown in Fig. 6, the device includes:
第一采集模块602,用于在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集目标交通工具所在位置的图像;The first collection module 602 is configured to collect an image of the location of the target vehicle through an image collection device installed on the target vehicle in the case of detecting a parking instruction indicating that the target vehicle has stopped;
第一识别模块604,用于根据图像识别目标交通工具的目标停靠位置;The first recognition module 604 is configured to recognize the target parking position of the target vehicle according to the image;
第一确定模块606,用于通过判断目标停靠位置是否位于指定停靠区域,确定目标停靠位置是否为合规停靠位置。The first determining module 606 is used to determine whether the target parking position is a compliant parking position by determining whether the target parking position is located in the designated parking area.
可选地,第一识别模块604包括:第一提取单元,用于提取图像中的第一图像特征;第一输入单元,用于将第一图像特征输入第一定位模型,以识别目标停靠位置。Optionally, the first recognition module 604 includes: a first extraction unit for extracting the first image feature in the image; a first input unit for inputting the first image feature into the first positioning model to identify the target stopping position .
可选地,第一识别模块604包括:发送单元,用于将图像发送给服务器,以使服务器识别图像中目标交通工具的目标停靠位置。Optionally, the first recognition module 604 includes: a sending unit, configured to send the image to the server, so that the server recognizes the target parking position of the target vehicle in the image.
可选地,所述装置还包括:第三识别模块,用于根据图像识别目标停靠位置的环境参数,其中,环境参数至少包括以下之一:周边是否存在建筑物遮挡、周边是否存在公共设施、是否位于指定停靠区域的范围内;第三确定模块,用于当目标停靠位置的环境参数满足预先设定的规则时,确定目标停靠位置位于指定停靠区域。Optionally, the device further includes: a third recognition module for recognizing the environmental parameters of the target parking position according to the image, wherein the environmental parameters include at least one of the following: whether there are buildings obstructing the surrounding area, whether there are public facilities nearby, Whether it is located in the designated parking area; the third determining module is used to determine that the target parking location is located in the designated parking area when the environmental parameters of the target parking location meet the preset rules.
可选地,第一确定模块606还用于:当所述目标停靠位置的环境参数满足预先设定的规则的情况下,确定所述目标停靠位置位于所述指定停靠区域,进而确定所述目标停靠位置为合规停靠位置;当所述目标停靠位置的环境参数不满足预先设定的规则的情况下,确定所述目标停靠位置不位于所述指定停靠区域,进而确定所述目标停靠位置为不合规停靠位置。Optionally, the first determining module 606 is further configured to determine that the target parking position is located in the designated parking area when the environmental parameters of the target parking position meet a preset rule, and then determine the target parking position The parking location is a compliant parking location; when the environmental parameters of the target parking location do not meet the preset rules, it is determined that the target parking location is not located in the designated parking area, and then the target parking location is determined to be Non-compliant docking location.
可选地,所述装置还包括:执行模块,用于执行以下至少之一的操作: 将所述不合规停靠位置发送给服务器;发送警示信息,其中所述警示信息用于提示所述目标停靠位置为不合规停靠位置,和/或,用于提示距离所述目标停靠位置指定范围内的指定停靠区域。Optionally, the device further includes: an execution module configured to perform at least one of the following operations: sending the non-compliant parking location to the server; sending warning information, wherein the warning information is used to prompt the target The docking position is a non-compliant docking position, and/or used to prompt a designated docking area within a designated range from the target docking position.
可选地,第一采集模块602包括:采集单元,用于在预定时间段内采集目标交通工具所在位置的视频图像和/或照片图像,其中,目标交通工具包括共享交通工具。Optionally, the first collection module 602 includes: a collection unit configured to collect a video image and/or a photo image of the location of the target vehicle within a predetermined time period, where the target vehicle includes a shared vehicle.
图7是根据本公开实施例的另一种可选的位置合规识别装置的结构框图,如图7所示,该装置包括:Fig. 7 is a structural block diagram of another optional location compliance recognition device according to an embodiment of the present disclosure. As shown in Fig. 7, the device includes:
第二采集模块702,用于在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集目标交通工具所在位置的图像;The second acquisition module 702 is configured to collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle in the case of detecting a parking instruction indicating that the target vehicle has stopped;
第一发送模块704,用于将图像发送给服务器,以使服务器根据图像识别目标交通工具的目标停靠位置;The first sending module 704 is configured to send the image to the server, so that the server can recognize the target parking position of the target vehicle according to the image;
接收模块706,用于接收服务器返回的目标停靠位置;The receiving module 706 is used to receive the target parking position returned by the server;
第二确定模块708,用于通过判断目标停靠位置是否位于指定停靠区域,确定目标停靠位置是否为合规停靠位置。The second determining module 708 is used for determining whether the target parking position is a compliant parking position by determining whether the target parking position is located in the designated parking area.
图8是根据本公开实施例的一种可选的位置合规识别装置的结构框图,如图8所示,该装置包括:Fig. 8 is a structural block diagram of an optional location compliance recognition device according to an embodiment of the present disclosure. As shown in Fig. 8, the device includes:
获取模块802,用于获取目标交通工具发送的图像,其中,图像为目标交通工具在检测到停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集的目标交通工具所在位置的图像,停靠指令用于指示目标交通工具已停靠;The acquisition module 802 is used to acquire the image sent by the target vehicle, where the image is the image of the location of the target vehicle collected by the image acquisition device installed on the target vehicle when the target vehicle detects the parking instruction, The stop instruction is used to indicate that the target vehicle has stopped;
第二识别模块804,用于根据图像识别目标交通工具的目标停靠位置;The second recognition module 804 is configured to recognize the target stopping position of the target vehicle according to the image;
第二发送模块806,用于将识别出的目标停靠位置发送给所述目标交通工具,以使目标交通工具通过判断所述目标停靠位置是否位于指定停靠区域来确定目标停靠位置是否为合规停靠位置。The second sending module 806 is configured to send the identified target parking location to the target vehicle, so that the target vehicle determines whether the target parking location is a compliant parking by judging whether the target parking location is in a designated parking area position.
可选地,第二识别模块804包括:第二提取单元,用于提取图像中的第二图像特征;第二输入单元,用于将第二图像特征输入第二定位模型,以识别目标停靠位置。此处的第二定位模型可以使用与第一定位模型相同的算法,已经描述过的内容此处不再重复。Optionally, the second recognition module 804 includes: a second extraction unit for extracting the second image feature in the image; a second input unit for inputting the second image feature into the second positioning model to identify the target stopping position . The second positioning model here can use the same algorithm as the first positioning model, and the content already described will not be repeated here.
本公开的实施例还提供了一种计算机可读存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。可选地,该计算机可读存储介质为非易失性的计算机可读存储介质。The embodiments of the present disclosure also provide a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any one of the foregoing method embodiments when running. Optionally, the computer-readable storage medium is a non-volatile computer-readable storage medium.
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the foregoing storage medium may be configured to store a computer program for executing the following steps:
S1,在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集目标交通工具所在位置的图像;S1, in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
S2,根据图像识别目标交通工具的目标停靠位置;S2: Identify the target stopping position of the target vehicle according to the image;
S3,通过判断目标停靠位置是否位于指定停靠区域,确定目标停靠位置是否为合规停靠位置。S3: Determine whether the target parking position is a compliant parking position by judging whether the target parking position is located in the designated parking area.
可选地,在本实施例中,上述存储介质还可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the foregoing storage medium may also be configured to store a computer program for executing the following steps:
S11,在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像;S11, in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
S12,将所述图像发送给服务器,以使所述服务器根据所述图像识别所述目标交通工具的目标停靠位置;S12. Send the image to a server, so that the server recognizes the target parking position of the target vehicle according to the image;
S13,接收所述服务器返回的所述目标停靠位置;S13, receiving the target parking position returned by the server;
S14,通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置。S14: Determine whether the target parking position is a compliant parking position by judging whether the target parking position is located in a designated parking area.
可选地,在本实施例中,上述存储介质还可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the foregoing storage medium may also be configured to store a computer program for executing the following steps:
S21,获取目标交通工具发送的图像,其中,图像为目标交通工具在检测到停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集的目标交通工具所在位置的图像,停靠指令用于指示目标交通工具已停靠;S21: Acquire an image sent by the target vehicle, where the image is an image of the location of the target vehicle collected by an image acquisition device installed on the target vehicle when the target vehicle detects a parking instruction, and the parking instruction is used for Indicate that the target vehicle has stopped;
S22,根据图像识别目标交通工具的目标停靠位置;S22: Identify the target stopping position of the target vehicle according to the image;
S23,将识别出的所述目标停靠位置发送给所述目标交通工具,以使所述目标交通工具通过判断所述目标停靠位置是否位于指定停靠区域来确定所述目标停靠位置是否为合规停靠位置。S23. Send the identified target parking location to the target vehicle, so that the target vehicle determines whether the target parking location is a compliant parking by judging whether the target parking location is located in a designated parking area. position.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。Optionally, in this embodiment, the above-mentioned storage medium may include, but is not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), Various media that can store computer programs, such as mobile hard disks, magnetic disks, or optical disks.
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present disclosure also provides an electronic device, including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the foregoing method embodiments.
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the aforementioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the aforementioned processor, and the input-output device is connected to the aforementioned processor.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to execute the following steps through a computer program:
S1,在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集目标交通工具所在位置的图像;S1, in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
S2,根据图像识别目标交通工具的目标停靠位置;S2: Identify the target stopping position of the target vehicle according to the image;
S3,通过判断目标停靠位置是否位于指定停靠区域,确定目标停靠位置是否为合规停靠位置。S3: Determine whether the target parking position is a compliant parking position by judging whether the target parking position is located in the designated parking area.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to execute the following steps through a computer program:
S11,在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像;S11, in the case of detecting a parking instruction indicating that the target vehicle has stopped, collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
S12,将图像发送给服务器,以使所述服务器根据所述图像识别所述目标交通工具的目标停靠位置;S12: Send an image to a server, so that the server recognizes the target parking position of the target vehicle according to the image;
S13,接收服务器返回的目标停靠位置;S13, receiving the target parking position returned by the server;
S14,通过判断目标停靠位置是否位于指定停靠区域,确定目标停靠位置是否为合规停靠位置。S14: Determine whether the target parking position is a compliant parking position by judging whether the target parking position is located in the designated parking area.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to execute the following steps through a computer program:
S21,获取目标交通工具发送的图像,其中,图像为目标交通工具在检测到停靠指令的情况下,通过目标交通工具上安装的图像采集设备采集的目标交通工具所在位置的图像,停靠指令用于指示目标交通工具已停靠;S21: Acquire an image sent by the target vehicle, where the image is an image of the location of the target vehicle collected by the image acquisition device installed on the target vehicle when the target vehicle detects the parking instruction, and the parking instruction is used for Indicate that the target vehicle has stopped;
S22,根据图像识别目标交通工具的目标停靠位置;S22: Identify the target stopping position of the target vehicle according to the image;
S23,将识别出的目标停靠位置发送给所述目标交通工具,以使目标交通工具通过判断目标停靠位置是否位于指定停靠区域来确定目标停靠位置是否为合规停靠位置。S23: Send the identified target parking location to the target vehicle, so that the target vehicle determines whether the target parking location is a compliant parking location by determining whether the target parking location is located in a designated parking area.
本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the above-mentioned embodiments and alternative implementations, and this embodiment will not be repeated here.
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的 步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present disclosure can be implemented by a general computing device, and they can be concentrated on a single computing device or distributed in a network composed of multiple computing devices. Above, alternatively, they can be implemented with program codes executable by the computing device, so that they can be stored in the storage device for execution by the computing device, and in some cases, can be executed in a different order than here. Perform the steps shown or described, or fabricate them into individual integrated circuit modules, or fabricate multiple modules or steps of them into a single integrated circuit module to achieve. In this way, the present disclosure is not limited to any specific hardware and software combination.
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The foregoing descriptions are only preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims (20)

  1. 一种位置合规识别方法,其特征在于,包括:A location compliance recognition method, characterized in that it includes:
    在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像;In the case of detecting a parking instruction indicating that the target vehicle has stopped, collecting an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
    根据所述图像识别所述目标交通工具的目标停靠位置;Identifying the target parking position of the target vehicle according to the image;
    通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置。By judging whether the target parking position is located in a designated parking area, it is determined whether the target parking position is a compliant parking position.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述图像识别所述目标交通工具的目标停靠位置包括:The method according to claim 1, wherein the recognizing the target stopping position of the target vehicle according to the image comprises:
    提取所述图像中的第一图像特征;Extracting the first image feature in the image;
    将所述第一图像特征输入第一定位模型,以识别所述目标停靠位置。The first image feature is input into a first positioning model to identify the target stopping position.
  3. 根据权利要求1所述的方法,其特征在于,在根据所述图像识别所述目标交通工具的目标停靠位置之后,还包括:The method according to claim 1, characterized in that, after identifying the target parking position of the target vehicle according to the image, the method further comprises:
    根据所述图像识别所述目标停靠位置的环境参数,其中,所述环境参数至少包括以下之一:周边是否存在建筑物遮挡、周边是否存在公共设施、是否位于所述指定停靠区域的范围内。The environmental parameters of the target parking position are identified according to the image, wherein the environmental parameters include at least one of the following: whether there is a building block in the surrounding area, whether there are public facilities in the surrounding area, and whether it is located within the designated parking area.
  4. 根据权利要求3所述的方法,其特征在于,所述通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置包括:The method according to claim 3, wherein the determining whether the target parking position is a compliant parking position by determining whether the target parking position is located in a designated parking area comprises:
    当所述目标停靠位置的环境参数满足预先设定的规则的情况下,确定所述目标停靠位置位于所述指定停靠区域,进而确定所述目标停 靠位置为合规停靠位置;When the environmental parameters of the target parking location meet the preset rules, determining that the target parking location is located in the designated parking area, and then determining that the target parking location is a compliant parking location;
    当所述目标停靠位置的环境参数不满足预先设定的规则的情况下,确定所述目标停靠位置不位于所述指定停靠区域,进而确定所述目标停靠位置为不合规停靠位置。When the environmental parameters of the target parking location do not meet the preset rules, it is determined that the target parking location is not located in the designated parking area, and then the target parking location is determined to be a non-compliant parking location.
  5. 根据权利要求4所述的方法,其特征在于,所述确定所述目标停靠位置为不合规停靠位置之后,所述方法还包括:执行以下至少之一的操作:The method according to claim 4, wherein after the determining that the target parking position is an uncompliant parking position, the method further comprises: performing at least one of the following operations:
    将所述不合规停靠位置发送给服务器;Send the non-compliant parking location to the server;
    发送警示信息,其中所述警示信息用于提示所述目标停靠位置为不合规停靠位置,和/或,用于提示距离所述目标停靠位置指定范围内的指定停靠区域。Sending warning information, wherein the warning information is used to prompt that the target parking location is an illegal parking location, and/or used to prompt a designated parking area within a specified range from the target parking location.
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像包括:The method according to any one of claims 1 to 5, wherein the collecting an image of the location of the target vehicle through an image acquisition device installed on the target vehicle comprises:
    在预定时间段内采集目标交通工具所在位置的视频图像和/或照片图像,其中,所述目标交通工具包括共享交通工具。Collect a video image and/or a photo image of the location of the target vehicle within a predetermined period of time, where the target vehicle includes a shared vehicle.
  7. 一种位置合规识别方法,其特征在于,包括:A location compliance recognition method, characterized in that it includes:
    在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像;In the case of detecting a parking instruction indicating that the target vehicle has stopped, collecting an image of the location of the target vehicle through an image acquisition device installed on the target vehicle;
    将所述图像发送给服务器,以使所述服务器根据所述图像识别所述目标交通工具的目标停靠位置;Sending the image to a server, so that the server recognizes the target parking position of the target vehicle according to the image;
    接收所述服务器返回的所述目标停靠位置;Receiving the target parking position returned by the server;
    通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置。By judging whether the target parking position is located in a designated parking area, it is determined whether the target parking position is a compliant parking position.
  8. 一种位置合规识别方法,其特征在于,包括:A location compliance recognition method, characterized in that it includes:
    获取目标交通工具发送的图像,其中,所述图像为所述目标交通工具在检测到停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集的所述目标交通工具所在位置的图像,所述停靠指令用于指示所述目标交通工具已停靠;Acquire an image sent by a target vehicle, where the image is an image of the location of the target vehicle collected by the image acquisition device installed on the target vehicle when the target vehicle detects a stop instruction Image, the parking instruction is used to indicate that the target vehicle has stopped;
    根据所述图像识别所述目标交通工具的目标停靠位置;Identifying the target parking position of the target vehicle according to the image;
    将识别出的所述目标停靠位置发送给所述目标交通工具,以使所述目标交通工具通过判断所述目标停靠位置是否位于指定停靠区域来确定所述目标停靠位置是否为合规停靠位置。The identified target parking location is sent to the target vehicle, so that the target vehicle determines whether the target parking location is a compliant parking location by determining whether the target parking location is in a designated parking area.
  9. 根据权利要求8所述的方法,其特征在于,所述根据所述图像识别所述目标交通工具的目标停靠位置包括:The method according to claim 8, wherein the identifying the target stopping position of the target vehicle according to the image comprises:
    提取所述图像中的第二图像特征;Extracting the second image feature in the image;
    将所述第二图像特征输入第二定位模型,以识别所述目标停靠位置。The second image feature is input into a second positioning model to identify the target stopping position.
  10. 一种位置合规识别装置,其特征在于,包括:A location compliance recognition device, characterized in that it comprises:
    第一采集模块,用于在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像;The first collection module is configured to collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle when a parking instruction indicating that the target vehicle has stopped is detected;
    第一识别模块,用于根据所述图像识别所述目标交通工具的目标停靠位置;The first recognition module is used to recognize the target parking position of the target vehicle according to the image;
    第一确定模块,用于通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置。The first determining module is configured to determine whether the target parking position is a compliant parking position by judging whether the target parking position is located in a designated parking area.
  11. 根据权利要求10所述的装置,其特征在于,所述识别模块包括:The device according to claim 10, wherein the identification module comprises:
    第一提取单元,用于提取所述图像中的第一图像特征;The first extraction unit is used to extract the first image feature in the image;
    第一输入单元,用于将所述第一图像特征输入第一定位模型,以识别所述目标停靠位置。The first input unit is used to input the first image feature into a first positioning model to identify the target stopping position.
  12. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    第三识别模块,用于在根据所述图像识别所述目标交通工具的目标停靠位置之后,根据所述图像识别所述目标停靠位置的环境参数,其中,所述环境参数至少包括以下之一:周边是否存在建筑物遮挡、周边是否存在公共设施、是否位于所述指定停靠区域的范围内。The third recognition module is configured to recognize the environmental parameter of the target parking position according to the image after recognizing the target parking position of the target vehicle according to the image, wherein the environmental parameter includes at least one of the following: Whether there are buildings blocking the surrounding area, whether there are public facilities in the surrounding area, and whether it is located within the designated parking area.
  13. 根据权利要求12所述的装置,其特征在于,所述第一确定模块用于:The device according to claim 12, wherein the first determining module is configured to:
    当所述目标停靠位置的环境参数满足预先设定的规则的情况下,确定所述目标停靠位置位于所述指定停靠区域,进而确定所述目标停靠位置为合规停靠位置;When the environmental parameters of the target parking position meet the preset rules, determining that the target parking position is located in the designated parking area, and then determining that the target parking position is a compliant parking position;
    当所述目标停靠位置的环境参数不满足预先设定的规则的情况下,确定所述目标停靠位置不位于所述指定停靠区域,进而确定所述目标停靠位置为不合规停靠位置。When the environmental parameters of the target parking location do not meet the preset rules, it is determined that the target parking location is not located in the designated parking area, and then the target parking location is determined to be a non-compliant parking location.
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:执行模块,用于在所述确定所述目标停靠位置为不合规停靠位置 之后,执行以下至少之一的操作:The device according to claim 13, wherein the device further comprises: an execution module, configured to perform at least one of the following operations after the determination that the target parking position is an illegal parking position:
    将所述不合规停靠位置发送给服务器;Send the non-compliant parking location to the server;
    发送警示信息,其中所述警示信息用于提示所述目标停靠位置为不合规停靠位置,和/或,用于提示距离所述目标停靠位置指定范围内的指定停靠区域。Sending warning information, wherein the warning information is used to prompt that the target parking location is an illegal parking location, and/or used to prompt a designated parking area within a specified range from the target parking location.
  15. 根据权利要求10至14任一项所述的装置,其特征在于,所述第一采集模块包括:The device according to any one of claims 10 to 14, wherein the first collection module comprises:
    采集单元,用于在预定时间段内采集目标交通工具所在位置的视频图像和/或照片图像,其中,所述目标交通工具包括共享交通工具。The collection unit is used to collect a video image and/or a photo image of the location of the target vehicle within a predetermined time period, wherein the target vehicle includes a shared vehicle.
  16. 一种位置合规识别装置,其特征在于,包括:A location compliance recognition device, characterized in that it comprises:
    第二采集模块,用于在检测到用于指示目标交通工具已停靠的停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集所述目标交通工具所在位置的图像;The second acquisition module is configured to collect an image of the location of the target vehicle through an image acquisition device installed on the target vehicle in the case of detecting a parking instruction indicating that the target vehicle has stopped;
    第一发送模块,用于将所述图像发送给服务器,以使所述服务器根据所述图像识别所述目标交通工具的目标停靠位置;The first sending module is configured to send the image to a server, so that the server recognizes the target parking position of the target vehicle according to the image;
    接收模块,用于接收所述服务器返回的所述目标停靠位置;A receiving module for receiving the target parking position returned by the server;
    第二确定模块,用于通过判断所述目标停靠位置是否位于指定停靠区域,确定所述目标停靠位置是否为合规停靠位置。The second determining module is used to determine whether the target parking position is a compliant parking position by judging whether the target parking position is located in a designated parking area.
  17. 一种位置合规识别装置,其特征在于,包括:A location compliance recognition device, characterized in that it comprises:
    获取模块,用于获取目标交通工具发送的图像,其中,所述图像为所述目标交通工具在检测到停靠指令的情况下,通过所述目标交通工具上安装的图像采集设备采集的所述目标交通工具所在位置的图 像,所述停靠指令用于指示所述目标交通工具已停靠;An acquisition module for acquiring an image sent by a target vehicle, where the image is the target acquired by an image acquisition device installed on the target vehicle when the target vehicle detects a parking instruction An image of the location of the vehicle, where the parking instruction is used to indicate that the target vehicle has stopped;
    第二识别模块,用于根据所述图像识别所述目标交通工具的目标停靠位置;The second recognition module is configured to recognize the target parking position of the target vehicle according to the image;
    第二发送模块,用于将识别出的所述目标停靠位置发送给所述目标交通工具,以使所述目标交通工具通过判断所述目标停靠位置是否位于指定停靠区域来确定所述目标停靠位置是否为合规停靠位置。The second sending module is configured to send the identified target parking position to the target vehicle, so that the target vehicle determines the target parking position by judging whether the target parking position is located in a designated parking area Whether it is a compliant docking position.
  18. 根据权利要求17所述的装置,其特征在于,所述第二识别模块包括:The device according to claim 17, wherein the second identification module comprises:
    第二提取单元,用于提取所述图像中的第二图像特征;The second extraction unit is used to extract the second image feature in the image;
    第二输入单元,用于将所述第二图像特征输入第二定位模型,以识别所述目标停靠位置。The second input unit is used to input the second image feature into a second positioning model to identify the target stopping position.
  19. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至9任一项中所述的方法。A computer-readable storage medium, wherein a computer program is stored in the storage medium, wherein the computer program is set to execute the method described in any one of claims 1 to 9 when running.
  20. 一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至9任一项中所述的方法。An electronic device comprising a memory and a processor, characterized in that a computer program is stored in the memory, and the processor is configured to run the computer program to execute any one of claims 1 to 9 The method described.
PCT/CN2020/109344 2019-08-15 2020-08-14 Position compliance recognition method and apparatus, storage medium and electronic apparatus WO2021027944A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910755330.4A CN110490127A (en) 2019-08-15 2019-08-15 Close rule recognition methods and device, storage medium, electronic device in position
CN201910755330.4 2019-08-15

Publications (1)

Publication Number Publication Date
WO2021027944A1 true WO2021027944A1 (en) 2021-02-18

Family

ID=68551311

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/109344 WO2021027944A1 (en) 2019-08-15 2020-08-14 Position compliance recognition method and apparatus, storage medium and electronic apparatus

Country Status (2)

Country Link
CN (1) CN110490127A (en)
WO (1) WO2021027944A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490127A (en) * 2019-08-15 2019-11-22 北京致行慕远科技有限公司 Close rule recognition methods and device, storage medium, electronic device in position
CN111559732A (en) * 2020-04-28 2020-08-21 哈工大机器人(中山)有限公司 Automobile fuel tank position and angle identification method and system based on 2D vision
CN113781792B (en) * 2021-09-06 2023-11-24 腾讯科技(深圳)有限公司 Parking detection system, method and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9076060B2 (en) * 2011-12-13 2015-07-07 Electronics And Telecommunications Research Institute Parking lot management system in working cooperation with intelligent cameras
CN106601011A (en) * 2017-01-03 2017-04-26 上海量明科技发展有限公司 Shared vehicle, and determination method, apparatus, and system for stop position of shared vehicle
CN106781445A (en) * 2017-02-13 2017-05-31 上海量明科技发展有限公司 Share information output method, client and the system of vehicle
CN106779971A (en) * 2017-01-03 2017-05-31 上海量明科技发展有限公司 Charging method, client and system under shared vehicle assistance state
CN106871860A (en) * 2017-04-12 2017-06-20 上海量明科技发展有限公司 Shared bicycle stops decision method, system and the shared bicycle in direction
CN107067357A (en) * 2017-04-12 2017-08-18 上海量明科技发展有限公司 Shared vehicle parking monitoring and managing method, system and shared vehicle
CN110490127A (en) * 2019-08-15 2019-11-22 北京致行慕远科技有限公司 Close rule recognition methods and device, storage medium, electronic device in position

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103366598B (en) * 2013-07-15 2016-01-20 广州市浩云安防科技股份有限公司 A kind of vehicle parking is to position detecting system and detection method
JP6761708B2 (en) * 2016-09-05 2020-09-30 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Parking position identification method, parking position learning method, parking position identification system, parking position learning device and program
KR101915167B1 (en) * 2016-12-30 2018-11-06 현대자동차주식회사 Automatically parking system and automatically parking method
CN106504565B (en) * 2017-01-03 2023-06-20 上海量明科技发展有限公司 Method, device and system for judging parking position of shared vehicle
CN106898024A (en) * 2017-04-12 2017-06-27 上海量明科技发展有限公司 Shared vehicle parking monitoring and managing method, system and device
CN107491765A (en) * 2017-08-29 2017-12-19 张羽 A kind of shared bicycle and its parking identification device and system
CN109993789B (en) * 2017-12-29 2021-05-25 杭州海康威视数字技术股份有限公司 Parking violation determination method and device for shared bicycle and camera

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9076060B2 (en) * 2011-12-13 2015-07-07 Electronics And Telecommunications Research Institute Parking lot management system in working cooperation with intelligent cameras
CN106601011A (en) * 2017-01-03 2017-04-26 上海量明科技发展有限公司 Shared vehicle, and determination method, apparatus, and system for stop position of shared vehicle
CN106779971A (en) * 2017-01-03 2017-05-31 上海量明科技发展有限公司 Charging method, client and system under shared vehicle assistance state
CN106781445A (en) * 2017-02-13 2017-05-31 上海量明科技发展有限公司 Share information output method, client and the system of vehicle
CN106871860A (en) * 2017-04-12 2017-06-20 上海量明科技发展有限公司 Shared bicycle stops decision method, system and the shared bicycle in direction
CN107067357A (en) * 2017-04-12 2017-08-18 上海量明科技发展有限公司 Shared vehicle parking monitoring and managing method, system and shared vehicle
CN110490127A (en) * 2019-08-15 2019-11-22 北京致行慕远科技有限公司 Close rule recognition methods and device, storage medium, electronic device in position

Also Published As

Publication number Publication date
CN110490127A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
WO2021027944A1 (en) Position compliance recognition method and apparatus, storage medium and electronic apparatus
CN109063768B (en) Vehicle weight identification method, device and system
CN109886222B (en) Face recognition method, neural network training method, device and electronic equipment
WO2020042984A1 (en) Vehicle behavior detection method and apparatus
US9721173B2 (en) Machine learning approach for detecting mobile phone usage by a driver
WO2021051601A1 (en) Method and system for selecting detection box using mask r-cnn, and electronic device and storage medium
US20170323452A1 (en) Method and device for traffic sign recognition
CN112085952B (en) Method and device for monitoring vehicle data, computer equipment and storage medium
JP2016062610A (en) Feature model creation method and feature model creation device
Hurney et al. Review of pedestrian detection techniques in automotive far‐infrared video
US10657809B2 (en) Automatic learning for vehicle classification
CN110555347B (en) Vehicle target identification method and device with dangerous cargo-carrying behavior and electronic equipment
CN112052815B (en) Behavior detection method and device and electronic equipment
US20210303885A1 (en) Generative adversarial network models for small roadway object detection
WO2020155790A1 (en) Method and apparatus for extracting claim settlement information, and electronic device
WO2023231991A1 (en) Traffic signal lamp sensing method and apparatus, and device and storage medium
CN109063790B (en) Object recognition model optimization method and device and electronic equipment
CN112329881A (en) License plate recognition model training method, license plate recognition method and device
CN111435446A (en) License plate identification method and device based on L eNet
Buhus et al. Automatic parking access using openalpr on raspberry pi3
CN110826415A (en) Method and device for re-identifying vehicles in scene image
Aneesh et al. Real-time traffic light detection and recognition based on deep retinanet for self driving cars
CN103488966A (en) Intelligent mobile phone capable of identifying real-name ticket information
CN111444911B (en) Training method and device of license plate recognition model and license plate recognition method and device
Gu et al. Embedded and real-time vehicle detection system for challenging on-road scenes

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20851562

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20851562

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20851562

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07/11/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20851562

Country of ref document: EP

Kind code of ref document: A1