Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

fornit1917/imagebase

Repository files navigation

ImageBase

ImageBase is a .NET project that wrote with C# for managing your images collection and compared it to other images. This will allow you to check the image for originality.

Installation

Use the link https to install ImageBase. Write code to create repository clone

gh repo clone fornit1917/imagebase

Structure project

├── imageBase
│   ├── ImageBase.Common
│   ├── ImageBase.GrabbingImages
│   ├── ImageBase.HashBase
│   ├── ImageBase.ImageHash
│   ├── ImageBase.WebApp
│   ├── ImageBase.Common.UnitTests
│   ├── ImageBase.HashBase.UnitTests
│   ├── ImageBase.ImageHash.Tests
│   └── ImageBase.WebApp.UnitTests
└──

ImageBase.Common - this project contains calculate Hamming distance for image
ImageBase.GrabbingImages - This project contains populating your database with free Pexels images
ImageBase.HashBase - this project contains generate VP Tree and compares hashes images
ImageBase.ImageHash - this project calculates hashes images
ImageBase.WebApp - this project contains rest API requests to manage your images collection

Usage

ImageBase.GrabbingImages

If you are using the Pexels open service set parameters then you need to enter the command line arguments.
For example

ImageBase.GrabbingImages.exe Pexels Sun 3 Out.csv

It configures parameters for you request

  1. Pexels - name services
  2. Sun - chosen name topic
  3. 3 - count required images
  4. Out.csv - name of the output file with csv data
static async Task GrabbingFromPexels(string theme="Nature",int countImages=5,string outputfile= "AllImages.csv")
        {
            Grabber grabber = InicializeGrabber();
            PhotoPage photoPage = await grabber.SearchPhotosAsync(theme, 1, countImages);
            _listImageDtos = CreateListImages(photoPage);
            ConvertToCSVAndSaveInFile(_listImageDtos, outputfile);
        }

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPL-3.0 License

About

Web app for storing and searching images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published