Method and system for generating ship business data, electronic device and storage medium
By using radar data to generate ship arrival and departure data, it solves the problem of being unable to generate arrival and departure data when the positioning system is unavailable, and achieves effective recording and management of ship berth operation information in the port.
Patent Information
- Application Number
- CN202311846716.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2043-12-29
AI Technical Summary
When positioning systems such as Global Positioning System (GPS) or Beidou Positioning System are not available, ships cannot be generated.
By obtaining the radar data of the ship, the ship's arrival time, berth information and departure time are determined, and the name of the ship is determined according to the berth information, so as to generate the ship's business data.
When the positioning system cannot be used, the ship's departure data can still be generated, and the effective recording and management of the ship operating information in the port in the port can be achieved.
Smart Images

Figure CN117831019B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of shipping data processing, and in particular to a method and system for generating ship business data, an electronic device and a storage medium. Background Art
[0002] In the related technologies, the arrival and departure data of ships are generated based on the ship automatic identification system (AIS) data and port area data. However, in some environments, such as when the global positioning system (GPS), Beidou positioning system and other positioning systems cannot be used, the arrival and departure data of ships cannot be generated. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] To this end, a first aspect of the present invention proposes a method for generating ship business data.
[0005] A second aspect of the present invention provides a system for generating ship business data.
[0006] A third aspect of the present invention provides an electronic device.
[0007] A fourth aspect of the present invention provides a storage medium.
[0008] In view of this, according to a first aspect of the present invention, a method for generating ship business data is proposed, comprising: acquiring radar data of a ship; determining first data information of the ship based on the radar data, wherein the first data information includes arrival time, berth information and departure time; determining the name of the ship based on the berth information; determining second data information of the ship based on the name of the ship; and combining the first data information and the second data information to obtain ship business data.
[0009] The method for generating ship business data provided by the present invention is mainly for generating ship arrival and departure data. The ship arrival and departure data restores the operation information of the ship at the berth in the port, and is the main business data of the ship and the port. The arrival and departure data at least includes the ship's Maritime Mobile Service Identity (MMSI), the ship's name, the identity document (ID) of the berth where the ship is located, the berth name of the berth where the ship is located, the ship's arrival time, i.e. the time when the ship enters the berth, the ship's departure time, i.e. the time when the ship leaves the berth, and other important information. Among them, the method for generating ship business data specifically includes: first obtaining the ship's radar data, wherein the radar data may include the distance information and angle information of the current ship relative to the radar equipment, the target name, the target speed, etc. Further, the first data information of the ship is determined according to the obtained radar data, wherein the first data information may be the arrival time, berth information and the departure time, that is, by processing the obtained radar data, the time when the ship arrives at the berth, the berth information of the berth the ship arrives at and the time when the ship leaves the berth are determined, wherein the berth information may include specific information such as the berth name and the berth position. Further, when the ship enters the berth, the name of the ship is determined according to the obtained berth information. It can be understood that there is a ship code in the radar data but no specific name of the ship, so the name of the ship needs to be determined. Specifically, when the ship is entering the berth, the corresponding berth is determined among multiple berths according to the berth position in the obtained berth information, and then the name of the ship in the berth is obtained through image acquisition and optical character recognition (OCR) technology. Further, after obtaining the name of the ship, the second data information of the ship can be determined in the ship information, wherein the ship information refers to the ship information maintained by the port management department, which may include the ship MMSI, ship name, call sign, International Maritime Organization identification code (International Maritime Organization, IMO), captain, ship price and other information, which are all pre-stored by the port management department. Therefore, after obtaining the name of the ship, the second data information corresponding to the name of the ship can be determined in the ship information, and the second data information may include: ship MMSI, ship name and other information. Finally, the obtained second data information and the first data information are combined with the name of the ship as the main body, so as to obtain the arrival and departure data of the ship, that is, the ship business data.In the present invention, the berth information, arrival time and departure time of the ship are obtained by using the radar data detected by the radar equipment. Furthermore, other information of the corresponding ship is obtained according to the berth information of the ship, and then the other information is combined with the berth information, arrival time and departure time, so as to obtain the arrival and departure data of the ship, thereby realizing the generation of the arrival and departure data of the ship when the positioning system cannot be used.
[0010] The method for generating the ship business data according to the present invention may also have the following technical features:
[0011] In some technical solutions, optionally, the step of determining the first data information of the ship based on the radar data includes: obtaining range information of multiple berths relative to the radar equipment, the range information including distance range and angle range; sorting the multiple berths according to the distance range, and generating a first berth set; sorting the multiple berths according to the angle range, and generating a second berth set; determining the first data information based on the radar data, the range information, the first berth set, and the second berth set.
[0012] In the technical solution, the step of determining the first data information of the ship according to the radar data includes: firstly obtaining the range information of all berths in the port relative to the radar device, wherein the range information includes the distance range and the angle range, that is, obtaining the minimum distance and the maximum distance of each berth in all berths relative to the radar device, obtaining the distance range of the berth through the maximum distance and the minimum distance, obtaining the minimum angle and the maximum angle of each berth in all berths relative to the radar device, and obtaining the angle range of the berth through the minimum angle and the maximum angle. Further, all berths are sorted according to the distance range to form a first berth set, specifically, they can be sorted in ascending or descending order according to the maximum distance or the minimum distance of each berth. At the same time, all berths are also sorted according to the angle range to form a second berth set, specifically, they can be sorted in ascending or descending order according to the maximum angle or the minimum angle of each berth. Finally, calculation is performed according to the radar data, the range information, the first berth set, and the second berth set, so as to obtain the first data information. Specifically, two different berth sets can be determined from the range information of multiple berths, the first berth set, and the second berth set by using the angle information and distance information in the radar data. Further, a judgment is made based on the two different berth sets to obtain the final first data information. In the present invention, the first data information is determined by using the angle information and distance information in the radar data and the range information of multiple berths relative to the radar device, and a calculation method based on relative orientation is implemented to obtain the first data information. Compared with the related art, the conversion step of the coordinate system based on the center of the earth is omitted, so that it is more direct and more efficient.
[0013] In some technical solutions, optionally, the step of determining the first data information according to the radar data, the range information, the first berth set, and the second berth set includes: judging the state of the ship according to the radar data; determining the third berth set in the first berth set according to the distance information in the radar data; determining the fourth berth set in the second berth set according to the angle information in the radar data; based on the state of the ship being a non-berthed state, and the existence of the same berth between the third berth set and the fourth berth set, obtaining the berth information of the same berth, and using the current time as the arrival time; based on the state of the ship being a berthed state, and the existence of the same berth between the third berth set and the fourth berth set, using the current time as the departure time.
[0014] In the technical solution, the step of determining the first data information according to the radar data, the range information, the first berth set, and the second berth set includes: first, judging the state of the ship according to the radar data, wherein the state of the ship can be divided into a non-berthed state, i.e., the ship is in the process of traveling, and a berthed state, i.e., the ship is docked in the berth. Since what is desired is the arrival time, berth information, and departure time of the ship. Therefore, when the state of the ship is a non-berthed state, it is necessary to perform a berth judgment, so as to obtain the arrival time and berth information of the ship. Specifically, according to the distance information in the radar data, a plurality of berths matching the distance information are determined in the first berth set, and then the plurality of berths are combined into a third berth set, wherein the determination method can be to use a binary search algorithm in the first berth set to determine the minimum distance or maximum distance between the minimum distance or maximum distance of the plurality of berths that meets the set threshold range with the distance information, and then determine the corresponding plurality of berths according to the minimum distance or maximum distance, and then combine the plurality of berths to obtain the third berth set. Wherein, the maximum value in the set threshold range can be the maximum distance difference among the distance differences of the plurality of berths. Further, multiple berths matching the angle information are determined in the second berth set according to the angle information in the radar data, and then the multiple berths are combined into a fourth berth set, wherein the determination method may be to use a binary search algorithm in the second berth set to determine the minimum angle or maximum angle that satisfies the set threshold range between the minimum angle or maximum angle of the multiple berths, and then determine the corresponding multiple berths according to the minimum angle or maximum angle, and then combine the multiple berths to obtain the fourth berth set. If the same berth exists in both the third berth set and the fourth berth set, it means that the ship is entering the berth, so the current time is obtained as the arrival time, and the berth information of the berth is obtained at the same time. If the berths in the third berth set and the berths in the fourth berth set are different, it means that the ship has not entered the berth, and then new radar data is continuously obtained for re-judgment. That is, when the state of the ship is determined to be a non-berthed state according to the radar data, and there is the same berth between the third berth set and the fourth berth set, it is determined that the ship is entering the berth at this moment, so the current time can be used as the arrival time.
[0015] Furthermore, when there are multiple identical berths between the third berth set and the fourth berth set, the intermediate values between the maximum distance and the minimum distance of the multiple identical berths are obtained, and then the differences between the multiple intermediate values and the distance information are calculated, and the berth with the smallest difference is selected as the berth to be entered.
[0016] Further, if the state of the ship is determined to be in the berth state according to the radar data, then it is necessary to make a judgment on the departure, so as to determine the departure time. Among them, the method for determining the departure time is the same as the method for determining the arrival time, that is, the third berth set and the fourth berth set also need to be determined respectively. However, the judgment method is completely opposite. Specifically, when there is no identical berth between the third berth set and the fourth berth set, it means that the ship is leaving the berth at this time, so the current time is used as the departure time. When there is the same berth in the third berth set and the fourth berth set, it means that the ship is still staying at the berth at this time, so new radar data is continuously obtained for re-judgment. That is to say, when the state of the ship is determined to be in the berth state according to the radar data, and there is no identical berth between the third berth set and the fourth berth set, it can be determined that the ship is leaving the berth at this moment, so the current time can be used as the departure time. The present invention determines two berth sets according to distance information and angle information in radar data, then performs different judgment processes on the two berth sets according to different ship states, and then determines first data information according to the judgment results, thereby making the acquired first data information more accurate.
[0017] In some technical solutions, optionally, the step of determining the name of the ship according to the berth information includes: acquiring image information of the ship according to the berth information; and determining the name of the ship according to the image information of the ship.
[0018] In the technical solution, the step of determining the name of the ship according to the berth information includes: after the berth information is determined, since the berth information includes the name of the berth, the location of the berth and other information. Therefore, an image acquisition instruction can be issued to the image acquisition device according to the location of the berth, so that the image acquisition device obtains the image information of the ship located at the corresponding berth. Among them, the image acquisition device can be a camera, etc. Further, after obtaining the image information of the ship, the image information of the ship is analyzed to determine the name of the ship. Specifically, the image information can be recognized by OCR text recognition technology to obtain the name of the ship. The present invention obtains the name of the ship according to the image information, thereby achieving the technical effect of being able to generate the ship's arrival and departure data based on radar and camera.
[0019] According to a second aspect of the present invention, a system for generating ship business data is proposed, comprising: a first acquisition module, the first acquisition module is used to acquire radar data of a ship; a first determination module, the first determination module is used to determine first data information of the ship according to the radar data, wherein the first data information includes arrival time, berth information and departure time; a second determination module, the second determination module is used to determine the name of the ship according to the berth information; a third determination module, the third determination module is used to determine second data information of the ship according to the name of the ship; and a combination module, the combination module is used to combine the first data information and the second data information to obtain the ship business data.
[0020] The system for generating ship business data provided by the present invention is mainly used to generate the arrival and departure data of the ship. The arrival and departure data of the ship restores the operation information of the ship at the berth in the port and is the main business data of the ship and the port. The arrival and departure data at least contain important information such as the MMSI of the ship, the name of the ship, the ID of the berth where the ship is located, the berth name of the berth where the ship is located, the arrival time of the ship, that is, the time when the ship enters the berth, and the departure time of the ship, that is, the time when the ship leaves the berth. Among them, the system for generating ship business data specifically includes: a first acquisition module, a first determination module, a second determination module, a third determination module and a combination module. Among them, the first acquisition module acquires the radar data of the ship, and the radar data may include the distance information and angle information of the current ship relative to the radar equipment, the target name, the target speed, etc. Further, the first determination module determines the first data information of the ship according to the obtained radar data, wherein the first data information may be the arrival time, berth information and the departure time, that is, by processing the acquired radar data, the time when the ship arrives at the berth, the berth information of the berth arrived at by the ship and the time when the ship leaves the berth are determined, wherein the berth information may include specific information such as the berth name and berth position. Further, when the ship enters the berth, the second determination module determines the name of the ship according to the acquired berth information. It can be understood that there is a ship code in the radar data but no specific name of the ship, so the name of the ship needs to be determined. Specifically, when the ship is entering the berth, the corresponding berth is determined among multiple berths by the berth position in the acquired berth information, and then the name of the ship in the berth is obtained by image acquisition and OCR text recognition technology. Further, after obtaining the name of the ship, the third determination module can determine the second data information of the ship in the ship information, wherein the ship information refers to the ship information maintained by the port management department, wherein the ship information may include the ship MMSI, ship name, call sign, IMO, captain, ship price and other information, which are all pre-stored by the port management department. Therefore, after obtaining the name of the ship, the second data information corresponding to the name of the ship can be determined in the ship information, and the second data information may include: ship MMSI, ship name and other information. Finally, the combination module combines the obtained second data information and the first data information with the name of the ship as the main body, thereby obtaining the arrival and departure data of the ship, that is, the ship business data. In the present invention, the radar data detected by the radar equipment is used to obtain the berth information, arrival time and departure time of the ship. Further, other information of the corresponding ship is obtained according to the berth information of the ship, and then the other information is combined with the berth information, arrival time and departure time, thereby obtaining the arrival and departure data of the ship, so that the arrival and departure data of the ship can be generated when the positioning system cannot be used.
[0021] In some technical solutions, optionally, the first determination module includes: a second acquisition module, the second acquisition module is used to obtain range information of multiple berths relative to the radar equipment, the range information includes a distance range and an angle range; a first sorting module, the first sorting module is used to sort the multiple berths according to the distance range, and generate a first berth set; a second sorting module, the second sorting module is used to sort the multiple berths according to the angle range, and generate a second berth set; a fourth determination module, the fourth determination module is used to determine the first data information based on the radar data, the range information, the first berth set, and the second berth set.
[0022] In the technical solution, the first determination module includes: a second acquisition module, a first sorting module, a second sorting module and a fourth determination module. The second acquisition module acquires the range information of all berths in the port relative to the radar device, wherein the range information includes the distance range and the angle range, that is, the minimum distance and the maximum distance of each berth in all berths relative to the radar device are acquired, and the distance range of the berth is obtained through the maximum distance and the minimum distance; the minimum angle and the maximum angle of each berth in all berths relative to the radar device are acquired, and the angle range of the berth is obtained through the minimum angle and the maximum angle. Further, the first sorting module sorts all berths according to the distance range to form a first berth set, specifically, it can be sorted in ascending or descending order according to the maximum distance or the minimum distance of each berth. At the same time, the second sorting module sorts all berths according to the angle range to form a second berth set, specifically, it can be sorted in ascending or descending order according to the maximum angle or the minimum angle of each berth. Finally, the fourth determination module calculates according to the radar data, the range information, the first berth set, and the second berth set to obtain the first data information. The present invention uses angle information and distance information in radar data and range information of multiple berths relative to the radar device to determine first data information, implements a calculation method based on relative orientation, and obtains the first data information. Compared with related technologies, the conversion step of the coordinate system with the center of the earth is omitted, making it more direct and efficient.
[0023] In some technical schemes, optionally, the fourth determination module includes: a judgment module, the judgment module is used to judge the state of the ship according to the radar data; a fifth determination module, the fifth determination module is used to determine the third berth set in the first berth set according to the distance information in the radar data; a sixth determination module, the sixth determination module is used to determine the fourth berth set in the second berth set according to the angle information in the radar data; a first processing module, the first processing module is used to obtain the berth information of the same berth based on the state of the ship being a non-berthed state, and there is the same berth between the third berth set and the fourth berth set, and use the current time as the arrival time; a second processing module, the second processing module is used to use the current time as the departure time based on the state of the ship being a berthed state, and there is no same berth between the third berth set and the fourth berth set.
[0024] In the technical solution, the fourth determination module includes: a judgment module, a fifth determination module, a sixth determination module, a first processing module and a second processing module. The judgment module judges the state of the ship according to the radar data, wherein the state of the ship can be divided into a non-berthing state, i.e., the ship is in the process of traveling, and a berthing state, i.e., the ship is docked in a berth. Since what is desired is the arrival time, berth information and departure time of the ship. Therefore, when the state of the ship is a non-berthing state, it is necessary to perform a berthing judgment, so as to obtain the arrival time and berth information of the ship. Specifically, the fifth determination module determines a plurality of berths matching the distance information in the first berth set according to the distance information in the radar data, and then forms a third berth set with the plurality of berths, wherein the determination method can be to use a binary search algorithm in the first berth set to determine the minimum distance or maximum distance between the minimum distance or maximum distance of the plurality of berths that meets the set threshold range with the distance information, and then determine the corresponding plurality of berths according to the minimum distance or maximum distance, and then combine the plurality of berths to obtain the third berth set. The maximum value in the set threshold range can be the maximum distance difference among the distance differences of the plurality of berths. Further, the sixth determination module determines multiple berths matching the angle information in the second berth set according to the angle information in the radar data, and then forms the multiple berths into a fourth berth set, wherein the determination method may be to use a binary search algorithm in the second berth set to determine the minimum angle or maximum angle that satisfies the set threshold range between the minimum angle or maximum angle of the multiple berths, and then determine the corresponding multiple berths according to the minimum angle or maximum angle, and then combine the multiple berths to obtain the fourth berth set. When the third berth set and the fourth berth set both have the same berth, it means that the ship is entering the berth, and the first processing module obtains the time at this moment as the arrival time, and simultaneously obtains the berth information of the berth. If the berths in the third berth set and the berths in the fourth berth set are not the same, it means that the ship has not entered the berth, and then continues to obtain new radar data for re-judgment. That is, the first processing module is used to determine that the ship is entering the berth at this moment when the state of the ship is determined to be a non-berthed state according to the radar data and there is the same berth between the third berth set and the fourth berth set, and the current time is used as the arrival time.
[0025] Further, if the state of the ship is determined to be in the berth state according to the radar data, then it is necessary to make a judgment on the departure, so as to determine the departure time. Among them, the method for determining the departure time is the same as the method for determining the arrival time, that is, the third berth set and the fourth berth set also need to be determined respectively. However, the judgment method is completely opposite. Specifically, when there is no identical berth between the third berth set and the fourth berth set, it means that the ship is leaving the berth at this time, so the second processing module obtains the current time as the departure time. When there is the same berth in the third berth set and the fourth berth set, it means that the ship is still staying at the berth at this time, so new radar data is continuously obtained for re-judgment. That is to say, the second processing module is used for determining that the ship is leaving the berth at this moment when the state of the ship is determined to be in the berth state according to the radar data and there is no identical berth between the third berth set and the fourth berth set, and taking the current time as the departure time. The present invention determines two berth sets according to distance information and angle information in radar data, then performs different judgment processes on the two berth sets according to different ship states, and then determines first data information according to the judgment results, thereby making the acquired first data information more accurate.
[0026] In some technical solutions, optionally, the second determination module includes: a third acquisition module, the third acquisition module is used to acquire image information of the ship according to the berth information; and a seventh determination module, the seventh determination module is used to determine the name of the ship according to the image information of the ship.
[0027] In this technical solution, the second determination module includes a third acquisition module and a seventh determination module. After the berth information is determined, since the berth information includes information such as the name of the berth and the location of the berth. Therefore, the third acquisition module can send an image acquisition instruction to the image acquisition device according to the location of the berth, so that the image acquisition device acquires the image information of the ship located at the corresponding berth. The image acquisition device can be a camera, etc. Further, after obtaining the image information of the ship, the seventh determination module analyzes the image information of the ship to determine the name of the ship. Specifically, the OCR text recognition technology can be used to recognize the image information to obtain the name of the ship. The present invention obtains the name of the ship based on the image information, thereby achieving the technical effect of being able to generate the ship's arrival and departure data based on radar and camera.
[0028] According to a third aspect of the present invention, an electronic device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a method for generating ship business data as described above are implemented.
[0029] The electronic device provided by the present invention implements the steps of the above-mentioned method for generating ship business data when the processor executes the computer program, which can achieve the technical effect of any of the above-mentioned technical solutions and will not be repeated here.
[0030] According to a fourth aspect of the present invention, a storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for generating ship business data as described in any one of the above items are implemented.
[0031] The storage medium provided by the present invention, when the computer program is executed by the processor, implements the steps of the above-mentioned method for generating ship business data, and can achieve the technical effects of any of the above-mentioned technical solutions, which will not be repeated here.
[0032] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0034] Figure 1 One of the flow charts of a method for generating ship business data according to an embodiment of the present invention is shown;
[0035] Figure 2 A second flow chart of a method for generating ship business data according to an embodiment of the present invention is shown;
[0036] Figure 3 A third flow chart of a method for generating ship business data according to an embodiment of the present invention is shown;
[0037] Figure 4 A fourth flowchart of a method for generating ship business data according to an embodiment of the present invention is shown;
[0038] Figure 5 One of the schematic block diagrams of a system for generating ship business data according to an embodiment of the present invention is shown;
[0039] Figure 6 A schematic block diagram of a first determination module according to an embodiment of the present invention is shown;
[0040] Figure 7 A schematic block diagram showing a fourth determination module according to an embodiment of the present invention;
[0041] Figure 8 A schematic block diagram of a second determination module according to an embodiment of the present invention is shown;
[0042] Fig. 9A second schematic block diagram of a system for generating ship business data according to an embodiment of the present invention is shown;
[0043] Fig.10 A schematic diagram of a radar target on-site identification method according to an embodiment of the present invention is shown;
[0044] Fig.11 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0045] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0046] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0047] Figure 1 A flow chart of a method for generating ship business data according to an embodiment of the present invention is shown. The method comprises:
[0048] Step 102: Acquire radar data of the ship;
[0049] Step 104: determining first data information of the ship according to the radar data, wherein the first data information includes arrival time, berth information and departure time;
[0050] Step 106: Determine the name of the vessel according to the berth information;
[0051] Step 108: Determine the second data information of the ship according to the name of the ship;
[0052] Step 110: Combine the first data information and the second data information to obtain ship business data.
[0053] The method for generating ship business data provided by the present invention is mainly for generating ship arrival and departure data. The arrival and departure data of the ship restores the operation information of the ship at the berth in the port and is the main business data of the ship and the port. The arrival and departure data at least includes the MMSI of the ship, the name of the ship, the ID of the berth where the ship is located, the berth name of the berth where the ship is located, the arrival time of the ship, that is, the time when the ship enters the berth, the departure time of the ship, that is, the time when the ship leaves the berth, and other important information. Among them, the method for generating ship business data specifically includes: firstly obtaining the radar data of the ship, wherein the radar data may include the distance information and angle information of the current ship relative to the radar device, the target name, the target speed, etc. Further, the first data information of the ship is determined according to the obtained radar data, wherein the first data information may be the arrival time, the berth information and the departure time, that is, by processing the acquired radar data, the time when the ship arrives at the berth, the berth information of the berth where the ship arrives, and the time when the ship leaves the berth are determined, wherein the berth information may include the berth name, the berth position, and other specific information. Further, when the ship enters the berth, the name of the ship is determined according to the acquired berth information. It can be understood that there is a ship code in the radar data but no specific name of the ship, so the name of the ship needs to be determined. Specifically, when the ship is entering the berth, the corresponding berth is determined among multiple berths by the berth position in the acquired berth information, and then the name of the ship in the berth is obtained by image acquisition and OCR text recognition technology. Further, after obtaining the name of the ship, the second data information of the ship can be determined in the ship information, wherein the ship information refers to the ship information maintained by the port management department, wherein the ship MMSI, ship name, call sign, IMO, captain, ship price and other information can be included, and these information are all pre-stored by the port management department. Therefore, after obtaining the name of the ship, the second data information corresponding to the name of the ship can be determined in the ship information, and the second data information can include: ship MMSI, ship name and other information. Finally, the obtained second data information and the first data information are combined with the name of the ship as the main body, so as to obtain the arrival and departure data of the ship, that is, the ship business data. In the present invention, the berth information, arrival time and departure time of the ship are obtained by using the radar data detected by the radar equipment. Furthermore, other information of the corresponding ship is obtained according to the berth information of the ship, and then the other information is combined with the berth information, arrival time and departure time, so as to obtain the arrival and departure data of the ship, thereby realizing the generation of the arrival and departure data of the ship when the positioning system cannot be used.
[0054] Figure 2 A second flow chart of a method for generating ship service data according to an embodiment of the present invention is shown; wherein the step of determining first data information of a ship according to radar data comprises:
[0055] Step 202: Acquire range information of a plurality of berths relative to the radar device, where the range information includes a distance range and an angle range;
[0056] Step 204: sorting the plurality of berths according to the distance range and generating a first berth set;
[0057] Step 206: sorting the multiple berths according to the angle range and generating a second berth set;
[0058] Step 208: Determine first data information according to the radar data, the range information, the first berth set, and the second berth set.
[0059] In this embodiment, the step of determining the first data information of the ship according to the radar data includes: firstly obtaining the range information of all berths in the port relative to the radar device, wherein the range information includes the distance range and the angle range, that is, obtaining the minimum distance and the maximum distance of each berth in all berths relative to the radar device, obtaining the distance range of the berth through the maximum distance and the minimum distance, obtaining the minimum angle and the maximum angle of each berth in all berths relative to the radar device, and obtaining the angle range of the berth through the minimum angle and the maximum angle. Further, all berths are sorted according to the distance range to form a first berth set, specifically, they can be sorted in ascending or descending order according to the maximum distance or the minimum distance of each berth. At the same time, all berths are also sorted according to the angle range to form a second berth set, specifically, they can be sorted in ascending or descending order according to the maximum angle or the minimum angle of each berth. Finally, calculation is performed according to the radar data, the range information, the first berth set, and the second berth set, so as to obtain the first data information. Specifically, two different berth sets can be determined from the range information of multiple berths, the first berth set, and the second berth set by using the angle information and distance information in the radar data. Further, a judgment is made based on the two different berth sets to obtain the final first data information. In the present invention, the first data information is determined by using the angle information and distance information in the radar data and the range information of multiple berths relative to the radar device, and a calculation method based on relative orientation is implemented to obtain the first data information. Compared with the related art, the conversion step of the coordinate system based on the center of the earth is omitted, so that it is more direct and more efficient.
[0060] Figure 3 A third flow chart of a method for generating ship business data according to an embodiment of the present invention is shown; wherein the step of determining the first data information according to the radar data, the range information, the first berth set, and the second berth set comprises:
[0061] Step 302: Determine the state of the ship according to the radar data;
[0062] Step 304: determining a third berth set from the first berth set according to distance information in the radar data;
[0063] Step 306: determining a fourth berth set from the second berth set according to the angle information in the radar data;
[0064] Step 308: based on the state of the ship being in a non-berthed state, and the third berth set and the fourth berth set having the same berth, berth information of the same berth is obtained, and the current time is used as the berthing time;
[0065] Step 310: Based on the fact that the ship is in the berthed state and there is no common berth between the third berth set and the fourth berth set, the current time is used as the unberthing time.
[0066] In this embodiment, the step of determining the first data information according to the radar data, the range information, the first berth set, and the second berth set includes: first, judging the state of the ship according to the radar data, wherein the state of the ship can be divided into a non-berthed state, i.e., the ship is in the process of traveling, and a berthed state, i.e., the ship is docked in a berth. Since what is desired is the arrival time, berth information, and departure time of the ship. Therefore, when the state of the ship is a non-berthed state, it is necessary to perform a berth judgment, so as to obtain the arrival time and berth information of the ship. Specifically, according to the distance information in the radar data, a plurality of berths matching the distance information are determined in the first berth set, and then the plurality of berths are combined into a third berth set, wherein the determination method can be to use a binary search algorithm in the first berth set to determine the minimum distance or maximum distance between the minimum distance or maximum distance of the plurality of berths that meets the set threshold range with the distance information, and then determine the corresponding plurality of berths according to the minimum distance or maximum distance, and then combine the plurality of berths to obtain the third berth set. Wherein, the maximum value in the set threshold range can be the maximum distance difference among the distance differences of the plurality of berths. Further, multiple berths matching the angle information are determined in the second berth set according to the angle information in the radar data, and then the multiple berths are combined into a fourth berth set, wherein the determination method may be to use a binary search algorithm in the second berth set to determine the minimum angle or maximum angle that satisfies the set threshold range between the minimum angle or maximum angle of the multiple berths, and then determine the corresponding multiple berths according to the minimum angle or maximum angle, and then combine the multiple berths to obtain the fourth berth set. If the same berth exists in both the third berth set and the fourth berth set, it means that the ship is entering the berth, so the current time is obtained as the arrival time, and the berth information of the berth is obtained at the same time. If the berths in the third berth set and the berths in the fourth berth set are different, it means that the ship has not entered the berth, and then new radar data is continuously obtained for re-judgment. That is, when the state of the ship is determined to be a non-berthed state according to the radar data, and there is the same berth between the third berth set and the fourth berth set, it is determined that the ship is entering the berth at this moment, so the current time can be used as the arrival time.
[0067] Further, when there are multiple identical berths between the third berth set and the fourth berth set, the intermediate value between the maximum distance and the minimum distance of the multiple identical berths is obtained, and then the difference between the multiple intermediate values and the distance information is calculated, and the berth with the smallest difference is selected as the berth to be entered. Further, if the state of the ship is determined to be in the berth state according to the radar data, it is necessary to make a departure judgment to determine the departure time. Among them, the method for determining the departure time is the same as the method for determining the arrival time, that is, the third berth set and the fourth berth set need to be determined respectively. However, the judgment method is completely opposite. Specifically, when there are no identical berths between the third berth set and the fourth berth set, it means that the ship is leaving the berth at this time, so the current time is used as the departure time. When there are identical berths in the third berth set and the fourth berth set, it means that the ship is still staying at the berth at this time, so new radar data continues to be obtained for re-judgment. That is, when the state of the ship is determined to be in the berth state according to the radar data, and there is no common berth between the third berth set and the fourth berth set, it can be determined that the ship is leaving the berth at this moment, so the current time can be used as the departure time. The present invention determines two berth sets according to the distance information and angle information in the radar data, and then performs different judgment processes on the two berth sets according to the different states of the ship, and then determines the first data information according to the judgment result, so that the acquired first data information is more accurate.
[0068] Figure 4 A fourth flow chart of a method for generating ship business data according to an embodiment of the present invention is shown; wherein the step of determining the name of the ship according to the berth information comprises:
[0069] Step 402: Acquire image information of the ship according to the berth information;
[0070] Step 404: Determine the name of the ship according to the image information of the ship.
[0071] In this embodiment, the step of determining the name of the ship according to the berth information includes: after the berth information is determined, since the berth information includes the name of the berth, the location of the berth and other information. Therefore, an image acquisition instruction can be issued to the image acquisition device according to the location of the berth, so that the image acquisition device obtains the image information of the ship located at the corresponding berth. Among them, the image acquisition device can be a camera, etc. Further, after obtaining the image information of the ship, the image information of the ship is analyzed to determine the name of the ship. Specifically, the image information can be recognized by using OCR text recognition technology to obtain the name of the ship. The present invention achieves the technical effect of being able to generate the arrival and departure data of the ship based on radar and camera by obtaining the name of the ship according to the image information.
[0072] Further, the method for generating ship business data can be implemented in various ways according to specific features and / or example applications. For example, these methods can be implemented by a combination of hardware, firmware and / or software. For example, in hardware implementation, the processor can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, electronic devices, other equipment units for performing the above functions and / or combinations thereof.
[0073] Figure 5 One of the schematic block diagrams of a system for generating ship business data according to an embodiment of the present invention is shown; wherein the system 50 for generating ship business data comprises:
[0074] A first acquisition module 502, used to acquire radar data of a ship;
[0075] A first determination module 504 is used to determine first data information of the ship according to the radar data, wherein the first data information includes arrival time, berth information and departure time;
[0076] The second determination module 506 is used to determine the name of the ship according to the berth information;
[0077] A third determining module 508, configured to determine second data information of the ship according to the name of the ship;
[0078] The combining module 510 is used to combine the first data information and the second data information to obtain ship business data.
[0079] The system for generating ship business data provided by the present invention is mainly used to generate the arrival and departure data of the ship. The arrival and departure data of the ship restores the operation information of the ship at the berth in the port and is the main business data of the ship and the port. The arrival and departure data at least contain important information such as the MMSI of the ship, the name of the ship, the ID of the berth where the ship is located, the berth name of the berth where the ship is located, the arrival time of the ship, i.e. the time when the ship enters the berth, and the departure time of the ship, i.e. the time when the ship leaves the berth. Among them, the system 50 for generating ship business data specifically includes: a first acquisition module 502, a first determination module 504, a second determination module 506, a third determination module 508 and a combination module 510. Among them, the first acquisition module 502 acquires the radar data of the ship, and the radar data may include the distance information and angle information of the current ship relative to the radar equipment, the target name, the target speed, etc. Further, the first determination module 504 determines the first data information of the ship according to the obtained radar data, wherein the first data information may be the arrival time, berth information and the departure time, that is, by processing the obtained radar data, the time when the ship arrives at the berth, the berth information of the berth arrived at by the ship and the time when the ship leaves the berth are determined, wherein the berth information may include specific information such as the berth name and the berth position. Further, when the ship enters the berth, the second determination module 506 determines the name of the ship according to the obtained berth information. It can be understood that there is a ship code in the radar data but no specific name of the ship, so the name of the ship needs to be determined. Specifically, when the ship is entering the berth, the corresponding berth is determined among multiple berths according to the berth position in the obtained berth information, and then the name of the ship in the berth is obtained through image acquisition and OCR text recognition technology. Further, after obtaining the name of the ship, the third determination module 508 can determine the second data information of the ship in the ship information, wherein the ship information refers to the ship information maintained by the port management department, wherein the ship information can include the ship MMSI, ship name, call sign, IMO, captain, ship price and other information, which are all pre-stored by the port management department. Therefore, after obtaining the name of the ship, the second data information corresponding to the name of the ship can be determined in the ship information, and the second data information can include: ship MMSI, ship name and other information. Finally, the combination module 510 combines the obtained second data information and the first data information with the name of the ship as the main body, thereby obtaining the arrival and departure data of the ship, that is, the ship business data. In the present invention, the radar data detected by the radar equipment is used to obtain the berth information, arrival time and departure time of the ship. Further, other information of the corresponding ship is obtained according to the berth information of the ship, and then the other information is combined with the berth information, arrival time and departure time, thereby obtaining the arrival and departure data of the ship, so that the arrival and departure data of the ship can be generated when the positioning system cannot be used.
[0080] Figure 6 A schematic block diagram of a first determination module according to an embodiment of the present invention is shown; wherein the first determination module 504 includes:
[0081] A second acquisition module 5042 is used to acquire range information of multiple berths relative to the radar device, where the range information includes a distance range and an angle range;
[0082] A first sorting module 5044, used to sort the plurality of berths according to the distance range and generate a first berth set;
[0083] A second sorting module 5046, for sorting the plurality of berths according to the angle range and generating a second berth set;
[0084] The fourth determination module 5048 is used to determine the first data information according to the radar data, the range information, the first berth set, and the second berth set.
[0085] In this embodiment, the first determination module 504 includes: a second acquisition module 5042, a first sorting module 5044, a second sorting module 5046 and a fourth determination module 5048. The second acquisition module 5042 acquires the range information of all berths in the port relative to the radar device, wherein the range information includes the distance range and the angle range, that is, the minimum distance and the maximum distance of each berth in all berths relative to the radar device are acquired, and the distance range of the berth is obtained through the maximum distance and the minimum distance; the minimum angle and the maximum angle of each berth in all berths relative to the radar device are acquired, and the angle range of the berth is obtained through the minimum angle and the maximum angle. Further, the first sorting module 5044 sorts all berths according to the distance range to form a first berth set, and specifically, the berths can be sorted in ascending or descending order according to the maximum distance or the minimum distance of each berth. At the same time, the second sorting module 5046 sorts all berths according to the angle range to form a second berth set, and specifically, the berths can be sorted in ascending or descending order according to the maximum angle or the minimum angle of each berth. Finally, the fourth determination module 5048 performs calculations based on the radar data, the range information, the first berth set, and the second berth set, thereby obtaining the first data information. In the present invention, the first data information is determined using the angle information and distance information in the radar data and the range information of multiple berths relative to the radar device, and a calculation method based on relative orientation is implemented to obtain the first data information. Compared with the related art, the conversion step of the coordinate system based on the center of the earth is omitted, thereby being more direct and efficient.
[0086] Figure 7 A schematic block diagram of a fourth determination module of an embodiment of the present invention is shown; wherein the fourth determination module 5048 includes:
[0087] A determination module 5050 is used to determine the state of the ship according to the radar data;
[0088] A fifth determining module 5052, configured to determine a third berth set in the first berth set according to distance information in the radar data;
[0089] A sixth determining module 5054, configured to determine a fourth berth set in the second berth set according to the angle information in the radar data;
[0090] The first processing module 5056 is configured to obtain berth information of the same berth based on the state of the ship being a non-berthed state and the third berth set and the fourth berth set having the same berth, and use the current time as the berth arrival time;
[0091] The second processing module 5058 is configured to use the current time as the unberthing time based on the fact that the ship is in the berthing state and there is no common berth between the third berth set and the fourth berth set.
[0092] In this embodiment, the fourth determination module 5048 includes: a judgment module 5050, a fifth determination module 5052, a sixth determination module 5054, a first processing module 5056 and a second processing module 5058. The judgment module 5050 judges the state of the ship according to the radar data, wherein the state of the ship can be divided into a non-berthing state, i.e., the ship is in the process of traveling, and a berthing state, i.e., the ship is docked in a berth. Since what is desired is the berthing time, berthing information and unberthing time of the ship. Therefore, when the state of the ship is a non-berthing state, a berthing judgment needs to be performed to obtain the berthing time and berthing information of the ship. Specifically, the fifth determination module 5052 determines multiple berths matching the distance information in the first berth set according to the distance information in the radar data, and then combines the multiple berths into a third berth set, wherein the determination method may be to use a binary search algorithm in the first berth set to determine the minimum distance or maximum distance between the distance information and the minimum distance or maximum distance of the multiple berths that meets the set threshold range, and then determine the corresponding multiple berths according to the minimum distance or maximum distance, and then combine the multiple berths to obtain the third berth set. The maximum value in the set threshold range may be the maximum distance difference among the distance differences of the multiple berths. Further, the sixth determination module 5054 determines multiple berths matching the angle information in the second berth set according to the angle information in the radar data, and then combines the multiple berths into a fourth berth set, wherein the determination method may be to use a binary search algorithm in the second berth set to determine the minimum angle or maximum angle between the angle information and the minimum angle or maximum angle of the multiple berths that meets the set threshold range, and then determine the corresponding multiple berths according to the minimum angle or maximum angle, and then combine the multiple berths to obtain the fourth berth set. When the third berth set and the fourth berth set both have the same berth, it means that the ship is entering the berth, and the first processing module 5056 obtains the current time as the arrival time, and simultaneously obtains the berth information of the berth. If the berths in the third berth set and the berths in the fourth berth set are different, it means that the ship has not entered the berth, and then new radar data will continue to be obtained for re-judgment. In other words, the first processing module 5056 is used to determine that the ship is entering the berth at the moment when the state of the ship is determined to be a non-berthed state according to the radar data, and there is the same berth between the third berth set and the fourth berth set, and the current time is used as the arrival time.
[0093] Further, if the state of the ship is determined to be in the berth state according to the radar data, then it is necessary to make a judgment on the departure, so as to determine the departure time. Among them, the method for determining the departure time is the same as the method for determining the arrival time, that is, it is also necessary to determine the third berth set and the fourth berth set respectively. However, the judgment method is completely opposite. Specifically, when there is no identical berth between the third berth set and the fourth berth set, it means that the ship is leaving the berth at this time, so the second processing module 5058 obtains the current time as the departure time. When there is the same berth in the third berth set and the fourth berth set, it means that the ship is still staying at the berth at this time, so new radar data is continuously obtained for re-judgment. That is to say, the second processing module 5058 is used for determining that the state of the ship is in the berth state according to the radar data, and there is no identical berth between the third berth set and the fourth berth set, and determining that the ship is leaving the berth at this moment, and taking the current time as the departure time. The present invention determines two berth sets according to distance information and angle information in radar data, then performs different judgment processes on the two berth sets according to different ship states, and then determines first data information according to the judgment results, thereby making the acquired first data information more accurate.
[0094] Figure 8 A schematic block diagram of a second determination module according to an embodiment of the present invention is shown; wherein the second determination module 506 includes:
[0095] The third acquisition module 5060 is used to acquire image information of the ship according to the berth information;
[0096] The seventh determining module 5062 is used to determine the name of the ship according to the image information of the ship.
[0097] In this embodiment, the second determination module 506 includes a third acquisition module 5060 and a seventh determination module 5062. After the berth information is determined, since the berth information includes information such as the name of the berth and the location of the berth, the third acquisition module 5060 can send an image acquisition instruction to the image acquisition device according to the location of the berth, so that the image acquisition device acquires the image information of the ship located at the corresponding berth. The image acquisition device can be a camera, etc. Further, after obtaining the image information of the ship, the seventh determination module 5062 analyzes the image information of the ship to determine the name of the ship. Specifically, the image information can be recognized by using OCR text recognition technology to obtain the name of the ship. The present invention obtains the name of the ship according to the image information, thereby achieving the technical effect of being able to generate the arrival and departure data of the ship based on radar and camera.
[0098] Fig. 9The second schematic block diagram of a system for generating ship business data according to an embodiment of the present invention is shown; wherein the system 50 for generating ship business data may also include a berth-to-unberth main system 902, a radar data acquisition system 904, a ship identification system 906, a ship image acquisition system 908, and a ship information system 910. The overall operation process of the system 50 for generating ship business data is as follows: first, the berth-to-unberth main system 902 obtains radar target data from the radar data acquisition system 904, and the radar target data includes target ID, target distance, target angle, target speed, etc., wherein the target distance and target angle are relative values based on the radar device. Further, the berth-to-unberth main system 902 uses the berth-to-unberth data generation method to generate the berth-to-unberth data of the radar target berth.
[0099] The method for generating the berth-to-departure data is as follows: the first step is to initialize the berth position data, specifically, Fig.10 As shown, in Fig.10 In the figure, A is the radar equipment, B is the radar target, i.e., the ship, and C is the berth. First, measure and enter the distance range and angle range of the berth facilities in the port relative to the radar equipment. The distance range consists of the minimum distance and the maximum distance; the angle range consists of the minimum angle and the maximum angle. Sort all berths in the port in ascending order by the minimum distance to form a first set; sort all berths in the port in ascending order by the minimum angle to form a second set. The second step is to receive the target data of the radar equipment. The third step is to determine whether the radar target has generated an arrival or departure. Specifically, determine the current state of the radar target. If it is not in a berthing state, perform an arrival or departure judgment. If it is in a berthing state, perform an departure or departure judgment. Among them, the arrival (at) berthing judgment rule and method: according to the target distance, use a binary search algorithm to find a third set whose distance value meets the set threshold range from the first set, and use a binary search algorithm to find a fourth set that meets the threshold range from the second set according to the target angle. Further, determine whether the radar target is within the berth range. The calculation method of the radar target R within the berth B range is: the R distance is between the minimum distance and the maximum distance of B, and the R angle is between the minimum angle and the maximum angle of B. Select the intersection from the third set and the fourth set. If the intersection berth is empty, no berthing occurs. If the intersection berth is not empty, berthing occurs. Further, when there are multiple intersection berths, the berth with the smallest distance difference is selected as the berth to enter. The rules and methods for leaving the berth are generally the same as the rules and methods for arriving (in) the berth, except that when the intersection berth is empty, it is determined to leave the berth. If it is not empty, it is determined that the berth has not been left. Finally, record and update the radar target departure data.
[0100] After the berth-to-unberth master system 902 generates the arrival and departure data of the radar target berth, when the arrival data is generated, that is, when it is determined that the ship enters the berth, the berth-to-unberth master system 902 sends an identification instruction to the ship identification system 906, and the ship identification system 906 sends a shooting and transmission radar target image instruction to the ship image acquisition system 908 after receiving the instruction, so that the ship image acquisition system 908 takes a picture of the ship entering the berth and sends the obtained image to the ship image acquisition system 908. The ship identification system 906 identifies the ship name based on the OCR text recognition technology, and further uses the ship name to obtain detailed information of the ship from the ship information system 910, including at least the ship MMSI, ship name, call sign, IMO, captain, ship price and other information. Finally, the berth-to-unberth master system 902 obtains the ship information from the ship identification system 906, and records the arrival and departure data of the ship with the ship as the main body.
[0101] Fig.11 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown; wherein the electronic device 110 includes a memory 1102, a processor 1104, and a computer program stored in the memory 1102 and executable on the processor 1104, and when the processor 1104 executes the computer program, the steps of the method for generating ship business data as described above are implemented.
[0102] The electronic device 110 provided by the present invention, when the processor 1104 executes a computer program, implements the steps of the method for generating the above-mentioned ship business data, which can achieve the technical effect of any of the above-mentioned embodiments and will not be repeated.
[0103] An embodiment of the fourth aspect of the present invention provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for generating ship business data as described in any one of the above items are implemented.
[0104] The storage medium provided by the present invention, when the computer program is executed by the processor, implements the steps of the above-mentioned method for generating ship business data, which can achieve the technical effects of any of the above-mentioned embodiments and will not be repeated here.
[0105] A storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. The storage medium may be an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above devices, but is not limited thereto. A non-exhaustive list of more specific examples of storage media includes: portable computer floppy disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory card, floppy disk, encoding mechanical device (such as a punched card or a groove with a raised structure with instructions recorded) and any suitable combination of the above devices. The storage medium used herein should not be understood as a transmission signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media, or electrical signals transmitted through wires, etc.
[0106] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance unless otherwise clearly specified and limited; the terms "connection", "installation", "fixation" and the like should be understood in a broad sense, for example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0107] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0108] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for generating ship business data, characterized in that: include: Obtain radar data of ships; Determining first data information of the ship according to the radar data, wherein the first data information includes arrival time, berth information and departure time, and the berth information includes berth name and berth location; Determine the name of the ship according to the berth information; Determine second data information of the ship according to the name of the ship, the second data information including the ship MMSI and the ship name; Combining the first data information and the second data information to obtain ship business data; The step of determining the first data information of the ship according to the radar data comprises: Acquire range information of a plurality of berths relative to the radar device, wherein the range information includes a distance range and an angle range; sorting the plurality of berths according to the distance range and generating a first berth set; sorting the plurality of berths according to the angle range and generating a second berth set; Determine the first data information according to the radar data, the range information, the first berth set, and the second berth set; The step of determining the first data information according to the radar data, the range information, the first berth set, and the second berth set comprises: Determining the state of the ship according to the radar data; determining a third berth set in the first berth set according to distance information in the radar data; determining a fourth berth set in the second berth set according to the angle information in the radar data; Based on the state of the ship being a non-berthed state, and the third berth set and the fourth berth set having the same berth, acquiring the berth information of the same berth, and using the current time as the berthing time; Based on the state of the ship being in a berthed state, and the third berth set and the fourth berth set do not have the same berth, the current time is used as the unberthed time; The determining a third berth set from the first berth set according to the distance information in the radar data specifically includes: Using a binary search algorithm in the first berth set to determine the minimum distance or maximum distance between the distance information and the set threshold range from the minimum distances or maximum distances of the plurality of berths; Determine a plurality of corresponding berths according to the minimum distance or the maximum distance, and combine the plurality of berths to obtain the third berth set; The determining a fourth berth set in the second berth set according to the angle information in the radar data specifically includes: Using a binary search algorithm in the second berth set to determine the minimum angle or maximum angle that satisfies a set threshold range between the minimum angles or maximum angles of the plurality of berths; A plurality of corresponding berths are determined according to the minimum angle or the maximum angle, and the plurality of berths are combined to obtain the fourth berth set.
2. The method for generating ship business data according to claim 1, characterized in that: The step of determining the name of the ship according to the berth information comprises: Acquiring image information of the ship according to the berth information; The name of the ship is determined according to the image information of the ship.
3. A system for generating ship business data, characterized in that: include: A first acquisition module, the first acquisition module is used to acquire radar data of the ship; a first determining module, the first determining module being used to determine first data information of the ship according to the radar data, wherein the first data information includes arrival time, berth information and departure time; a second determining module, the second determining module being used to determine the name of the ship according to the berth information; A third determination module, the third determination module is used to determine the second data information of the ship according to the name of the ship, the second data information includes the ship MMSI and the ship name; A combining module, the combining module is used to combine the first data information and the second data information to obtain ship business data; The first determining module comprises: A second acquisition module, the second acquisition module is used to acquire range information of multiple berths relative to the radar device, the range information including a distance range and an angle range; A first sorting module, the first sorting module is used to sort the plurality of berths according to the distance range and generate a first berth set; a second sorting module, the second sorting module being used to sort the plurality of berths according to the angle range and generate a second berth set; a fourth determining module, the fourth determining module being configured to determine the first data information according to the radar data, the range information, the first berth set, and the second berth set; The fourth determination module comprises: A judgment module, the judgment module is used to judge the state of the ship according to the radar data; a fifth determining module, configured to determine a third berth set in the first berth set according to distance information in the radar data; a sixth determining module, the sixth determining module being configured to determine a fourth berth set in the second berth set according to the angle information in the radar data; a first processing module, the first processing module being configured to obtain the berth information of the same berth based on the state of the ship being a non-berthed state and the third berth set and the fourth berth set having the same berth, and using the current time as the berth arrival time; a second processing module, the second processing module being configured to use the current time as the unberthing time based on the state of the ship being in a berthed state and the third berth set and the fourth berth set having no common berth; The determining a third berth set from the first berth set according to the distance information in the radar data specifically includes: Using a binary search algorithm in the first berth set to determine the minimum distance or maximum distance between the distance information and the set threshold range from the minimum distances or maximum distances of the plurality of berths; Determine a plurality of corresponding berths according to the minimum distance or the maximum distance, and combine the plurality of berths to obtain the third berth set; The determining a fourth berth set in the second berth set according to the angle information in the radar data specifically includes: Using a binary search algorithm in the second berth set to determine the minimum angle or maximum angle that satisfies a set threshold range between the minimum angles or maximum angles of the plurality of berths; A plurality of corresponding berths are determined according to the minimum angle or the maximum angle, and the plurality of berths are combined to obtain the fourth berth set.
4. The system for generating ship business data according to claim 3, characterized in that: The second determining module comprises: a third acquisition module, the third acquisition module being used to acquire image information of the ship according to the berth information; A seventh determination module is used to determine the name of the ship according to the image information of the ship.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method for generating ship business data according to claim 1 or 2 are implemented.
6. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for generating ship business data according to claim 1 or 2 are implemented.
Citation Information
Patent Citations
Wharf ship berthing monitoring and recording system and method
CN116208745A