Skip to content

Aposykenn/Local-Image-Search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Search

An Electron-based desktop application for scraping images from websites and searching for similar images using perceptual hashing.

Features

  • Web Scraping: Scrape images from websites using Puppeteer
  • Image Search: Find similar images using perceptual image hashing
  • Batch Processing: Process multiple pages automatically
  • Anti-Detection: Uses stealth plugins to avoid detection

Requirements

  • Node.js (v14 or higher)
  • npm

Installation

npm install

Usage

  1. Start the application:
npm start
  1. Scrape Images:

    • Enter a URL in the URL input field
    • Click "Scrape Images" to start scraping
    • Images will be saved to the temp_images folder
  2. Search for Similar Images:

    • Select a reference image using the file input
    • Click "Search" to find similar images in the scraped collection
    • Results are displayed sorted by similarity
  3. View Temp Files:

    • Click "Temp File" to open the temp_images folder

Dependencies

  • electron - Desktop application framework
  • puppeteer-extra - Web scraping with stealth features
  • image-hash - Perceptual image hashing for similarity detection
  • axios - HTTP client for downloading images

Project Structure

image-search/
├── main.js          # Main Electron process
├── preload.js       # IPC bridge between renderer and main process
├── renderer.js      # Frontend logic
├── index.html       # UI markup
├── main.css         # Styling
└── temp_images/     # Downloaded images directory (auto-created)

Notes

  • Images are temporarily stored in temp_images/ directory
  • The similarity threshold for image matching is set to 50 (adjustable in main.js)
  • The scraper is configured for a specific domain keyword filter

About

Local image search is primarily for Erome site, but you can change it if you want. You can also adjust the threshold, it comes as 50 and the more you decrease it, the closer results it searches for.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors