System and method for converting TIF file into LDF

By converting TIF files into LDF files, the problem of low efficiency of directly reading TIF files is solved, and environmental drawing and analysis efficiency of fast response and efficient processing of large amounts of data is achieved.

CN119848123AInactive Publication Date: 2025-04-18SICHUAN WEIBANG XINCHUANG TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411968436.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In marine projects, direct reading of TIF files can affect efficiency, especially in scenarios where rapid response and efficient processing of large amounts of data are required.

Method used

Provides a system for converting TIF files into LDF files, including file upload module, image preprocessing module, data conversion module and real-time reading and parsing module. The system converts TIF files into LDF files through image preprocessing, data extraction and binary conversion, which is suitable for real-time processing and efficient reading.

Benefits of technology

By converting TIF files into LDF files, the efficiency of environmental drawing and analysis is improved, rapid response and efficient processing of large amounts of data are achieved, and the system has high scalability and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119848123A_ABST
    Figure CN119848123A_ABST
Patent Text Reader

Abstract

The invention discloses a system and method for converting a TIF file into an LDF. The system comprises a file uploading module, an image preprocessing module, a data conversion module and a real-time reading and analyzing module. The method comprises the following steps: S1, uploading a TIF file to be converted, and checking the file; s2, extracting the image data in the TIF file, and verifying the extracted data information; s3, carrying out binary conversion on the extracted image data; and S4, storing the converted data as an LDF file according to a self-defined data structure, and outputting the LDF file. According to the invention, a module-based development design is adopted, so that the system has high expansibility and stability; the system is highly decoupled from function points of an independently-operated service and business system; when the system needs to be iteratively updated, only corresponding modules need to be reconstructed, other irrelevant modules are not affected, and the quality of the system is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a system and method for converting a TIF file into an LDF file. Background Art

[0002] In ship projects, environment rendering may involve real-time rendering and analysis of the ocean environment, the landscape around the ship, the navigation path, etc. Using TIF files for real-time reading and parsing, and then analyzing the current environment and rendering, is a complex and critical task. However, directly reading TIF files may affect efficiency, especially in scenarios that require fast response and efficient processing of large amounts of data. Therefore, consider converting TIF files into another file format that is more suitable for real-time processing and efficient reading. Summary of the invention

[0003] In order to solve the above problems, the present invention provides a system for converting TIF files into LDF, comprising a file uploading module, an image preprocessing module, a data conversion module, and a real-time reading and parsing module; the file uploading module is used to generate records and perform file traceability management after uploading the TIF file to be converted; the image preprocessing module is used to perform image preprocessing on the uploaded TIF file, and to identify and extract image data; the data conversion module is used to convert the extracted image data into a binary format, and store the converted data as an LDF file according to a customized data structure; the real-time reading and parsing module is used to store the extracted TIF image data in a database, and when an external application selects a TIF file to be read, the TIF file is automatically parsed and converted into an LDF file for output.

[0004] Furthermore, the record generated in the file upload module specifically includes: a unique file identifier, a file upload time, an uploader, and a file size.

[0005] Furthermore, the data content extracted in the image preprocessing module specifically includes: left longitude, right longitude, left latitude, right latitude, X resolution, Y resolution, image width, image height, bit depth, and pixel resolution.

[0006] Furthermore, the method of converting the extracted image data into a binary format in the data conversion module specifically includes: Base64 encoding and hexadecimal encoding.

[0007] Furthermore, it also includes a file version management module, which is used to generate a new version record when a file is modified or updated, and retain the old version for comparison and backtracking.

[0008] A method for converting a TIF file into an LDF file comprises the following steps: S1. uploading the TIF file to be converted and performing file verification; S2. extracting image data from the TIF file and verifying the extracted data information; S3. performing binary conversion on the extracted image data; S4. storing the converted data as an LDF file according to a custom data structure and then outputting it.

[0009] Furthermore, the verification of the extracted data information in the S2 step specifically includes the following steps: whether the file unique identifier is correct; the validity of the label directory and its order, including: pixel resolution, color depth, compression type; consistency of data layout: the pixel array must be arranged and stored in a specified manner; verifying whether the actual image size is consistent with the acquired file size information; and data information integrity.

[0010] Furthermore, the S3 step specifically includes the following sub-steps: Base64 encoding conversion: A1. Divide the binary data into groups of 6 bits; A2. Each 6 bits of binary data corresponds to a character in the Base64 encoding table; A3. Determine whether the number of bits of the binary data is a multiple of 6. When the number of bits of the binary data is not a multiple of 6, fill it with 0; A4. Convert the 6-bit binary data into corresponding Base64 characters; Hexadecimal conversion: B1. Divide the binary data into groups of 4 bits; B2. Each 4 bits of binary data corresponds to a character in the hexadecimal encoding table; B3. Convert the 4-bit binary data into corresponding hexadecimal characters.

[0011] The present invention provides a system and method for converting a TIF file into an LDF file, which has the following beneficial effects: The present invention adopts a module-based development and design, and the modules communicate with each other through standard interfaces, so that the system has high scalability and stability; the system is an independently running service, and the functional modules included all adopt a universal design and are highly decoupled from the business system functional points; the system adopts a module-based development and design, when the system needs to be iteratively updated, only the corresponding modules need to be reconstructed, and other unrelated modules are not affected, which greatly improves the quality of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0013] Figure 1 A schematic diagram of the system structure provided by the present invention; Figure 2 The present invention provides a flow chart of the method. DETAILED DESCRIPTION

[0014] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0015] The following is a detailed description of the implementation method of the present invention in conjunction with the accompanying drawings. Only some embodiments are described, not all embodiments. For the purpose of clarity, representations and descriptions that are not related to the present invention are omitted in the drawings and descriptions.

[0016] In order to have a clearer understanding of the technical features, purposes and beneficial effects of the present invention, the technical solution of the present invention is now described in detail below. Obviously, the implementation cases described are part of the embodiments of the present invention, not all of the embodiments, and cannot be understood as limiting the scope of the implementation of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.

[0017] like Figure 1 As shown, the present invention provides a system for converting TIF files into LDF, including a file uploading module, an image preprocessing module, a data conversion module, and a real-time reading and parsing module; the file uploading module is used to generate a record after uploading the TIF file to be converted and perform file traceability management; the image preprocessing module is used to perform image preprocessing on the uploaded TIF file, and to identify and extract image data; the data conversion module is used to convert the extracted image data into a binary format, and store the converted data as an LDF file according to a customized data structure; the real-time reading and parsing module is used to store the extracted TIF image data in a database, and when an external application selects a TIF file to be read, the TIF file is automatically parsed and converted into an LDF file for output.

[0018] The records generated in the file upload module specifically include: file unique identifier, file upload time, uploader, and file size. The data content extracted in the image preprocessing module specifically includes: left longitude, right longitude, left latitude, right latitude, X resolution, Y resolution, image width, image height, bit depth, and pixel resolution. The methods for converting the extracted image data into binary format in the data conversion module specifically include: Base64 encoding and hexadecimal.

[0019] It also includes a file version management module, which is used to generate a new version record when a file is modified or updated, and retain the old version for comparison and backtracking. It ensures the integrity and consistency of the file, and can trace back to its original state and modification history even after the file has been modified many times. Each file has a corresponding version record, including version number, modification time, and modification content. The version record can help users understand the modification history of the file and the characteristics of each version, making it convenient for users to compare and backtrack.

[0020] A method to convert TIF files into LDF, such as Figure 2 As shown, the following steps are included: S1. Upload the TIF file to be converted and perform file verification; S2. Extract the image data in the TIF file and verify the extracted data information; S3. Perform binary conversion on the extracted image data; S4. Store the converted data as an LDF file according to a custom data structure and then output it.

[0021] The verification of the extracted data information in step S2 specifically includes the following steps: whether the file unique identifier is correct; the validity of the label directory and its order, including: pixel resolution, color depth, compression type; consistency of data layout: the pixel array must be arranged and stored in the specified manner; verify whether the actual image size is consistent with the acquired file size information; data information integrity.

[0022] The S3 step specifically includes the following sub-steps: Base64 encoding conversion: A1. Divide the binary data into groups of 6 bits; A2. Each 6-bit binary data corresponds to a character in the Base64 encoding table; A3. Determine whether the number of bits of the binary data is a multiple of 6. When the number of bits of the binary data is not a multiple of 6, fill it with 0; A4. Convert the 6-bit binary data into the corresponding Base64 character: Base64=Base64_Table[(binary_datamod26)].

[0023] Hexadecimal conversion: B1. Divide the binary data into groups of 4 bits; B2. Each 4 bits of binary data corresponds to a character in the hexadecimal encoding table; B3. Convert the 4 bits of binary data into the corresponding hexadecimal character: Hex=Hex_Table[(binary_datamod24)].

[0024] The extracted TIF file data information is stored in the database. External applications can independently select the TIF file they need to read. The system automatically outputs the parsed data of the file as an LDF file through a unique structure for use by external applications.

[0025] Use a custom data reading interface to quickly obtain the converted LDF file, read the image information and analyze it. Based on this information, perform environmental drawing and analysis to achieve real-time response and efficient processing.

[0026] The present invention mainly improves the efficiency of environmental drawing and analysis in projects by preprocessing and parsing TIF file image information in scenarios where rapid response and efficient processing of large amounts of data are required; the TIF file conversion system is an independent service and provides a universal and standard data interface that can be quickly connected to other business systems.

[0027] The present invention adopts a module-based development and design, and the modules communicate with each other through standard interfaces, so that the system has high scalability and stability; the system is an independently running service, and the functional modules included all adopt a universal design and are highly decoupled from the business system functional points; the system adopts a module-based development and design, when the system needs to be iteratively updated, only the corresponding modules need to be reconstructed, and other unrelated modules are not affected, which greatly improves the quality of the system.

[0028] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.

Claims

1. A system for converting TIF files into LDF, characterized in that: It includes file upload module, image preprocessing module, data conversion module, and real-time reading and parsing module; The file upload module is used to generate records and perform file traceability management after uploading the TIF file to be converted; The image preprocessing module is used to perform image preprocessing on the uploaded TIF file and to identify and extract image data; The data conversion module is used to convert the extracted image data into a binary format, and store the converted data as an LDF file according to a custom data structure; The real-time reading and parsing module is used to store the extracted TIF image data in a database, and when an external application selects a TIF file to be read, the TIF file is automatically parsed and converted into an LDF file for output.

2. The system for converting TIF files into LDF according to claim 1, characterized in that: The record generated in the file upload module specifically includes: a unique file identifier, a file upload time, an uploader, and a file size.

3. The system for converting TIF files into LDF according to claim 1, characterized in that: The data content extracted in the image preprocessing module specifically includes: left longitude, right longitude, left latitude, right latitude, X resolution, Y resolution, image width, image height, bit depth, and pixel resolution.

4. The system for converting TIF files into LDF according to claim 1, characterized in that: The method of converting the extracted image data into binary format in the data conversion module specifically includes: Base64 encoding and hexadecimal encoding.

5. The system for converting TIF files into LDF according to claim 1, characterized in that: It also includes a file version management module for generating a new version record when a file is modified or updated, and retaining the old version for comparison and backtracking.

6. A method for converting a TIF file into an LDF file, based on the system for converting a TIF file into an LDF file according to any one of claims 1 to 5, characterized in that: The following steps are involved: S1. Upload the TIF file to be converted and perform file verification; S2. Extract the image data from the TIF file and verify the extracted data information; S3. Perform binary conversion on the extracted image data; S4. The converted data is stored as an LDF file according to the custom data structure and then output.

7. The method for converting a TIF file into an LDF file according to claim 6, characterized in that: The verification of the extracted data information in the S2 step specifically includes the following steps: whether the file unique identifier is correct; the validity of the label directory and its order, including: pixel resolution, color depth, compression type; consistency of data layout: the pixel array must be arranged and stored in a specified manner; verifying whether the actual image size is consistent with the acquired file size information; data information integrity.

8. The method for converting a TIF file into an LDF file according to claim 6, characterized in that: The S3 step specifically includes the following sub-steps: Base64 encoding conversion: A1. Divide the binary data into groups of 6 bits; A2. Each 6-bit binary data corresponds to a character in the Base64 encoding table; A3. Determine whether the number of digits in the binary data is a multiple of 6. If the number of digits in the binary data is not a multiple of 6, fill it with 0; A4. Convert the 6-bit binary data into the corresponding Base64 characters; Hexadecimal conversion: B1. Divide the binary data into groups of 4 bits; B2. Each 4 bits of binary data corresponds to a character in the hexadecimal encoding table; B3. Convert the 4-bit binary data into the corresponding hexadecimal characters.

Citation Information

Patent Citations

  • Data file coding format conversion method and system

    CN111476002A

  • Browser-based PSD file analysis method and system, and storage medium

    CN114791989A

  • Big data unmanned aerial vehicle remote sensing image-based parallel segmentation method and device, and medium

    CN116563542A

  • System and method of processing bio-image

    KR1020080021182A

  • Image-processing method and program for compound apparatus

    US20030137677A1