Ship data processing method and device

By setting up a sensing device and a data processing device on the ship, analyzing the ship data to generate status data, and using the CNC center for control, the problem of inability to effectively monitor the safety status of the ship in the prior art is solved, and safe operation and timely early warning are achieved.

CN120279508APending Publication Date: 2025-07-08CIMC BLUEWATER TECH DEV (GUANGDONG) CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510390345.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

The existing technology cannot effectively monitor the safety status of the ship, resulting in the manual monitoring consuming a lot of manpower and material resources and the inability to detect device failures in time, increasing the risk of ship operation.

Method used

By setting up a sensing device on the ship to collect data, using the data processing device to analyze the ship's environment and operating parameters, generate status data, and control it through the CNC center to achieve early warning and monitoring.

Benefits of technology

Effective early warning and monitoring of ships is realized, safe operation of ships is ensured, and the burden of communication resources is reduced and the time to process alarm information is timely.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120279508A_ABST
    Figure CN120279508A_ABST
Patent Text Reader

Abstract

The invention discloses a ship data processing method and equipment, and the method comprises the steps: receiving ship data collected by a sensing device disposed on a ship, and the ship data comprises at least one of ship environment information and ship operation parameters; if the ship data triggers alarm information, state data of the ship is generated according to the ship data and the alarm information, and if the ship data does not trigger the alarm information, the state data of the ship is generated according to the ship data; and sending the state data to a numerical control center, so that the numerical control center controls the ship according to the state data. According to the technical scheme, effective early warning and monitoring of the ship are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of data processing, and particularly relates to a method and device for processing ship data. Background Art

[0002] With the development of technology, the development of ship technology has become more and more modern, and the cargo transportation capacity of ships has also become stronger, which is achieved by various high-tech devices on the ships. It is no longer possible to rely solely on manual monitoring and management for the safety supervision of more and more intelligent ships. This is because relying solely on manual labor requires a large amount of manpower and material resources on the one hand, and on the other hand, it is impossible to detect faults in each device on the ship in a timely manner by relying solely on manual labor, increasing the risk of ship operation.

[0003] Therefore, how to effectively pre-warn and monitor ships is a technical problem that needs to be solved urgently at present. Summary of the Invention

[0004] The purpose of this application is to effectively pre-warn and monitor ships.

[0005] Other features and advantages of this application will become apparent through the following detailed description, or be learned in part through the practice of this application.

[0006] According to one aspect of the embodiments of this application, a method for processing ship data is provided. The method includes:

[0007] Receiving ship data collected by a sensing device arranged on a ship, where the ship data includes at least one of ship environmental information and ship operation parameters;

[0008] If the ship data triggers an alarm message, generating status data of the ship according to the ship data and the alarm message; if the ship data does not trigger an alarm message, generating status data of the ship according to the ship data;

[0009] Sending the status data to a numerical control center so that the numerical control center controls the ship according to the status data.

[0010] According to one aspect of the embodiments of this application, if the ship data triggers an alarm message, generating status data of the ship according to the ship data and the alarm message includes:

[0011] If the ship operation parameters are in a dangerous parameter range, generating a parameter alarm message;

[0012] Associating the parameter alarm message with the ship operation parameters and marking the ship operation parameters with a warning to generate the status data.

[0013] According to one aspect of the embodiments of the present application, the ship environmental information includes the image of the ship environment; if the ship data triggers an alarm message, the state data of the ship is generated according to the ship data and the alarm message, including:

[0014] Select a set number of environmental images as target environmental images, and the shooting time interval between the target environmental images is less than a set duration;

[0015] Compare the target environmental images, and retain the different parts between the target environmental images as difference images;

[0016] Perform grayscale processing on the difference images to obtain target grayscale images, and perform contour recognition on the target grayscale images to obtain target contours;

[0017] Recognize the target contours. If the target contours are recognized as dangerous scenes, generate environmental alarm messages;

[0018] Generate the state data according to the environmental alarm messages and the target environmental images.

[0019] According to one aspect of the embodiments of the present application, performing contour recognition on the target grayscale images to obtain target contours includes:

[0020] Use Gaussian filtering to denoise the target grayscale images to obtain low-noise grayscale images;

[0021] Calculate the gradient amplitude and gradient direction of each pixel point in the low-noise grayscale images. The gradient amplitude represents the intensity of the grayscale change between each pixel point and its adjacent pixel points, and the gradient direction represents the direction in which the pixel point has the fastest grayscale change on the low-noise grayscale images;

[0022] Compare the gradient amplitude between the pixel point and its adjacent pixel points along the gradient direction. If the gradient amplitude of the pixel point is less than that of the adjacent pixel point, update the gradient amplitude of the pixel point to 0. If the gradient amplitude of the pixel point is greater than or equal to that of the adjacent pixel point, retain the gradient amplitude of the pixel point until the gradient amplitude update of each pixel point is completed;

[0023] Take the pixel points with gradient amplitudes greater than a first threshold as first edge points, and take the pixel points with gradient amplitudes less than the first threshold and greater than a second threshold as second edge points, where the first threshold is greater than the second threshold;

[0024] Perform region growing with any first edge point as a seed point, and take the second edge points with a distance less than a set length from the seed point as seed points;

[0025] Perform region growing on the seed points that have not undergone region growing until all seed points have undergone region growing, and re-find the first edge point that has not undergone region growing as the seed point;

[0026] Until all the first edge points have completed region growing, update the seed points to contour points to generate the target contour based on the contour points.

[0027] According to one aspect of the embodiments of the present application, performing contour recognition on the target grayscale image to obtain the target contour includes:

[0028] Obtain the grayscale mean value of each pixel point according to the grayscale of each pixel point in the target grayscale image;

[0029] Traverse each pixel point and calculate the grayscale variance of each pixel point;

[0030] Take the pixel points with variances greater than the global variance threshold as contour points, take the pixel points outside the contour points as non-contour points, and connect the contour points to obtain the target contour. The variance threshold refers to the mean value of the grayscale variances of each pixel point.

[0031] According to one aspect of the embodiments of the present application, a method for processing ship data is provided, and the method includes:

[0032] Receive the status data sent by the data processing device. The status data is generated by the data processing device analyzing the ship data obtained by the sensing device. The ship data includes at least one of environmental information and ship operation parameters;

[0033] According to a preset encryption database, perform cutting and encryption on each status data to obtain encrypted status data;

[0034] Send the encrypted status data to the background data center so that the background data center can decrypt the encrypted status data according to a preset decryption database to obtain the status data.

[0035] According to one aspect of the embodiments of the present application, performing cutting and encryption on each status data according to a preset encryption database to obtain encrypted status data includes:

[0036] Cut the status data into sub-status data of a set length;

[0037] Obtain the target mask corresponding to each sub-status data in the encryption database;

[0038] Sort each target mask according to the arrangement order of the sub-status data to obtain the sequence code corresponding to each target mask;

[0039] Generate a mask unit according to the target mask and the sequence code corresponding to the target mask;

[0040] According to the sequence codes in the mask units, concatenate the mask units to obtain a mask unit string;

[0041] Make the mask unit string concatenate with a time code, a first encrypted password, and a second encrypted password to obtain the encrypted status data.

[0042] According to one aspect of the embodiments of the present application, the method further includes:

[0043] If there is no target mask corresponding to the sub-status data in the encrypted database, add the target mask corresponding to the sub-status data to the encrypted database;

[0044] Before sending the encrypted status data to the background data center, send the updated part of the encrypted database to the background data center to update the decryption database.

[0045] According to one aspect of the embodiments of the present application, a processing device for ship data is provided. The processing device includes:

[0046] A sensing device configured to acquire ship data;

[0047] A data processing device configured to analyze the ship data to obtain status data;

[0048] A numerical control center configured to receive the status data and control the ship according to the status data.

[0049] According to one aspect of the embodiments of the present application, the numerical control center includes:

[0050] A remote communication device configured to cut and encrypt each of the status data according to a preset encrypted database to obtain encrypted status data, and send the encrypted status data to a background data center;

[0051] A background data center configured to decrypt the encrypted status data according to a preset decryption database to obtain the status data, and store the status data.

[0052] In the present application, by receiving ship data collected by a sensing device provided on the ship, the ship data includes at least one of ship environmental information and ship operation parameters; if the ship data triggers an alarm message, then ship status data is generated based on the ship data and the alarm message, and if the ship data does not trigger an alarm message, then ship status data is generated based on the ship data; the status data is sent to the numerical control center so that the numerical control center controls the ship according to the status data. In the present application, the ship data of the ship is obtained through the provided sensing device, and it is immediately determined whether the ship data is abnormal (whether it will trigger an alarm message) when the ship data is obtained. If the alarm message is triggered, it means that the device generating the ship data is abnormal, and the ship status data is generated based on the alarm message and the ship data. Or the status data is directly generated based on the ship data. And it is sent to the numerical control center so that the numerical control center controls the ship according to the status data. Effective early warning monitoring of the ship is realized, and the safe operation of the ship is ensured.

[0053] Other features and advantages of the present application will become apparent from the following detailed description, or will be learned in part through the practice of the present application.

[0054] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. Brief Description of the Drawings

[0055] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.

[0056] Figure 1 The schematic diagram of a processing device for exploring data according to an embodiment of the present application is shown.

[0057] Figure 2 The flowchart of a method for processing ship data with a data processing device as the execution subject according to an embodiment of the present application is shown.

[0058] Figure 3 The flowchart of generating ship status data based on ship data and alarm information if the ship data triggers an alarm message according to an embodiment of the present application is shown.

[0059] Figure 4 The flowchart of generating ship status data based on ship data and alarm information if the ship data triggers an alarm message when the ship environmental information includes an image of the ship environment according to an embodiment of the present application is shown.

[0060] Figure 5 Shows a flowchart of obtaining a target contour by performing contour recognition on a target grayscale image according to an embodiment of the present application.

[0061] Figure 6 Shows a flowchart of obtaining a target contour by performing contour recognition on a target grayscale image according to another embodiment of the present application.

[0062] Figure 7 Shows a flowchart of a method for processing ship data with a remote communication device as the execution entity according to an embodiment of the present application.

[0063] Figure 8 Shows a flowchart of cutting and encrypting each status data to obtain encrypted status data according to a preset encryption database according to an embodiment of the present application.

[0064] Figure 9 Shows a flowchart of updating the encryption database and the decryption database according to an embodiment of the present application.

[0065] Figure 10 Shows a block diagram of a computer device for implementing the method for processing ship data according to an embodiment of the present application. Detailed implementation manners

[0066] Now, example embodiments will be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more complete and comprehensive, and will fully convey the concept of the example embodiments to those skilled in the art.

[0067] In addition, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present application. However, those skilled in the art will realize that the technical solutions of the present application can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the present application.

[0068] The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0069] The flowcharts shown in the accompanying drawings are merely illustrative and not necessarily include all content and operations / steps, nor are they necessarily executed in the described order. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined. Therefore, the actual execution order may change according to the actual situation.

[0070] In the embodiments of the present application, the term "module" or "unit" refers to a computer program with a predetermined function or a part of a computer program, which works together with other related parts to achieve a predetermined goal and can be implemented in whole or in part by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of the overall module or unit that includes the function of the module or unit.

[0071] It should be clear that the present application provides a method for processing ship data, and this processing method runs in a ship data processing device. Among them, the ship data processing device includes a sensing device, a data processing device, a relay device, and a numerical control center. Please refer to Figure 1 , Figure 1 which shows a schematic diagram of a ship data processing device according to an embodiment of the present application. As Figure 1 shown in the content, the following explanations are made for the devices in the figure:

[0072] The sensing device is provided on the ship and is used to collect ship data by collecting data from the devices operating on the ship. The sensing device includes, but is not limited to, temperature sensors, pressure sensors, liquid level sensors, humidity sensors, wind speed sensors, camera devices, etc., meteorological sensors, and other device sensors, and the other device sensors are used to obtain the operating data of the ship devices.

[0073] The ship data includes ship operation parameters, such as the operating data of ship devices collected by sensing devices such as liquid level sensors and other device sensors, which are used to represent the operating state of the ship.

[0074] The ship data includes ship environment information, such as the data of the ship's environment collected by sensors such as temperature sensors, meteorological sensors, and camera devices.

[0075] The ship data includes collecting the ship's operation parameters and also includes collecting the ship's environmental information. On the one hand, it is because the early warning and monitoring of the ship need to consider not only the problems that occur in the ship's own operation but also the threats brought by the ship's environment. Through the ship's environmental information, the safety threats brought by environmental changes to the ship can be discovered in a timely manner. On the other hand, it is because during the navigation of the ship, its operating state is easily affected by the environment. Therefore, when recording the ship's operation parameters, recording the ship's environmental information can analyze the impact brought by the ship's environmental information when the ship's operation parameters are abnormal, providing valuable reference for the subsequent optimization of the ship.

[0076] The data processing device is used to analyze the obtained ship data to obtain the ship's status data. For example, it analyzes whether the ship's status parameters exceed the safety threshold. If they exceed the safety threshold, it directly generates alarm information. For example, it analyzes the ship's environmental information to judge whether the ship's environment is normal. If an abnormality (fire, cargo shift) occurs, it directly generates alarm information.

[0077] In some embodiments, when the data processing device analyzes the obtained ship data, it will refine and streamline the ship data, only retaining the matters that the user is concerned about, to obtain the status data. The status data is smaller than the ship data itself, which makes it occupy less communication resources when transmitting the status data, makes the transmission of the status data faster, saves the ship's traffic resources, and reduces the communication resource burden of the ship. On the other hand, it makes the information received by the numerical control center faster and can process the alarm information more timely.

[0078] In some embodiments, the data processing device can be arranged on the ship and is connected to the sensing device in a wired or wireless manner.

[0079] The relay device can be arranged on the ship or not. The relay device is used to transmit the status data to the numerical control center.

[0080] In some embodiments, the relay device includes a front-end communication device and a transfer communication device. Among them, the front-end communication device and the data processing device can be connected in a wired or wireless manner. The front-end communication device and the transfer communication device can be connected in a wired or wireless manner. The transfer communication device is used to send the status data received from the front-end communication device to the numerical control center.

[0081] The numerical control center can be arranged on the ship, or not on the ship, or partly on the ship and partly not on the ship. The numerical control center is used to receive the status data sent by the relay device, and then control or optimize the ship according to the status data and the alarm information, so that the ship can operate safely.

[0082] In some embodiments, the numerical control center includes a control center which is installed on the ship and used to control the ship according to the status data and alarm information, so that the ship can operate safely.

[0083] In some embodiments, the numerical control center includes a mobile control terminal which can be carried by the employees on the ship and used to control the ship according to the status data at any time and place, or to change the internal environment of the ship, so that the ship can operate safely. The user terminal can receive various operation data and alarm information and has functions of manually adding and deleting alarm items. It can manually eliminate false alarm information or add newly discovered alarm information according to the on-site situation, which improves the reliability of the equipment.

[0084] In some embodiments, the numerical control center includes a remote communication device and a background data center. The remote communication device is used to receive the status data sent by the relay device and encrypt and send the status data to the background data center. The background data center is used to display various operation data and alarm information. The main devices are the computer host and the graphical interface displayed on the display screen. By collecting the ship data of the ship and through data accumulation, the design scheme is continuously optimized and adjusted. For safety considerations, the background data center only has simple data display and recording functions and cannot remotely control the ship. The alarm information of the background data center mainly includes displaying the alarm content. In necessary cases, technicians can provide technical guidance to the maintenance personnel on the ship.

[0085] It should be clear that the remote communication device can be wirelessly connected or limitedly connected to the relay device. The background data center is wirelessly connected to the remote communication device and may not be installed on the ship. The communication methods of the remote communication device mainly include VHF radio communication, satellite communication, MF / HF radio communication, and mobile network communication. When the ship is close to the shore, it mainly relies on mobile network communication. In areas without mobile network communication, it relies on VHF radio communication, satellite communication, and MF / HF radio communication.

[0086] It should be clear that for the devices using wireless connection (except the sensing device), they may not be installed on the ship. However, the optimal embodiment is that except for the background data center among all the above devices, other devices are installed on the ship, which can enable good data transmission.

[0087] To facilitate the description of the data processing process of the ship data and make the ship data processing method executed by the data processing device, please refer to Figure 2 , Figure 2The figure shows a flowchart of a method for processing ship data with a data processing device as the execution subject according to an embodiment of the present application. The embodiment of the present application provides a processing step of ship data with a data processing device as the execution subject, including:

[0088] Step S210, receiving ship data collected by a sensing device arranged on the ship, where the ship data includes at least one of ship environment information and ship operation parameters;

[0089] Step S220, if the ship data triggers an alarm message, generating status data of the ship according to the ship data and the alarm message; if the ship data does not trigger an alarm message, generating status data of the ship according to the ship data;

[0090] Step S230, sending the status data to the numerical control center so that the numerical control center controls the ship according to the status data.

[0091] The above three steps are described in detail below.

[0092] In step S210, the sensing device collects the devices operating in the ship and the environment of the ship to collect ship data. The ship data includes at least one of ship operation parameters and ship environment information. Ship operation parameters are the operation data of the devices in the ship collected by sensors such as liquid level sensors and other device sensors, which are used to represent the operation state of the devices. Ship environment information is the data of the environment where the ship is located collected by sensors such as temperature sensors, meteorological sensors, and imaging devices.

[0093] The ship data includes collecting ship operation parameters and also includes collecting ship environment information. On the one hand, it is because the early warning and monitoring of the ship should not only consider the problems that occur in the ship's own operation, but also consider the threats brought by the ship's environment to the ship. Through the ship environment information, the safety threats brought by environmental changes to the ship can be discovered in time. On the other hand, it is because during the navigation of the ship, its operation state is easily affected by the environment. Therefore, when recording the ship operation parameters, recording the ship environment information can analyze the impact brought by the ship environment information when the ship operation parameters are abnormal, providing valuable reference for the subsequent optimization of the ship.

[0094] In some embodiments, the sensing device sends the collected ship data to the data processing device at intervals of a set time period. Or the data processing device obtains the ship data collected by the sensing device from the sensing device at intervals of a set time period. In some embodiments, the sensing device obtains the ship operation parameters generated during the operation of the ship in real time.

[0095] In step S220, the data processing device analyzes the ship data to determine whether the ship data can trigger alarm information. It should be clear that there can be multiple ship data, and each ship data represents the operating parameters of a certain device on the ship or the environmental information of the site. It should be further clear that each alarm information has corresponding ship data to clarify where the problem occurs on the ship.

[0096] Specifically, in some embodiments, if the ship operating parameters are not within the parameter standard corresponding to the current operating state, alarm information is directly generated. For example, when the engine power is the ship operating parameter, the engine power of the ship should be within the power range corresponding to the current ship speed at the current ship speed. If the engine power in the ship operating parameters is not within this power range, the corresponding alarm information is generated to warn that there is a problem with the engine power.

[0097] In some embodiments, when the environment of the ship's cargo area is the ship environmental information, if the current environmental information of the cargo area is inconsistent with the preset environmental standard, alarm information is directly generated. For example, if it is found that the temperature is abnormal or a flame contour appears in the environmental information of the cargo area, while the preset environmental standard has a lower temperature and no flame contour, in this case, alarm information is directly generated.

[0098] In some embodiments, if the ship data triggers alarm information, the state data of the ship is generated according to the ship data and the alarm information. If the ship data does not trigger alarm information, the state data of the ship is generated according to the ship data. It should be clear that when the data processing device analyzes the obtained ship data, it will refine and streamline the ship data or only retain the matters that the user is concerned about to obtain the state data. The state data is smaller than the ship data itself, which makes it occupy less communication resources when transmitting the state data, makes the transmission of the state data faster, saves the traffic resources of the ship, and reduces the communication resource burden of the ship. On the other hand, it makes the information received by the numerical control center faster and enables the alarm information to be processed more timely.

[0099] In step S230, the state data is sent to the numerical control center so that the numerical control center receives the state data, and then controls the ship according to the state data and the alarm information, so that the ship can operate safely.

[0100] Please refer to Figure 3 , Figure 3 FIG. shows a flowchart of generating the state data of a ship according to the ship data and the alarm information if the ship data triggers the alarm information according to an embodiment of the present application. The embodiment of the present application provides step S220 of generating the state data of a ship according to the ship data and the alarm information if the ship data triggers the alarm information, including:

[0101] Step S221a, if the ship operation parameters are within the dangerous parameter range, generate parameter alarm information;

[0102] Step S222a, associate the parameter alarm information with the ship operation parameters, and mark the ship operation parameters with a warning to generate status data.

[0103] The following describes the above two steps in detail.

[0104] In step S221a, judge whether each obtained ship operation parameter is within the dangerous parameter range. If the ship operation parameters are within the dangerous parameter range, generate parameter alarm information to warn that the ship device corresponding to the ship operation parameter has a fault.

[0105] In step S222a, associate the parameter alarm information with the ship operation parameters, and mark the ship operation parameters with a warning. Then, generate status data from the marked ship operation parameters and the parameter alarm information, so that the control center can quickly know which ship operation parameter is abnormal according to the parameter alarm information, and then determine which ship device has a fault.

[0106] Please refer to Figure 4 , Figure 4 , which shows a flowchart of generating the status data of a ship according to ship data and alarm information when the ship environmental information includes an image of the ship's environment and the ship data triggers alarm information. The present application provides step S220 of generating the status data of a ship according to ship data and alarm information when the ship environmental information includes an image of the ship's environment and the ship data triggers alarm information, including:

[0107] Step S221b, select a set number of environmental images as target environmental images, and the shooting time interval between the target environmental images is less than a set duration;

[0108] Step S222b, compare the target environmental images, and retain the different parts between the target environmental images as the difference image;

[0109] Step S223b, perform grayscale processing on the difference image to obtain a target grayscale image, and perform contour recognition on the target grayscale image to obtain a target contour;

[0110] Step S224b, identify the target contour. If the target contour is identified as a dangerous scene, generate environmental alarm information;

[0111] Step S225b, generate status data according to the environmental alarm information and the target environmental images.

[0112] The following describes the above 5 steps in detail.

[0113] In step S221b, a set number of environmental images are selected as target environmental images, and the shooting time interval between the target environmental images is less than a set duration.

[0114] In some embodiments, a camera device is provided on the ship to monitor areas of the ship that are vulnerable to environmental influences. Environmental images can be obtained by taking photos, or videos can be taken and then environmental images can be extracted from the videos according to set rules. For example, multiple environmental images can be obtained by taking frames at intervals of a set duration from a video.

[0115] In some embodiments, the shooting device can assist shooting devices such as an infrared imager, a night vision device, etc.

[0116] In some embodiments, the shooting time interval between the target environmental images is made less than a set duration. This is because this will make the shooting times of multiple target environmental images adjacent, and by comparing multiple adjacent target environmental images, objects that change rapidly in the target environmental images can be obtained. Based on the characteristic that the contour of a firework changes rapidly, by comparing multiple adjacent target environmental images, it can be determined whether the scene in the target environmental images changes rapidly. If a rapid change occurs, there may be an area in the target environmental images. By relying on the characteristic that the contour of a firework is easily variable, the accuracy of ship fire monitoring is ensured.

[0117] In some embodiments, two environmental images are selected as target environmental images.

[0118] In step S222b, the target environmental images are compared, and the parts with differences between the target environmental images are retained as difference images.

[0119] In some embodiments, the target environmental images are placed on different layers. The layers are compared to determine the different parts between the target environmental images. Finally, the different parts are saved as a new image, which is the difference image.

[0120] In some embodiments, the color values (such as RGB values) of the corresponding pixel points of the target environmental images are subtracted to obtain a difference image. If the color values of the corresponding pixel points are exactly the same, the difference is 0; if there are differences, the difference is not 0. For example, for an RGB image, if the color value of a certain pixel point in image 1 is (255, 0, 0) and the color value of the corresponding pixel point in image 2 is (200, 0, 0), then the color value of this pixel point in the difference image is (55, 0, 0). By setting a threshold, the pixel points with differences greater than the threshold are considered as different parts, and the pixel points less than the threshold are considered as the same parts, thereby extracting the difference image.

[0121] In step S223b, the difference image is grayscaled to obtain a target grayscale image, and the target contour is obtained by performing contour recognition on the target grayscale image.

[0122] Exemplarily, the average value of the RGB values of each pixel in the color image is taken, and this average value is used as the grayscale value to replace the original RGB values. Formula: Gray = (R + G + B) / 3, where R, G, and B respectively represent the values of the red, green, and blue color channels of the pixel point, and Gray is the converted grayscale value, to obtain the target grayscale image. Then, the following method is used to perform contour extraction on the target grayscale image.

[0123] Please refer to Figure 5 , Figure 5 which shows a flowchart of obtaining the target contour by performing contour recognition on the target grayscale image according to an embodiment of the present application. The embodiment of the present application provides step S223b of obtaining the target contour by performing contour recognition on the target grayscale image, including:

[0124] Step S301, denoising the target grayscale image using Gaussian filtering to obtain a low-noise grayscale image;

[0125] Step S302, calculating the gradient magnitude and gradient direction of each pixel point in the low-noise grayscale image. The gradient magnitude represents the intensity of the grayscale change between each pixel point and its adjacent pixel points, and the gradient direction represents the direction in which the grayscale changes fastest on the low-noise grayscale image;

[0126] Step S303, comparing the gradient magnitude between a pixel point and its adjacent pixel points along the gradient direction. If the gradient magnitude of the pixel point is less than that of the adjacent pixel point, the gradient magnitude of the pixel point is updated to 0. If the gradient magnitude of the pixel point is greater than or equal to that of the adjacent pixel point, the gradient magnitude of the pixel point is retained until the gradient magnitude update of each pixel point is completed;

[0127] Step S304, taking the pixel points with gradient magnitudes greater than the first threshold as the first edge points, and taking the pixel points with gradient magnitudes less than the first threshold and greater than the second threshold as the second edge points, where the first threshold is greater than the second threshold;

[0128] Step S305, using any one of the first edge points as a seed point for region growing, and taking the second edge points with a distance less than the set length from the seed point as seed points;

[0129] Step S306, performing region growing on the seed points that have not undergone region growing until all seed points have undergone region growing, and re-finding the first edge points that have not undergone region growing as seed points;

[0130] Step S307: Until all the first edge points have completed region growing, update the seed points to contour points, so as to generate a target contour based on the contour points.

[0131] The above 7 steps will be described in detail below.

[0132] In step S301, the Gaussian filter is used to denoise the target grayscale image to obtain a low-noise grayscale image. The Gaussian filter is used to smooth the target grayscale image, aiming to reduce the noise in the target grayscale image. Noise may lead to false contour recognition results. By Gaussian filtering, the contours in the image can be made clearer and the interference of noise on subsequent contour recognition can be reduced.

[0133] In some embodiments, according to the grayscale of each pixel point in the low-noise grayscale image, the grayscale mean value of the pixel points is obtained. Each pixel point is traversed, and the grayscale variance of each pixel point is calculated, that is, the square of the difference between each pixel point and the grayscale mean value is calculated. Only the pixel points with a variance greater than the global variance threshold are retained in the low-noise grayscale image. This can pre-screen the low-noise grayscale image in advance, making the target contour more accurate.

[0134] In step S302, the gradient magnitude and gradient direction of each pixel point in the low-noise grayscale image are calculated.

[0135] Exemplarily, the first-order partial derivatives of the low-noise grayscale image are calculated through convolution kernels in the horizontal and vertical directions, so as to obtain the grayscale changes of each pixel point in the low-noise grayscale image in the first direction and the second direction, and then the gradient magnitude and gradient direction are obtained. Each pixel point determines its own first direction and second direction centered on itself. In some embodiments, the first direction is the horizontal direction and the second direction is the vertical direction. The gradient magnitude represents the intensity of the grayscale change at the pixel point, that is, the grayscale comparison result between the pixel point and the adjacent pixel points in the first direction and the second direction of the pixel point, and the gradient direction represents the direction in which the grayscale changes fastest on the low-noise grayscale image.

[0136] In step S303, after obtaining the gradient magnitude and gradient direction of the pixel points, a non-maximum suppression operation is performed on the gradient magnitude. This step is to refine the contour, and only the pixel points with the local maximum gradient are retained as contour points, and other non-maximum points are suppressed.

[0137] The specific method is that for each pixel point, its gradient magnitude is compared with the gradient magnitudes of the adjacent pixel points along the gradient direction. If the gradient magnitude of the pixel point is not the local maximum, its value is set to 0, so as to obtain a thinner edge.

[0138] That is, the gradient magnitude between a pixel and its adjacent pixel along the gradient direction is compared. If the gradient magnitude of the pixel is less than that of the adjacent pixel, the gradient magnitude of the pixel is updated to 0. If the gradient magnitude of the pixel is greater than or equal to that of the adjacent pixel, the gradient magnitude of the pixel is retained until the gradient magnitude update of each pixel is completed.

[0139] In step S304, pixels with a gradient magnitude greater than the first threshold are used as first edge points, and pixels with a gradient magnitude less than the first threshold and greater than the second threshold are used as second edge points, where the first threshold is greater than the second threshold. Pixels with a gradient magnitude less than the second threshold are directly discarded as non-contour points.

[0140] In step S305, taking any first edge point as a seed point for region growing, and taking second edge points whose distance from the seed point is less than a set length as seed points.

[0141] In step S306, that is, continuously searching for second edge points around a first edge point as seed points, and then continuing to search for adjacent second edge points as seed points based on the newly generated seed points until there are no second edge points near the newly generated seed points, and then re-searching for first edge points that have not undergone region growing as seed points. In this way, all first edge points and second edge points near all first edge points are used as contour points.

[0142] After the above steps, all second edge points connected to the first edge points are included in the contour points, while those isolated second edge points (i.e., second edge points not connected to any first edge point) are excluded. What is finally obtained is the contour points composed of the first edge points and the second edge points connected thereto. This ensures the comprehensiveness and accuracy of the contour points.

[0143] In step S307, through the above steps, all first edge points and second edge points near all first edge points are used as contour points to generate a target contour according to the contour points.

[0144] Exemplarily, a starting point is selected, and then the next point is determined according to the distance and angle from the starting point, and so on until all contour points are sorted. Connecting all contour points in sequence to obtain the target contour. In some embodiments, all contour points can also be linearly fitted to directly obtain the target contour.

[0145] Please refer to Figure 6 , Figure 6 which shows a flowchart of contour recognition of a target grayscale image to obtain a target contour according to another embodiment of the present application. The embodiment of the present application provides step S223b for contour recognition of a target grayscale image to obtain a target contour, including:

[0146] Step S401: Obtain the gray - scale mean value of the pixel points according to the gray - scale of each pixel point in the target gray - scale image.

[0147] Step S402: Traverse each pixel point and calculate the variance of each pixel point.

[0148] Step S403: Take the pixel points with variances greater than the global variance threshold as contour points, and the pixel points outside the contour points as non - contour points. Connect the contour points to obtain the target contour. The variance threshold refers to the mean value of the gray - scale variances of each pixel point.

[0149] The above four steps are described in detail below.

[0150] In step S401, according to the gray - scale of each pixel point in the target gray - scale image, obtain the gray - scale mean value of the pixel points. In some embodiments, the target gray - scale image can be denoised before obtaining the gray - scale of each pixel point to ensure the effect of obtaining the target contour.

[0151] In step S402, traverse each pixel point and calculate the gray - scale variance of each pixel point, that is, calculate the square of the difference between each pixel point and the gray - scale mean value.

[0152] In step S403, take the mean value of the gray - scale variances of each pixel point as the global variance threshold. In some embodiments, other statistics such as the median of the variance can also be used as the global variance threshold. Take the pixel points with variances greater than the global variance threshold as contour points, and the pixel points outside the contour points as non - contour points. Connect or fit the contour points to obtain the target contour.

[0153] In step S224b, identify the target contour, extract the contour features of the target contour, and identify the target contour according to the contour features. For example, compare with the pre - stored firework contour features. If the target contour features match the firework contour features, it means that there is a fire on the ship. The target contour will be identified as a dangerous scene to generate environmental alarm information.

[0154] In step S225b, generate status data according to the environmental alarm information and the target environmental image, and send it to the numerical control center so that the numerical control center can extinguish the fire on the ship.

[0155] To facilitate the description of the data processing process of ship data and enable the data processing method of ship data to be executed by a remote communication device, it should be clear that in some embodiments, the numerical control center includes a remote communication device and a background data center. The remote communication device is used to receive the status data sent by the relay device and encrypt the status data and then send it to the background data center. The background data center is used to display various operation data and alarm information, and the main devices are the computer host and the graphical interface displayed on the display screen. By collecting the working status data of the ship and through data accumulation, the design scheme is continuously optimized and adjusted. For safety considerations, the background data center only has simple data display and recording functions and cannot remotely control the ship. The alarm information of the background data center mainly includes displaying the alarm content. In necessary cases, technicians can provide technical guidance to the maintenance personnel on the ship.

[0156] Please refer to Figure 7 , Figure 7 which shows a flowchart of a method for processing ship data with a remote communication device as the execution subject according to an embodiment of the present application. The embodiment of the present application provides a processing step of ship data with a remote communication device as the execution subject, including:

[0157] Step S510, receiving the status data of the data processing device, where the data is generated by the data processing device analyzing the ship data obtained by the sensing device, and the ship data includes at least one of environmental information and ship operation parameters;

[0158] Step S520, according to the preset encryption database, cutting and encrypting each status data to obtain encrypted status data;

[0159] Step S530, sending the encrypted status data to the background data center so that the background data center can decrypt the encrypted status data according to the preset decryption database to obtain the status data.

[0160] The above three steps are described in detail below.

[0161] In step S510, the status data of the data processing device is received. The status data is generated by the data processing device analyzing the ship data obtained by the sensing device, and the ship data includes at least one of environmental information and ship operation parameters. It should be clear that in some embodiments, the data processing device and the remote communication device can be connected by wire or wirelessly. In other embodiments, the data processing device and the remote communication device are connected via a relay device, and the relay device and the remote communication device can be connected by wire or wirelessly.

[0162] In step S520, according to the preset encryption database, each status data is cut and encrypted to obtain encrypted status data.

[0163] Exemplarily, the larger status data is cut into smaller sub-status data, and each sub-status data is encrypted separately. And according to the sorting of the sub-status data during the cutting, the front-back order of each encrypted sub-status data is obtained. Finally, each encrypted sub-status data is packaged and sent to the control center, so that the control center uses the decryption database to decrypt each encrypted sub-status data to obtain the sub-status data, and finally splices the sub-status data according to the arrangement order of each sub-status data to obtain the complete status data.

[0164] In step S530, the encrypted status data is sent to the background data center, so that the background data center can decrypt the encrypted status data according to the preset decryption database to obtain the status data. The decryption database is used to parse the encrypted status data encrypted by the encryption database to obtain the decrypted status data.

[0165] Please refer to Figure 8 , Figure 8 shows a flowchart of cutting and encrypting each status data according to a preset encryption database to obtain encrypted status data according to an embodiment of the present application. The embodiment of the present application provides step S520 of cutting and encrypting each status data according to a preset encryption database to obtain encrypted status data, including:

[0166] Step S521, cutting the status data into sub-status data of a set length;

[0167] Step S522, obtaining the target mask corresponding to each sub-status data in the encryption database;

[0168] Step S523, sorting each target mask according to the arrangement order of the sub-status data to obtain the sequence code corresponding to each target mask;

[0169] Step S524, generating a mask unit according to the target mask and the sequence code corresponding to the target mask;

[0170] Step S525, concatenating each mask unit according to the sequence code in the mask unit to obtain a mask unit string;

[0171] Step S526, making the mask unit string concatenate the time code, the first encryption password, and the second encryption password to obtain the encrypted status data.

[0172] The above 5 steps will be described in detail below.

[0173] In step S521, it should be clear that the following operations are performed on each state data. First, the state data is cut into sub-state data of a set length. If the last sub-state data is less than the set length, it is padded with dummy codes. In some embodiments, the state data can also be evenly divided into a set number of sub-state data.

[0174] In some embodiments, the state data is cut into short data of equal length, and each short data is a sub-state data. For example, if 65536 bytes are defined as a state data and 128 bytes are defined as a short data, then the state data can be cut into 512 short data, and the insufficient part can be padded with dummy codes.

[0175] In step S522, the target masks corresponding to the sub-state data are obtained from the encryption database, and the target masks are used to replace the sub-state data.

[0176] In step S523, the target masks are sorted to obtain the sequence codes corresponding to the target masks. That is, according to the arrangement order of the sub-state data, the target masks corresponding to the respective sub-state data are sorted to obtain the sequence codes corresponding to the target masks.

[0177] In step S524, a mask unit is generated according to the target mask and the sequence code corresponding to the target mask. For example, by concatenating the target mask and its corresponding sequence mask, a mask unit can be obtained.

[0178] In step S525, according to the sequence codes in the mask units, the mask units are concatenated to obtain a mask unit string. That is, the order between the mask units in the mask unit string is sorted according to the sequence codes.

[0179] Exemplarily, sequence code 0000000001 + target mask 1... sequence code 00000000010 + target mask 10.

[0180] In step S526, the mask unit string is concatenated with the time code, the first encryption code, and the second encryption code. The first encryption code and the second encryption code are located at set positions to obtain the encrypted state data.

[0181] In some embodiments, the encrypted state data is composed of the first encryption code + time code + mask string + second encryption code. The time code is taken from the acquisition time of the state data. The first encryption code and the second encryption code are used to verify that the encrypted state data can be received by the background data center.

[0182] Please refer to Figure 9 , Figure 9 shows a flowchart for updating the encryption database and the decryption database according to an embodiment of the present application. The embodiments of the present application provide steps for updating the encryption database and the decryption database, including:

[0183] Step S601: If there is no target mask corresponding to the sub-state data in the encryption database, then add the target mask corresponding to the sub-state data to the encryption database.

[0184] Step S602: Before sending the encrypted status data to the background data center, send the updated part of the encryption database to the background data center to update the decryption database.

[0185] The following is a detailed description of the above two steps.

[0186] In step S601, when determining the target mask of the sub-state data, if there is no target mask corresponding to the sub-state data in the encryption database, then add the target mask corresponding to the sub-state data to the encryption database to update the encryption database. The encryption database is a dynamic quantity generated continuously during the operation process. Since the operation data of the ship is relatively stable, within a certain period, the data changes little, and most of the data is the same, which facilitates the creation of the encryption database. For a 128-byte sub-state data, the corresponding target mask is only 8 - 16 bytes, much lower than the sub-state data itself, which can reduce the difficulty of data transmission. The decryption database is updated regularly or when the encrypted data is updated to enable the decryption database to better decrypt the encrypted status data.

[0187] In step S602, before sending the encrypted status data to the background data center, send the updated part of the encryption database to the background data center to update the decryption database. To avoid leakage of the encrypted status data, the updated part of the decryption database is not sent simultaneously with the encrypted status data.

[0188] The updated part of the encryption database can also be sent to the background data center to update the decryption database within a set time after sending the encrypted status data.

[0189] In some embodiments, the encrypted status data to be sent is sent in any order within a set duration, not strictly in chronological order (since there is a time code in the encrypted status data, it is not necessary to send it strictly in chronological order, and the background data center can sort it according to the time code after decryption), which can improve the reliability of the encrypted status data.

[0190] In some embodiments, after obtaining the encrypted status data, the back-end data center first verifies it using the first encryption key and the second encryption key to obtain a mask unit string. Then, it sorts the mask unit string according to the time code to determine the decryption order of the mask unit string. The mask unit string to be decrypted is split in series to obtain each mask unit. The target mask is obtained from the mask unit, and each sub-status data is obtained from the target mask and the decryption database. The sub-status data is concatenated in order according to the sequence code to obtain the status data.

[0191] In some embodiments, there is also a processing device for ship data, which is used to execute the method described in this application. The processing device includes:

[0192] A sensing device configured to obtain ship data;

[0193] A data processing device configured to analyze the ship data to obtain status data;

[0194] A numerical control center configured to receive the status data and control the ship according to the status data.

[0195] Among them, the numerical control center includes:

[0196] A remote communication device configured to cut and encrypt each status data according to a preset encryption database to obtain encrypted status data, and send the encrypted status data to the back-end data center;

[0197] A back-end data center configured to decrypt the encrypted status data according to a preset decryption database to obtain status data and store the status data.

[0198] Among them, the numerical control center further includes:

[0199] A mobile control terminal. The numerical control center includes a mobile control terminal, which can be carried by the employees on the ship and can control the ship or change the internal environment of the ship at any time and place according to the status data, so that the ship can operate safely. The user terminal can receive various operation data and alarm information, and has functions of manually adding and deleting alarm items. It can manually eliminate false alarm information or add newly discovered alarm information according to the on-site situation, increasing the reliability of the equipment.

[0200] Among them, the numerical control center further includes:

[0201] The numerical control center includes a control center, which is located on the ship. It is used to control the ship according to the status data and alarm information, so as to enable the ship to operate safely.

[0202] Figure 10The block diagram of a computer device for implementing a method for processing ship data according to an embodiment of the present application is shown.

[0203] It should be noted that Figure 10 The shown computer device 800 is only an example and should not bring any idle to the functions and usage scope of the embodiments of the present application.

[0204] As Figure 10 shown, the computer device 800 includes a central processing unit 801 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 802 (ROM) or the program loaded from the storage section 808 into the random access memory 803 (RAM). In the random access memory 803, various programs and data required for device operation are also stored. The central processing unit 801, the read-only memory 802, and the random access memory 803 are connected to each other via a bus 804. The input / output interface 805 (Input / Output interface, i.e., I / O interface) is also connected to the bus 804.

[0205] The following components are connected to the input / output interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a local area network card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read from it can be installed into the storage section 808 as needed.

[0206] Particularly, according to the embodiments of the present application, the processes described in each method flowchart can be implemented as computer software programs. For example, the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit 801, various functions defined in the device of the present application are executed.

[0207] It should be noted that the computer-readable medium shown in the embodiments of the present application may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or component, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in conjunction with an instruction execution device, apparatus, or component. In the present application, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in conjunction with an instruction execution device, apparatus, or component. The program code contained on the computer-readable medium may be transmitted by any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0208] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of devices, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, may be implemented by a dedicated hardware-based device for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0209] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0210] Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software or by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (such as a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.

[0211] After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily conceive of other embodiments of the present application. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include known common knowledge or conventional technical means in the technical field not disclosed in the present application.

[0212] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only defined by the appended claims.

Claims

1. A method for processing ship data, characterized in that, The method includes: Receiving ship data collected by a sensing device provided on the ship, where the ship data includes at least one of ship environment information and ship operation parameters; If the ship data triggers an alarm message, generating status data of the ship based on the ship data and the alarm message; if the ship data does not trigger an alarm message, generating the status data of the ship based on the ship data; Sending the status data to a numerical control center so that the numerical control center controls the ship according to the status data.

2. The method according to claim 1, characterized in that, If the ship data triggers an alarm message, generating the status data of the ship based on the ship data and the alarm message includes: If the ship operation parameters are in a dangerous parameter range, generating a parameter alarm message; Associating the parameter alarm message with the ship operation parameters and performing a warning mark on the ship operation parameters to generate the status data.

3. The method according to claim 1, wherein The ship environment information includes an image of the ship environment; If the ship data triggers an alarm message, generating the status data of the ship based on the ship data and the alarm message includes: Selecting a set number of environment images as target environment images, where the shooting time interval between the target environment images is less than a set duration; Comparing the target environment images and retaining the different parts between the target environment images as difference images; Performing grayscale processing on the difference images to obtain target grayscale images, and performing contour recognition on the target grayscale images to obtain target contours; Identifying the target contours, and if the target contours are identified as dangerous scenes, generating an environment alarm message; Generating the status data according to the environment alarm message and the target environment images.

4. The method according to claim 3, wherein Performing contour recognition on the target grayscale images to obtain target contours, including: Using Gaussian filtering to perform denoising processing on the target grayscale images to obtain low-noise grayscale images; Calculating the gradient magnitude and gradient direction of each pixel point in the low-noise grayscale image, where the gradient magnitude represents the gray change intensity between each pixel point and its adjacent pixel points, and the gradient direction represents the direction in which the gray level of the pixel point changes fastest on the low-noise grayscale image; Comparing the gradient magnitude between the pixel point and its adjacent pixel points along the gradient direction. If the gradient magnitude of the pixel point is less than the gradient magnitude of the adjacent pixel point, updating the gradient magnitude of the pixel point to 0; if the gradient magnitude of the pixel point is greater than or equal to the gradient magnitude of the adjacent pixel point, retaining the gradient magnitude of the pixel point until the gradient magnitude update of each pixel point is completed; Regarding the pixel points with a gradient magnitude greater than a first threshold as first edge points, and regarding the pixel points with a gradient magnitude less than the first threshold and greater than a second threshold as second edge points, where the first threshold is greater than the second threshold; Taking any first edge point as a seed point for region growing, and regarding the second edge points whose distance from the seed point is less than a set length as seed points; Perform region growing on the seed points that have not undergone region growing until all seed points have undergone region growing, and re-find the first edge points that have not undergone region growing as seed points; Until all the first edge points have completed region growing, update the seed points to contour points to generate the target contour based on the contour points.

5. The method according to claim 3, characterized in that Performing contour recognition on the target grayscale image to obtain a target contour, including: Obtaining the grayscale mean value of each pixel point according to the grayscale of each pixel point in the target grayscale image; Traversing each pixel point and calculating the grayscale variance of each pixel point; Taking the pixel points with variances greater than the global variance threshold as contour points, taking the pixel points outside the contour points as non-contour points, and connecting the contour points to obtain the target contour, where the variance threshold refers to the mean value of the grayscale variances of each pixel point.

6. A method for processing ship data, characterized in that, The method includes: Receiving status data sent by the data processing device, where the status data is generated by the data processing device analyzing ship data acquired by the sensing device, and the ship data includes at least one of environmental information and ship operation parameters; According to a preset encryption database, cutting and encrypting each status data to obtain encrypted status data; Sending the encrypted status data to the background data center so that the background data center can decrypt the encrypted status data according to a preset decryption database to obtain the status data.

7. The method according to claim 6, wherein According to a preset encryption database, cutting and encrypting each status data to obtain encrypted status data, including: Cutting the status data into sub-status data of a set length; Obtaining the target masks corresponding to each sub-status data in the encryption database; Sorting each target mask according to the arrangement order of the sub-status data to obtain the sequence codes corresponding to each target mask; Generating mask units according to the target masks and the sequence codes corresponding to the target masks; Connecting each mask unit in series according to the sequence codes in the mask unit to obtain a mask unit string; Making the mask unit string concatenate with a time code, a first encryption code, and a second encryption code to obtain the encrypted status data.

8. The method according to claim 7, wherein The method further includes: If there is no target mask corresponding to the sub-status data in the encryption database, adding the target mask corresponding to the sub-status data to the encryption database; Before sending the encrypted status data to the background data center, sending the updated part of the encryption database to the background data center to update the decryption database.

9. A processing device for ship data, characterized in that, The processing device includes: A sensing device configured to acquire ship data; A data processing device configured to analyze ship data to obtain status data; A numerical control center configured to receive the status data and control the ship according to the status data.

10. The processing device according to claim 9, characterized in that, The numerical control center includes: A remote communication device configured to cut and encrypt each status data according to a preset encryption database to obtain encrypted status data, and send the encrypted status data to the background data center; The background data center is configured to decrypt the encrypted status data according to a preset decryption database to obtain the status data, and store the status data.