Gives the card names in the image of the screenshotted deck

Simplified steps of how the script works: Feed it image of a deck Reads it with OpenCV Takes all cards in all_cards, resizes them appropriately (must be manually set) to match the size of a card on the image (i.e. 1920×1080 deck image for Master Duel ~= 63×94) Takes each card and passes it over the deck image, line by line Anytime a card passes the match threshold (ex: 0.75 minimum acceptable to be counted as a match), the card’s […]

Read more

Screenshots of news homepages around the world

Screenshots of news homepages around the world Follow on Twitter at @newshomepages Getting started Fork the repository and clone it. Move into the code directory and install the Python dependencies. Install pre-commit hooks. pipenv run pre-commit install Install the shot-scraper web browser. pipenv run shot-scraper install Screenshots Try a screenshot. The shoot.py command, as well as all the other commands, expects you pass in the Twitter handle of the target site. The supported sites are listed in newshomepages/sources/sites.csv. pipenv run […]

Read more

Automated website screenshots using GitHub Actions

Tool for taking automated screenshots For background on this project see shot-scraper: automated screenshots for documentation, built on Playwright on my blog. Demo A live demo of the output of this tool can be found in the shot-scraper-demo repository. Installation Install this tool using pip: This tool depends on Playwright, which first needs to install its own dedicated browser. Run shot-scraper install once to install that:

Read more

A CTF web challenge about making screenshots

screenshotter (web) A CTF web challenge about making screenshots. It is inspired by a bug found in real life. Run the challenge To run the challenge you have to install docker-compose: docker-compose up Once the servicses are running, you should be able to access http://127.0.0.1:5000. Solution The DO_NOT_ACCESS folder contains the solution when you checkout the solution branch with git checkout solution.    

Read more