Nothing Special   »   [go: up one dir, main page]

CN114220047B - Method and device for identifying shared bicycle entering cell - Google Patents

Method and device for identifying shared bicycle entering cell Download PDF

Info

Publication number
CN114220047B
CN114220047B CN202111442090.6A CN202111442090A CN114220047B CN 114220047 B CN114220047 B CN 114220047B CN 202111442090 A CN202111442090 A CN 202111442090A CN 114220047 B CN114220047 B CN 114220047B
Authority
CN
China
Prior art keywords
bicycle
cell
camera
ith
community
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202111442090.6A
Other languages
Chinese (zh)
Other versions
CN114220047A (en
Inventor
于艺春
兰雨晴
余丹
王丹星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Standard Intelligent Security Technology Co Ltd
Original Assignee
China Standard Intelligent Security Technology Co Ltd
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 China Standard Intelligent Security Technology Co Ltd filed Critical China Standard Intelligent Security Technology Co Ltd
Priority to CN202111442090.6A priority Critical patent/CN114220047B/en
Publication of CN114220047A publication Critical patent/CN114220047A/en
Application granted granted Critical
Publication of CN114220047B publication Critical patent/CN114220047B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Lock And Its Accessories (AREA)
  • Image Analysis (AREA)
  • Alarm Systems (AREA)

Abstract

The application provides a method and a device for identifying a sharing bicycle entering a cell, and relates to the technical field of data processing. Firstly, detecting and identifying a plurality of sharing bicycles by a camera through a target detection algorithm; judging whether the sharing bicycle enters a cell or exits the cell according to video information acquired when the sharing bicycle passes through a cell gate; and then, the shared bicycle entering the community is tracked in real time, and the distance between the shared bicycle and the doorway of the community is calculated to control the volume of the alarm system, so that the longer the distance is, the larger the alarm sound is. It can be seen that the embodiment can utilize the target detection algorithm to detect, thus reducing the workload, improving the monitoring accuracy, solving the problem of indiscriminate parking of the community management bicycle and facilitating the management of the sharing bicycle.

Description

Method and device for identifying shared bicycle entering cell
Technical Field
The application relates to the technical field of data processing, in particular to a method and a device for identifying a sharing bicycle entering a cell.
Background
The 'last kilometer' of the public transport means is a main obstacle for urban residents to travel by adopting public transport, and is also a main challenge in the process of building green cities and low-carbon cities. The shared single-vehicle enterprises provide services in campuses, subway stations, bus stations, residential areas, commercial areas and the like, complete the last 'jigsaw' in the transportation industry, and drive residents to use other public transportation means.
Currently, the management of the shared bicycle is not a special specification, and most cells check whether the shared bicycle enters the cell or not by manual security for 24 hours. However, manual detection is prone to careless mistakes, and the working intensity of monitoring personnel is high, so that the technical problem needs to be solved urgently.
Disclosure of Invention
In view of the above problems, the present application is provided to provide a method and an apparatus for identifying a shared vehicle entering a cell, which overcome or at least partially solve the above problems, and utilize a target detection algorithm to perform detection, thereby reducing workload, improving monitoring accuracy, solving the problem of parking disorderly in a cell management vehicle, and facilitating management of the shared vehicle. The technical scheme is as follows:
in a first aspect, a method for identifying a shared bicycle entering a cell is provided, which includes the following steps:
detecting and identifying various shared bicycles by using a target detection algorithm through a camera;
judging whether the shared bicycle enters a cell or exits the cell according to video information acquired when the shared bicycle passes through a cell doorway;
and tracking the shared bicycle running into the cell in real time, and calculating the distance between the shared bicycle and the doorway of the cell to control the volume of the alarm system so as to ensure that the longer the distance, the larger the alarm sound.
In one possible implementation, the method further includes:
the camera is arranged at a side doorframe of a gate, the right side of the camera is the inside of a cell, the left side of the camera is the outside of the cell, a lens of the camera faces a doorframe at the other side of the gate, and a shot image is perpendicular to a plane where the gate is located, so that incoming and outgoing vehicles and people can be accurately recorded, then the vertex of the lower left corner of the image collected by the camera is taken as an origin, the frame on the left side of the image is upwards taken as a Y axis, the lower frame of the image is taken as an X axis to establish a plane rectangular coordinate system, the unit length of the X axis of the coordinate system is a distance value between two adjacent transverse pixel points of the image, and the unit length of the Y axis of the coordinate system is a distance value between two adjacent longitudinal pixel points of the image.
In a possible implementation mode, whether the sharing bicycle enters the cell or exits the cell is judged according to the detection and identification result of the camera to the bicycle and the video information acquired when the sharing bicycle passes through the cell gate by using the following formula:
Figure BDA0003383819950000021
wherein P isiShowing the ith acquired by a camera arranged at the gate of the cellDetecting the motion state of the bicycle; diRepresenting the detection and identification result of the camera to the ith bicycle, and outputting D when the target detection algorithm is used for detecting that the ith bicycle is a shared bicyclei1, otherwise Di=0;tinThe moment when the ith bicycle completely drives into the shooting range of the camera for the first time is shown; t is toutThe moment when the ith bicycle completely enters the shooting range of the camera for the last time is shown; xi,b(tin) The abscissa value of the b-th coordinate point of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; m is a unit ofi(tin) The coordinate point total number of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; xi,a(tout) The abscissa value of the a-th coordinate point of the shared bicycle, which is identified in the image when the ith bicycle completely enters the shooting range of the camera for the last time, is represented; m is a unit ofi(tout) The coordinate point total number of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the last time;
if PiIf the number is less than 0, the ith bicycle is a shared bicycle and is in a state of exiting the cell, and at the moment, the alarm processing is not carried out;
if PiIf the number is 0, the ith bicycle is not the sharing bicycle or stops at the gate and is not moving, and at the moment, staff needs to be reminded or warned to push the sharing bicycle out of the cell as soon as possible;
if PiIf the number is more than 0, the ith bicycle is a shared bicycle and is in a state of driving into a cell, and at the moment, staff needs to be reminded and an alarm system needs to be started.
In a possible implementation manner, a camera towards the inside of a cell arranged at a doorway is used for carrying out real-time alignment tracking monitoring on a shared bicycle entering the cell, an infrared sensor arranged above the camera towards the inside of the cell is used for carrying out real-time distance measurement, and the following formula is used for controlling the volume of an alarm system according to the real-time distance between the shared bicycle and the doorway:
Figure BDA0003383819950000031
wherein h (t) represents a volume control value of the doorway warning system at the present time; h0Indicating a minimum alarm volume for the doorway warning system; hmaxRepresents a maximum alarm volume for the doorway alarm system; s. themaxThe maximum distance value which can be measured by an infrared sensor arranged above a camera towards the inside of the cell is represented; and S (t) represents the distance value of the shared bicycle of the distance driving cell measured by the infrared sensor at the current moment, and if a plurality of shared bicycles are driven, the maximum value of the distances of all the shared bicycles is taken.
In one possible implementation, the method further includes:
carrying out face recognition on personnel on the shared bicycle, comparing all people in a community face database by using the following formula, locking a door of a unit building corresponding to the recognized people until a door detects that the personnel on the shared bicycle pushes the shared bicycle out of a community, and then unlocking the corresponding unit building:
Figure BDA0003383819950000032
wherein G iseA door lock control value indicating the e-th cell floor of the cell; lambda [ R ]i,Re(k)]The face of the person on the ith bicycle collected by the camera arranged at the community gate is compared with the face of the kth resident of the e unit building recorded in the community face database to output a result, and if the face comparison result is the same person, lambda [ R ] is outputi,Re(k)]1, otherwise output λ [ R ]i,Re(k)]=0;KeRepresenting the total number of the faces of the residents of the e-th unit building recorded in the cell face database;
if G ise0 or less indicates that the door lock of the e-th unit building of the cell is not required to be controlled;
if G iseThe door lock of the e-th unit building needing to control the cell is normally closed when the door lock is more than 0,and automatically unlocking the bicycle after the door camera collects that the person on the ith bicycle pushes the bicycle out of the cell.
In a second aspect, an apparatus for identifying a shared bicycle entering a cell is provided, comprising:
the identification module is used for detecting and identifying various shared bicycles by using a target detection algorithm through the camera;
the judging module is used for judging whether the shared bicycle enters a cell or exits the cell according to video information acquired when the shared bicycle passes through a cell gate;
and the alarm module is used for tracking the shared bicycle running into the community in real time, calculating the distance between the shared bicycle and the doorway of the community, and controlling the volume of the alarm system so as to ensure that the longer the distance is, the larger the alarm sound is.
In one possible implementation, the apparatus further includes:
the device comprises a setting module, a camera, a left side door frame and a right side door frame, wherein the camera is arranged at the position of the side door frame of a gate, the right side of the camera is arranged in a cell, the left side of the camera is arranged outside the cell, a lens of the camera faces the other side door frame of the gate, a shot image is perpendicular to the plane where the gate is located, vehicles and people entering and exiting can be accurately recorded, then the top of the left lower corner of the image collected by the camera is used as an original point, the left frame of the image upwards serves as a Y axis, the lower frame of the image rightwards serves as an X axis to establish a plane rectangular coordinate system, the X axis unit length of the coordinate system serves as the distance value between two adjacent transverse pixel points of the image, and the Y axis unit length of the coordinate system serves as the distance value between two adjacent longitudinal pixel points of the image.
In a possible implementation manner, the determining module is further configured to:
and judging whether the sharing bicycle enters the community or exits the community according to the detection and identification result of the camera on the bicycle and the video information acquired when the sharing bicycle passes through the door of the community by using the following formula:
Figure BDA0003383819950000041
wherein P isiThe motion state detection value of the ith bicycle collected by a camera arranged at the doorway of the community is represented; diRepresenting the detection and identification result of the camera to the ith bicycle, and outputting D when the target detection algorithm is used for detecting that the ith bicycle is a sharing bicyclei1, otherwise Di=0;tinThe moment when the ith bicycle completely drives into the shooting range of the camera for the first time is shown; t is toutThe moment when the ith bicycle completely enters the shooting range of the camera for the last time is shown; xi,b(tin) The abscissa value of the b-th coordinate point of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; m is a unit ofi(tin) The coordinate point total number of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; xi,a(tout) The abscissa value of the a-th coordinate point of the shared bicycle, which is identified in the image when the ith bicycle completely enters the shooting range of the camera for the last time, is represented; m is a unit ofi(tout) The coordinate point total number of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the last time;
if PiIf the number is less than 0, the ith bicycle is a sharing bicycle and is in a state of exiting the cell, and at the moment, the alarm processing is not carried out;
if PiIf the number is 0, the ith bicycle is not the sharing bicycle or stops at the gate and is not moving, and at the moment, staff needs to be reminded or warned to push the sharing bicycle out of the cell as soon as possible;
if PiIf the number is more than 0, the ith bicycle is a shared bicycle and is in a state of driving into a cell, and at the moment, staff needs to be reminded and an alarm system needs to be started.
In one possible implementation, the alarm module is further configured to:
the method comprises the following steps of utilizing a camera towards the inside of a community, which is arranged at a doorway, to carry out real-time alignment tracking monitoring on a shared bicycle entering the community, utilizing an infrared sensor arranged above the camera towards the inside of the community to carry out real-time distance measurement, and utilizing the following formula to control the volume of an alarm system according to the real-time distance between the shared bicycle and the doorway:
Figure BDA0003383819950000051
wherein h (t) represents a volume control value of the doorway warning system at the current time; h0Indicating a minimum alarm volume for the doorway warning system; hmaxRepresents a maximum alarm volume for the doorway alarm system; s. themaxThe maximum distance value which can be measured by an infrared sensor arranged above a camera towards the inside of the cell is represented; and S (t) represents the distance value of the shared bicycle of the distance driving cell measured by the infrared sensor at the current moment, and if a plurality of shared bicycles are driven, the maximum value of the distances of all the shared bicycles is taken.
In one possible implementation, the alarm module is further configured to:
carrying out face recognition on personnel on the shared bicycle, comparing all people in a community face database by using the following formula, locking a door of a unit building corresponding to the recognized people until a door detects that the personnel on the shared bicycle pushes the shared bicycle out of a community, and then unlocking the corresponding unit building:
G∑
wherein G represents a door lock control value of the e-th unit building of the community; lambda [ alpha ]]The face of the person on the ith bicycle collected by the camera arranged at the doorway of the community is compared with the face of the kth resident of the e-th unit building recorded in the community face database to output a result, and if the face comparison result is the same person, lambda [ R ] is outputi,Re(k)]1, otherwise output λ [ R ]i,Re(k)]=0;KeRepresenting the total number of the faces of the residents of the e-th unit building recorded in the cell face database;
if G ise0 or less indicates that the door lock of the e-th unit building of the cell is not required to be controlled;
if G iseThe door lock of the e-th unit building needing to control the community is normally closed until the door lock is more than 0People who gathers on the ith bicycle through the door camera push out the bicycle from the district and then automatically unlock.
By means of the technical scheme, the method and the device for identifying the shared bicycle entering the cell provided by the embodiment of the application firstly utilize a target detection algorithm to detect and identify various shared bicycles through a camera; judging whether the shared bicycle enters a cell or exits the cell according to video information acquired when the shared bicycle passes through a cell doorway; and then, the shared bicycle entering the community is tracked in real time, and the distance between the shared bicycle and the doorway of the community is calculated to control the volume of the alarm system, so that the longer the distance is, the larger the alarm sound is. It can be seen that the embodiment can utilize the target detection algorithm for detection, the workload is reduced, the monitoring accuracy is improved, the problem of the disordered parking of the community management single vehicle is solved, and the management of the shared single vehicle is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 shows a flow chart of a method of identifying a shared bicycle entering a cell according to an embodiment of the application;
fig. 2 is a block diagram illustrating an apparatus for identifying a shared bicycle entering a cell according to an embodiment of the present application;
fig. 3 is a block diagram illustrating an apparatus for identifying a shared bicycle entering a cell according to another embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that such uses are interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the term "include" and its variants are to be read as open-ended terms meaning "including, but not limited to.
The embodiment of the present application provides a method for identifying a shared bicycle entering a cell, and as shown in fig. 1, the method for identifying a shared bicycle entering a cell may include the following steps S101 to S103:
step S101, detecting and identifying a plurality of sharing bicycles by a camera through a target detection algorithm;
step S102, judging whether the sharing bicycle enters a cell or exits the cell according to video information acquired when the sharing bicycle passes through a cell gate;
and step S103, tracking the shared bicycle entering the community in real time, and calculating the distance between the shared bicycle and the community door to control the volume of the alarm system so as to ensure that the alarm sound is larger when the distance is longer.
The method comprises the following steps of firstly, detecting and identifying a plurality of shared bicycles by a camera through a target detection algorithm; judging whether the shared bicycle enters a cell or exits the cell according to video information acquired when the shared bicycle passes through a cell doorway; and then, the shared bicycle entering the community is tracked in real time, and the distance between the shared bicycle and the doorway of the community is calculated to control the volume of the alarm system, so that the longer the distance is, the larger the alarm sound is. It can be seen that the embodiment can utilize the target detection algorithm for detection, the workload is reduced, the monitoring accuracy is improved, the problem of the disordered parking of the community management single vehicle is solved, and the management of the shared single vehicle is facilitated.
The embodiment of the application provides a possible implementation mode, can set up the camera in a side doorframe department at the gate, and the right side of camera is inside the district, the left side is the district outside, the camera lens of camera is just facing to the opposite side door frame at the gate, and then the image of shooing is perpendicular with the plane at gate place, thereby can accurately record the vehicle and the personnel of business turn over into, then use the lower left corner summit of the image that the camera gathered as the original point, the frame on the left side of image upwards is the Y axle, the lower frame of image is the X axle right and is established plane rectangular coordinate system, and the X axle unit length of coordinate system is the distance value between two adjacent horizontal pixel points of image, the Y axle unit length of coordinate system is the distance value between two adjacent vertical pixel points of image.
The embodiment of the application provides a possible implementation manner, which can utilize the following formula to judge whether the sharing bicycle enters a cell or exits the cell according to the detection and identification result of the camera to the bicycle and the video information acquired when the sharing bicycle passes through a cell gate:
Figure BDA0003383819950000081
wherein P isjThe motion state detection value of the ith bicycle collected by a camera arranged at the doorway of the community is represented; diRepresenting the detection and identification result of the camera to the ith bicycle, and outputting D when the target detection algorithm is used for detecting that the ith bicycle is a shared bicyclei1, or vice versai=0;tinThe moment when the ith bicycle completely drives into the shooting range of the camera for the first time is shown; t is toutThe moment when the ith bicycle completely enters the shooting range of the camera for the last time is shown; xi,b(tin) The abscissa value of the b coordinate point of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; m is a unit ofi(tin) The coordinate point total number of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; xi,a(tout) The abscissa value of the a-th coordinate point of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the last time; m isi(tout) Recognized in the image representing the last time the ith vehicle has all entered the shooting range of the cameraSharing the total number of coordinate points of the single vehicle;
if PiIf the number is less than 0, the ith bicycle is a shared bicycle and is in a state of exiting the cell, and at the moment, the alarm processing is not carried out;
if PiIf the number of the shared bicycles is 0, the ith bicycle is not the shared bicycle or the shared bicycle stopped at the doorway and is motionless, the staff needs to be reminded to remind or warn the staff to push the shared bicycle out of the cell as soon as possible;
if PiIf the number is more than 0, the ith bicycle is a shared bicycle and is in a state of driving into a cell, and at the moment, staff needs to be reminded and an alarm system needs to be started.
According to the detection and identification result of the camera on the bicycle and the video information acquired when the shared bicycle passes through the cell gate, the shared bicycle is judged to enter the cell or exit the cell, so that people can alarm when entering the cell, the reliability of identification is guaranteed, and unnecessary troubles are avoided.
The embodiment of the application provides a possible implementation manner, which can utilize the camera towards the inside of the cell, which is arranged at the gate, to perform real-time alignment tracking monitoring on a shared bicycle entering the cell, and utilize an infrared sensor arranged above the camera towards the inside of the cell to perform real-time distance measurement, and utilize the following formula to control the volume of an alarm system according to the real-time distance between the shared bicycle and the gate:
Figure BDA0003383819950000091
wherein h (t) represents a volume control value of the doorway warning system at the current time; h0Indicating a minimum alarm volume for the doorway warning system; hmaxRepresents a maximum alarm volume for the doorway alarm system; smaxThe maximum distance value which can be measured by an infrared sensor arranged above a camera towards the inside of the cell is represented; and S (t) represents the distance value of the shared bicycle which is measured by the infrared sensor at the current moment and enters the community, and if a plurality of shared bicycles are entered, the maximum value of the distances of all the shared bicycles is taken.
The volume of the alarm system is controlled according to the real-time distance between the shared bicycle and the doorway, so that the personnel driving into the shared bicycle can be warned through the volume, and the shared bicycle driven into by the entrance guard is reminded and the entrance degree is reminded to urge the entrance guard to perform corresponding management.
The embodiment of the application provides a possible implementation manner, and the method can also be used for carrying out face recognition on personnel on the shared bicycle, comparing all people in a cell face database by using the following formula, locking a door of a unit building corresponding to the recognized people until a door opening detects that the personnel on the shared bicycle pushes the shared bicycle out of a cell and then unlocks the corresponding unit building:
Figure BDA0003383819950000092
wherein G iseA door lock control value indicating the e-th cell floor of the cell; lambda [ R ]i,Re(k)]The face of the person on the ith bicycle collected by the camera arranged at the community gate is compared with the face of the kth resident of the e unit building recorded in the community face database to output a result, and if the face comparison result is the same person, lambda [ R ] is outputi,Re(k)]1, otherwise output λ [ R ]i,Re(k)]=0;KeRepresenting the total face number of the residents of the e-th unit building recorded in the community face database;
if G ise0 or less indicates that the door lock of the e-th unit building of the cell is not required to be controlled;
if G iseAnd if the door lock is more than 0, the door lock of the e-th unit building of the community needs to be controlled to be normally closed until the door camera acquires that the person on the ith bicycle pushes the bicycle out of the community, and then the bicycle is automatically unlocked.
In the embodiment, all people in the community face database are compared, the unit buildings corresponding to the identified people are locked until the door opening detects that the shared bicycle is pushed out of the community by people on the shared bicycle and then the corresponding unit buildings are unlocked, so that people driving into the shared bicycle can not enter the doors of the unit buildings until the people push out the shared bicycle from the community, and management of the shared bicycle driving into the community is assisted by workers.
It should be noted that, in practical applications, all the possible embodiments described above may be combined in any combination manner to form possible embodiments of the present application, and details are not described herein again.
Based on the method for identifying the shared bicycle entering the cell provided by the embodiments, the embodiment of the application also provides a device for identifying the shared bicycle entering the cell based on the same inventive concept.
Fig. 2 is a block diagram illustrating an apparatus for identifying a shared bicycle entering a cell according to an embodiment of the present application. As shown in fig. 2, the means for identifying the entering cell of the sharing bicycle may include an identifying module 210, a judging module 220 and an alarming module 230.
The identification module 210 is used for detecting and identifying a plurality of sharing bicycles by a camera through a target detection algorithm;
the judging module 220 is used for judging whether the sharing bicycle enters a cell or exits the cell according to the video information acquired when the sharing bicycle passes through a cell gate;
and the alarm module 230 is configured to track the shared bicycle entering the cell in real time, and calculate a distance between the shared bicycle and a doorway of the cell to control a volume of the alarm system, so as to ensure that an alarm sound is louder when the distance is longer.
In one possible implementation manner provided in the embodiment of the present application, as shown in fig. 3, the apparatus shown in fig. 2 above may further include a setting module 310, configured to set the camera at a door frame on one side of the gate, the right side of the camera is the inside of the cell, the left side is the outside of the cell, the lens of the camera faces the door frame on the other side of the gate, the shot image is vertical to the plane where the gate is located, so that the entering and exiting vehicles and people can be accurately recorded, then, the vertex of the lower left corner of the image collected by the camera is taken as the origin, the left frame of the image is upwards taken as the Y axis, the lower frame of the image is rightwards taken as the X axis to establish a plane rectangular coordinate system, and the unit length of the X axis of the coordinate system is the distance value between two adjacent transverse pixel points of the image, and the unit length of the Y axis of the coordinate system is the distance value between two adjacent longitudinal pixel points of the image.
In the embodiment of the present application, a possible implementation manner is provided, and the determining module 220 is further configured to:
and judging whether the sharing bicycle enters the cell or exits the cell according to the detection and identification result of the camera on the bicycle and the video information acquired when the sharing bicycle passes through the gate of the cell by using the following formula:
Figure BDA0003383819950000111
wherein P isiThe motion state detection value of the ith bicycle collected by a camera arranged at the doorway of the community is represented; diRepresenting the detection and identification result of the camera to the ith bicycle, and outputting D when the target detection algorithm is used for detecting that the ith bicycle is a shared bicyclei1, otherwise Di=0;tinThe moment when the ith bicycle completely drives into the shooting range of the camera for the first time is shown; t is toutThe moment when the ith bicycle completely enters the shooting range of the camera for the last time is shown; xi,b(tin) The abscissa value of the b-th coordinate point of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; m isi(tin) The coordinate point total number of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; xi,a(tout) The abscissa value of the a-th coordinate point of the shared bicycle, which is identified in the image when the ith bicycle completely enters the shooting range of the camera for the last time, is represented; m is a unit ofi(tout) The coordinate point total number of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the last time;
if PiIf the number is less than 0, the ith bicycle is a shared bicycle and is in a state of exiting the cell, and at the moment, the alarm processing is not carried out;
if Pi0 means that the ith bicycle is not sharedThe method comprises the following steps that a bicycle or a sharing bicycle stopped at a doorway and not moving needs to remind workers to push the sharing bicycle out of a cell as soon as possible;
if PiIf the number is more than 0, the ith bicycle is a shared bicycle and is in a state of driving into a cell, and at the moment, staff needs to be reminded and an alarm system needs to be started.
In an embodiment of the present application, a possible implementation manner is provided, and the alarm module 230 is further configured to:
the method comprises the following steps of utilizing a camera towards the inside of a cell arranged at a doorway to carry out real-time alignment tracking monitoring on a shared bicycle driving into the cell, utilizing an infrared sensor arranged above the camera towards the inside of the cell to carry out real-time distance measurement, and utilizing the following formula to control the volume of an alarm system according to the real-time distance between the shared bicycle and the doorway:
Figure BDA0003383819950000121
wherein h (t) represents a volume control value of the doorway warning system at the present time; h0Indicating a minimum alarm volume for the doorway warning system; hmaxIndicating a maximum alarm volume of the doorway alarm system; smaxThe maximum distance value which can be measured by an infrared sensor arranged above a camera towards the inside of the cell is represented; and S (t) represents the distance value of the shared bicycle of the distance driving cell measured by the infrared sensor at the current moment, and if a plurality of shared bicycles are driven, the maximum value of the distances of all the shared bicycles is taken.
In an embodiment of the present application, a possible implementation manner is provided, and the alarm module 230 is further configured to:
carrying out face recognition on personnel on the shared bicycle, comparing all people in a community face database by using the following formula, locking a door of a unit building corresponding to the recognized people until a door detects that the personnel on the shared bicycle pushes the shared bicycle out of a community, and then unlocking the corresponding unit building:
Figure BDA0003383819950000122
wherein G iseA door lock control value indicating the e-th cell floor of the cell; lambda [ R ]i,Re(k)]The face of the person on the ith bicycle collected by the camera arranged at the doorway of the community is compared with the face of the kth resident of the e-th unit building recorded in the community face database to output a result, and if the face comparison result is the same person, lambda [ R ] is outputi,Re(k)]1, otherwise output λ [ R ]i,Re(k)]=0;KeRepresenting the total face number of the residents of the e-th unit building recorded in the community face database;
if G ise0 or less indicates that the door lock of the e-th unit building of the cell is not required to be controlled;
if G iseAnd if the door lock is more than 0, the door lock of the e-th unit building of the community needs to be controlled to be normally closed until the door camera acquires that the person on the ith bicycle pushes the bicycle out of the community and then automatically unlocks.
It can be clearly understood by those skilled in the art that the specific working processes of the system, the apparatus, and the module described above may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, the detailed description is omitted here.
Those of ordinary skill in the art will understand that: the technical solution of the present application may be essentially implemented or all or part of the technical solution may be implemented in a form of a software product, where the computer software product is stored in a storage medium and includes program instructions, so that an electronic device (for example, a personal computer, a server, or a network device) executes all or part of the steps of the method described in the embodiments of the present application when the program instructions are executed. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (an electronic device such as a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the electronic device, the electronic device executes all or part of the steps of the method described in the embodiments of the present application.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present application; such modifications or substitutions do not depart from the scope of the present application.

Claims (6)

1. A method of identifying entry of a shared bicycle into a cell, comprising the steps of:
detecting and identifying various shared bicycles by using a target detection algorithm through a camera;
judging whether the sharing bicycle enters a cell or exits the cell according to video information acquired when the sharing bicycle passes through a cell gate;
tracking the shared bicycle running into the community in real time, and calculating the distance between the shared bicycle and the doorway of the community to control the volume of the alarm system so as to ensure that the longer the distance, the larger the alarm sound;
wherein the method further comprises:
the method comprises the steps that a camera is arranged at a side door frame of a gate, the right side of the camera is inside a cell, the left side of the camera is outside the cell, a lens of the camera faces a door frame on the other side of the gate, a shot image is perpendicular to a plane where the gate is located, incoming and outgoing vehicles and people can be accurately recorded, then the top point of the lower left corner of the image collected by the camera is used as an original point, the left frame of the image faces upwards to form a Y axis, the lower frame of the image faces rightwards to form an X axis to establish a plane rectangular coordinate system, the unit length of the X axis of the coordinate system is the distance value between two adjacent transverse pixel points of the image, and the unit length of the Y axis of the coordinate system is the distance value between two adjacent longitudinal pixel points of the image;
the following formula is used for judging whether the sharing bicycle enters a community or exits the community according to the detection and identification result of the camera on the bicycle and the video information acquired when the sharing bicycle passes through a community gate:
Figure FDA0003665094630000011
wherein P isiThe motion state detection value of the ith bicycle collected by a camera arranged at the doorway of the community is represented; diRepresenting the detection and identification result of the camera to the ith bicycle, and outputting D when the target detection algorithm is used for detecting that the ith bicycle is a shared bicyclei1, or vice versai=0;tinThe moment when the ith bicycle completely enters the shooting range of the camera for the first time is shown; t is toutThe moment when the ith bicycle completely enters the shooting range of the camera for the last time is shown; xi,b(tin) The abscissa value of the b coordinate point of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; m is a unit ofi(tin) The coordinate point total number of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; xi,a(tout) The abscissa value of the a-th coordinate point of the shared bicycle, which is identified in the image when the ith bicycle completely enters the shooting range of the camera for the last time, is represented; m is a unit ofi(tout) The coordinate point total number of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the last time;
if PiIf the number is less than 0, the ith bicycle is a shared bicycle and is in a state of exiting the cell, and at the moment, the alarm processing is not carried out;
if PiIf the number is 0, the ith bicycle is not the sharing bicycle or stops at the gate and is not moving, and at the moment, staff needs to be reminded or warned to push the sharing bicycle out of the cell as soon as possible;
if PiIf the number is more than 0, the ith bicycle is a sharing bicycle and is in a state of driving into a cell, and at the moment, staff needs to be reminded and an alarm system needs to be started.
2. The method for identifying the entering of the sharing bicycle into the community according to the claim 1, characterized in that the sharing bicycle entering into the community is real-time aligned, tracked and monitored by a camera towards the inside of the community arranged at the doorway, and real-time distance measurement is carried out by an infrared sensor arranged above the camera towards the inside of the community, and the volume of the alarm system is controlled according to the real-time distance of the sharing bicycle from the doorway by the following formula:
Figure FDA0003665094630000021
wherein h (t) represents a volume control value of the doorway warning system at the current time; h0Indicating a minimum alarm volume for the doorway warning system; hmaxIndicating a maximum alarm volume of the doorway alarm system; s. themaxThe maximum distance value which can be measured by an infrared sensor arranged above a camera towards the inside of the cell is represented; and S (t) represents the distance value of the shared bicycle which is measured by the infrared sensor at the current moment and enters the community, and if a plurality of shared bicycles are entered, the maximum value of the distances of all the shared bicycles is taken.
3. The method of identifying a shared bicycle entering a cell according to claim 2, further comprising:
carrying out face recognition on personnel on the shared bicycle, comparing all people in a cell face database by using the following formula, locking a door of a unit building corresponding to the recognized people until a door detects that the personnel on the shared bicycle push the shared bicycle out of a cell, and unlocking the corresponding unit building:
Figure FDA0003665094630000031
wherein G iseA door lock control value representing the e-th unit building of the cell; lambda [ R ]i,Re(k)]The face of the person on the ith bicycle collected by the camera arranged at the doorway of the community is compared with the face of the kth resident of the e-th unit building recorded in the community face database to output a result, and if the face comparison result is the same person, lambda [ R ] is outputi,Re(k)]1, otherwise output λ [ R ]i,Re(k)]=0;KeRepresenting the total face number of the residents of the e-th unit building recorded in the community face database;
if G ise0 or less indicates that the door lock of the e-th unit building of the cell is not required to be controlled;
if G iseAnd if the door lock is more than 0, the door lock of the e-th unit building of the community needs to be controlled to be normally closed until the door camera acquires that the person on the ith bicycle pushes the bicycle out of the community, and then the bicycle is automatically unlocked.
4. An apparatus for identifying entry of a shared bicycle into a cell, comprising:
the identification module is used for detecting and identifying various shared bicycles by using a target detection algorithm through the camera;
the judging module is used for judging whether the sharing bicycle enters a cell or exits the cell according to video information acquired when the sharing bicycle passes through a cell gate;
the alarm module is used for tracking the shared bicycle driven into the cell in real time and calculating the distance between the shared bicycle and the doorway of the cell to control the volume of the alarm system so as to ensure that the longer the distance is, the larger the alarm sound is;
wherein the apparatus further comprises:
the device comprises a setting module, a positioning module and a control module, wherein the setting module is used for setting a camera at a side door frame of a gate, the right side of the camera is inside a cell, the left side of the camera is outside the cell, a lens of the camera faces the door frame at the other side of the gate, and a shot image is vertical to the plane where the gate is located, so that vehicles and people entering and leaving the gate can be accurately recorded;
wherein the judging module is further configured to:
and judging whether the sharing bicycle enters the community or exits the community according to the detection and identification result of the camera on the bicycle and the video information acquired when the sharing bicycle passes through the door of the community by using the following formula:
Figure FDA0003665094630000041
wherein P isiThe motion state detection value of the ith bicycle collected by a camera arranged at the doorway of the community is represented; diRepresenting the detection and identification result of the camera to the ith bicycle, and outputting D when the target detection algorithm is used for detecting that the ith bicycle is a shared bicyclei1, otherwise Di=0;tinThe moment when the ith bicycle completely drives into the shooting range of the camera for the first time is shown; t is toutThe moment when the ith bicycle completely enters the shooting range of the camera for the last time is shown; xi,b(tin) The abscissa value of the b coordinate point of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; m isi(tin) The coordinate point total number of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the first time; xi,a(tout) The abscissa value of the a-th coordinate point of the shared bicycle, which is identified in the image when the ith bicycle completely enters the shooting range of the camera for the last time, is represented; m isi(tout) The coordinate point total number of the shared bicycle is identified in the image when the ith bicycle completely enters the shooting range of the camera for the last time;
if PiIf the number is less than 0, the ith bicycle is a sharing bicycle and is in a state of exiting the cell, and at the moment, the alarm processing is not carried out;
if PiIf the number of the shared bicycles is 0, the ith bicycle is not the shared bicycle or the shared bicycle stopped at the doorway and is motionless, the staff needs to be reminded to remind or warn the staff to push the shared bicycle out of the cell as soon as possible;
if PiIf the number is more than 0, the ith bicycle is a sharing bicycle and is in a state of driving into a cell, and at the moment, staff needs to be reminded and an alarm system needs to be started.
5. The apparatus for identifying a shared bicycle entering a cell according to claim 4, wherein the alarm module is further configured to:
the method comprises the following steps of utilizing a camera towards the inside of a cell arranged at a doorway to carry out real-time alignment tracking monitoring on a shared bicycle driving into the cell, utilizing an infrared sensor arranged above the camera towards the inside of the cell to carry out real-time distance measurement, and utilizing the following formula to control the volume of an alarm system according to the real-time distance between the shared bicycle and the doorway:
Figure FDA0003665094630000051
wherein h (t) represents a volume control value of the doorway warning system at the present time; h0Indicating a minimum alarm volume for the doorway alarm system; hmaxIndicating a maximum alarm volume of the doorway alarm system; smaxThe maximum distance value which can be measured by an infrared sensor arranged above a camera towards the inside of the cell is represented; and S (t) represents the distance value of the shared bicycle which is measured by the infrared sensor at the current moment and enters the community, and if a plurality of shared bicycles are entered, the maximum value of the distances of all the shared bicycles is taken.
6. The apparatus for identifying a shared bicycle entering cell of claim 5, wherein the alarm module is further configured to:
carrying out face recognition on personnel on the shared bicycle, comparing all people in a community face database by using the following formula, locking a door of a unit building corresponding to the recognized people until a door detects that the personnel on the shared bicycle pushes the shared bicycle out of a community, and then unlocking the corresponding unit building:
Figure FDA0003665094630000052
wherein G iseA door lock control value representing the e-th unit building of the cell; lambda [ R ]i,Re(k)]The face of the person on the ith bicycle collected by the camera arranged at the community gate is compared with the face of the kth resident of the e unit building recorded in the community face database to output a result, and if the face comparison result is the same person, lambda [ R ] is outputi,Re(k)]1, otherwise output λ [ R ]i,Re(k)]=0;KeRepresenting the total number of the faces of the residents of the e-th unit building recorded in the cell face database;
if G ise0 or less indicates that the door lock of the e-th unit building of the cell is not required to be controlled;
if G iseAnd if the door lock is more than 0, the door lock of the e-th unit building of the community needs to be controlled to be normally closed until the door camera acquires that the person on the ith bicycle pushes the bicycle out of the community and then automatically unlocks.
CN202111442090.6A 2021-11-30 2021-11-30 Method and device for identifying shared bicycle entering cell Active CN114220047B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111442090.6A CN114220047B (en) 2021-11-30 2021-11-30 Method and device for identifying shared bicycle entering cell

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111442090.6A CN114220047B (en) 2021-11-30 2021-11-30 Method and device for identifying shared bicycle entering cell

Publications (2)

Publication Number Publication Date
CN114220047A CN114220047A (en) 2022-03-22
CN114220047B true CN114220047B (en) 2022-07-15

Family

ID=80698965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111442090.6A Active CN114220047B (en) 2021-11-30 2021-11-30 Method and device for identifying shared bicycle entering cell

Country Status (1)

Country Link
CN (1) CN114220047B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2634261A1 (en) * 2007-06-08 2008-12-08 International Ram Associates Remote area monitoring system
CN106295788B (en) * 2015-05-12 2019-01-08 杭州海康威视数字技术股份有限公司 The statistical method and device of the volume of the flow of passengers
CN108206932A (en) * 2016-12-16 2018-06-26 北京迪科达科技有限公司 A kind of campus intelligent monitoring management system
CN107798781A (en) * 2017-09-20 2018-03-13 广东东为信息技术有限公司 A kind of shared bicycle management system and method based on community cloud monitoring system
CN107862754A (en) * 2017-10-12 2018-03-30 西安立乐行环保科技有限公司 A kind of shared bicycle has the toll collection system based on wireless telecommunications for enclosing parking area

Also Published As

Publication number Publication date
CN114220047A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
JP5368105B2 (en) Parking management system
WO2020248386A1 (en) Video analysis method and apparatus, computer device and storage medium
CN112132045B (en) Community personnel abnormal behavior monitoring scheme based on computer vision
CN109658554B (en) Intelligent residential district security protection system based on big data
CN108172021B (en) Roadside parking management system based on camera and electronic license plate reader-writer
KR100991580B1 (en) Number-of-people detecting device and elevator
WO2007138804A1 (en) Entrance control system and entrance control device
CN109803127A (en) Urban safety building site monitoring system and method based on big data and technology of Internet of things
CN111653024B (en) Warehouse management system, identification method, camera and readable storage medium
Nakashima et al. Passenger counter based on random forest regressor using drive recorder and sensors in buses
CN111260954B (en) Parking capacity estimation and parking space recommendation method based on image processing
CN109374097A (en) Garbage disposal site intelligent management system and method based on highway ETC
CN104156691B (en) A kind of detection pedestrian based on image procossing crosses the monitoring method of gate
CN109919066B (en) Method and device for detecting density abnormality of passengers in rail transit carriage
CN111353369A (en) Application method and system of high-order video of urban roadside parking in assisting criminal investigation
CN114999141B (en) Storage battery car parking management method, device, equipment, system and readable storage medium
CN115271612A (en) Logistics park safety monitoring method, device, equipment and storage medium
CN114220047B (en) Method and device for identifying shared bicycle entering cell
JP2011068469A (en) Elevator control device, monitoring system, searching revitalization program, in/out management system
US20220203546A1 (en) Sampling robot, robot system for goods sampling and detection and detection method
CN117274849A (en) Pedestrian loitering event detection method, device, equipment and medium
CN106960407A (en) Parking lot remote supervisory method and device
TWI426470B (en) Corner collision warning device
CN113570871A (en) Multidimensional vehicle personnel getting-on and getting-off judgment method and system
CN112530041A (en) Constructor in-place detection method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant