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.
Use the link https to install ImageBase. Write code to create repository clone
gh repo clone fornit1917/imagebase
├── 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
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
- Pexels - name services
- Sun - chosen name topic
- 3 - count required images
- 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);
}
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.