CN112417187A - Multi-picture comparison method based on NFS - Google Patents
Multi-picture comparison method based on NFS Download PDFInfo
- Publication number
- CN112417187A CN112417187A CN202011334371.5A CN202011334371A CN112417187A CN 112417187 A CN112417187 A CN 112417187A CN 202011334371 A CN202011334371 A CN 202011334371A CN 112417187 A CN112417187 A CN 112417187A
- Authority
- CN
- China
- Prior art keywords
- picture
- pictures
- server
- nfs
- comparison
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000013519 translation Methods 0.000 claims abstract description 8
- 238000012545 processing Methods 0.000 claims abstract description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/53—Querying
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
Abstract
The invention provides a multi-picture comparison method based on NFS, which belongs to the technical field of picture comparison and is used for building a Nginx picture server to store pictures; and sharing the pictures by using an NFS sharing mode. Respectively obtaining a sample picture and a comparison picture, carrying out binarization processing on the pictures, and carrying out comparison matching on the selected pictures in a picture library; and respectively comparing the image translation in the X direction and the image translation in the Y direction by taking the matching coincident point as a reference. The pictures to be compared can be displayed rapidly, and the difference of the selected similar pictures can be visually checked.
Description
Technical Field
The invention relates to the technical field of image comparison, in particular to a multi-image comparison method based on NFS.
Background
With the increase of the diversity of pictures, each user has many similar pictures. The desire to quickly, comprehensively and accurately find the different information in the plurality of similar pictures has been the focus of attention. The traditional method is directly switched and checked through two or more pictures, so that the difference of the contrast parts cannot be accurately obtained, and the requirements on accuracy, efficiency and flexibility are difficult to meet.
How to quickly view the difference between similar pictures is a topic worth discussing. Nowadays, a large number of enterprises are changing from a traditional business model to a new model of scientific and technological innovation and independent research and development, and are developing rapidly. In the current era, the functions of comparing, storing and sharing similar pictures through the internet have become mainstream technologies in the network era. Therefore, developing and researching an NFS-based multi-picture comparison technology with high efficiency, safety and good expansibility becomes a necessary choice.
Disclosure of Invention
Based on the technical problem, the invention provides a multi-picture comparison method based on NFS, and aims to solve the problem of distinguishing a plurality of similar pictures.
The technical scheme of the invention is as follows:
a multi-picture comparison method based on NFS,
constructing a Nginx picture server to store pictures;
and sharing the pictures by using an NFS sharing mode.
Further, in the above-mentioned case,
the implementation steps are as follows:
the method comprises the following steps: the environment required by the system is detected and deployed in a server.
Step two: the project is started.
Step three: and selecting pictures to be compared for uploading.
Step four: respectively obtaining a sample picture and a comparison picture, carrying out binarization processing on the pictures, and carrying out comparison matching on the selected pictures in a picture library; and respectively comparing the image translation in the X direction and the image translation in the Y direction by taking the matching coincident point as a reference.
The picture may be divided equally and then compared for differences. The compared pictures can be stored in the server so as to search the same picture next time, and the picture can be quickly searched and used.
Further, in the above-mentioned case,
selecting a picture server Nginx to store pictures:
sharing the I/O load of the Web server, namely separating the picture service which consumes resources;
optimizing the picture server, namely setting a targeted cache for the picture service;
and the expandability of the website is improved, namely the picture handling capacity is improved by adding the picture server.
Further, in the above-mentioned case,
the background uses a micro-service architecture, the front-end page uses H5 and Nginx as a proxy for forwarding requests, and the cross-domain problem is solved. The unified management is performed using SpringCloud Config.
Further, in the above-mentioned case,
the web server mounts more than one directory from the picture server export through nfs, a user firstly uploads the picture to the web server, and then copies the uploaded picture to the mount directory through a program; and then binding an independent domain name to the picture server, so that the browser can access the picture by using the independent domain name.
The invention has the advantages that
1. The service can be conveniently deployed for application.
2. And a micro-service architecture is adopted, so that the online simultaneous use of multiple persons can be supported.
3. The picture to be compared can be rapidly displayed.
4. The difference of the selected similar pictures can be visually checked.
Drawings
FIG. 1 is a schematic workflow diagram of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
The invention discloses a multi-picture comparison method based on NFS, which comprises the following detailed processes:
1. due to the special image comparison function, a large number of images can be stored, so that a user can conveniently check and compare historical records. A dedicated picture server (Nginx) is chosen to store the pictures.
The advantages of the picture server are:
1.1 sharing the I/O load of the Web server-separating the picture service which consumes resources, and improving the performance and stability of the server.
1.2 the method can specially optimize the picture server and set a targeted cache scheme for the picture service, thereby reducing the bandwidth cost and improving the access speed.
1.3 improving the expandability of the website, namely improving the picture throughput capacity by adding a picture server.
2. The background uses a micro-service architecture, service management and cluster deployment are facilitated, the front-end page uses H5, the response speed of the page is improved, and due to the fact that the foreground and the background are completely separated, a cross-domain problem can occur.
To facilitate management of the control configuration, a spring cloud Config is used for unified management. And the problem that the user experience is poor due to the restart of the service caused by the configuration modification is avoided. And the authority is distributed according to login of different users, and each user can only select own picture for comparison and can also share the picture for other people to use.
3. Using NFS sharing mode
NFS is a distributed client/server file system, and the essence of NFS is the sharing of computers among users, who can attach to a shared computer and access files on the shared computer as if they had access to a local hard disk. The web server mounts directories from a plurality of picture servers export through nfs, a user firstly uploads pictures to the web server, and then copies the uploaded pictures to the mount directory through a program, so that the picture servers can access the pictures which are just uploaded, only share the pictures, and do not really copy the pictures to the picture servers. And binding independent domain names to the picture servers, so that the browser end can access the pictures by using the independent domain names. This approach is substantially free of delays caused by synchronization.
The implementation steps are as follows:
the method comprises the following steps: the environment required by the system is detected and deployed in a server.
Step two: initiating an item
Step three: and selecting pictures to be compared for uploading.
Step four: respectively obtaining a sample picture and a comparison picture, carrying out binarization processing on the pictures, and carrying out comparison and matching on the selected pictures in a picture library. And respectively comparing the image translation in the X direction and the image translation in the Y direction by taking the matching coincident point as a reference. The picture may be divided equally and then compared for differences. The compared pictures can be stored in the server so as to search the same picture next time, and the picture can be quickly searched and used.
The above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (8)
1. A multi-picture comparison method based on NFS is characterized in that,
constructing a Nginx picture server to store pictures;
and sharing the pictures by using an NFS sharing mode.
2. The method of claim 1,
the implementation steps are as follows:
the method comprises the following steps: detecting the environment required by the system and deploying the environment in a server;
step two: starting an item;
step three: selecting a picture to be compared to upload;
step four: respectively obtaining a sample picture and a comparison picture, carrying out binarization processing on the pictures, and carrying out comparison matching on the selected pictures in a picture library; and respectively comparing the image translation in the X direction and the image translation in the Y direction by taking the matching coincident point as a reference.
3. The method of claim 2,
the picture may be divided equally and then compared for differences.
4. The method of claim 2,
the compared pictures can be stored in the server so as to search the same picture next time, and the picture can be quickly searched and used.
5. The method of claim 2,
selecting a picture server Nginx to store pictures:
sharing the I/O load of the Web server, namely separating the picture service which consumes resources;
optimizing the picture server, namely setting a targeted cache for the picture service;
and the expandability of the website is improved, namely the picture handling capacity is improved by adding the picture server.
6. The method of claim 2,
the background uses a micro-service architecture, the front-end page uses H5 and Nginx as a proxy for forwarding requests, and the cross-domain problem is solved.
7. The method of claim 6,
the unified management is performed using SpringCloud Config.
8. The method of claim 6,
the web server mounts more than one directory from the picture server export through nfs, a user firstly uploads the picture to the web server, and then copies the uploaded picture to the mount directory through a program; and then binding an independent domain name to the picture server, so that the browser can access the picture by using the independent domain name.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011334371.5A CN112417187A (en) | 2020-11-25 | 2020-11-25 | Multi-picture comparison method based on NFS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011334371.5A CN112417187A (en) | 2020-11-25 | 2020-11-25 | Multi-picture comparison method based on NFS |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112417187A true CN112417187A (en) | 2021-02-26 |
Family
ID=74842046
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011334371.5A Pending CN112417187A (en) | 2020-11-25 | 2020-11-25 | Multi-picture comparison method based on NFS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112417187A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105978977A (en) * | 2016-05-16 | 2016-09-28 | 浪潮电子信息产业股份有限公司 | Resource sharing and data backup method based on linux server |
CN109347675A (en) * | 2018-10-31 | 2019-02-15 | 新华三大数据技术有限公司 | Server configuration method, device and electronic equipment |
CN109816640A (en) * | 2019-01-08 | 2019-05-28 | 南京富士通南大软件技术有限公司 | A kind of product method of calibration based on picture comparison |
US10614071B1 (en) * | 2017-11-27 | 2020-04-07 | Lacework Inc. | Extensible query interface for dynamic data compositions and filter applications |
CN111209938A (en) * | 2019-12-27 | 2020-05-29 | 广东轩辕网络科技股份有限公司 | Automatic progress monitoring method, electronic equipment and storage medium |
CN111682983A (en) * | 2020-06-04 | 2020-09-18 | 北京达佳互联信息技术有限公司 | Interface display method and device, terminal and server |
-
2020
- 2020-11-25 CN CN202011334371.5A patent/CN112417187A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105978977A (en) * | 2016-05-16 | 2016-09-28 | 浪潮电子信息产业股份有限公司 | Resource sharing and data backup method based on linux server |
US10614071B1 (en) * | 2017-11-27 | 2020-04-07 | Lacework Inc. | Extensible query interface for dynamic data compositions and filter applications |
CN109347675A (en) * | 2018-10-31 | 2019-02-15 | 新华三大数据技术有限公司 | Server configuration method, device and electronic equipment |
CN109816640A (en) * | 2019-01-08 | 2019-05-28 | 南京富士通南大软件技术有限公司 | A kind of product method of calibration based on picture comparison |
CN111209938A (en) * | 2019-12-27 | 2020-05-29 | 广东轩辕网络科技股份有限公司 | Automatic progress monitoring method, electronic equipment and storage medium |
CN111682983A (en) * | 2020-06-04 | 2020-09-18 | 北京达佳互联信息技术有限公司 | Interface display method and device, terminal and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9330106B2 (en) | Selective synchronization of remotely stored content | |
US10459899B1 (en) | Splitting database partitions | |
CN107547653B (en) | Distributed file storage system | |
US10291696B2 (en) | Peer-to-peer architecture for processing big data | |
US11580133B2 (en) | Cross cluster replication | |
US20160253339A1 (en) | Data migration systems and methods including archive migration | |
US10459884B1 (en) | Filesystem block sampling to identify user consumption of storage resources | |
JP6186015B2 (en) | Share content items | |
US20070156434A1 (en) | Synchronizing image data among applications and devices | |
JP2018537741A (en) | Peer-to-peer synchronization protocol for multi-premises hosting of digital content items | |
JP6620205B2 (en) | Provision of supplemental content related to embedded media | |
CN101631143B (en) | Multi-server system in load-balancing environment and file transmission method thereof | |
Thouheed Ahmed et al. | Real-time biomedical recursive images detection algorithm for Indian telemedicine environment | |
US10235504B2 (en) | Facilitating access to content from group interactions | |
US20150242443A1 (en) | Systems and methods for selecting content items to store and present locally on a user device | |
CN111159133A (en) | Distributed forum system based on micro-service | |
US20130304868A1 (en) | System and method for communicating and managing data | |
CN112417187A (en) | Multi-picture comparison method based on NFS | |
Andriani et al. | An architecture for synchronising cloud file storage and organisation repositories | |
CN111209938A (en) | Automatic progress monitoring method, electronic equipment and storage medium | |
Zhou et al. | ECStor: A flexible enterprise-oriented cloud storage system based on GlusterFS | |
US10015248B1 (en) | Syncronizing changes to stored data among multiple client devices | |
Zeng et al. | Software Architecture Evolution and Technology Research | |
US11954541B1 (en) | Highly available message ingestion by a data intake and query system | |
US11822570B2 (en) | Database synchronization employing parallel poll threads |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210226 |
|
RJ01 | Rejection of invention patent application after publication |