Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 31785

These challenges involve processing pre-existing image files, by altering them in some way, gathering statistics, or other image processing tasks.

12 votes
2 answers
2k views

Build a Mining Robot

Your program will control a mining robot searching underground for valuable minerals. Your robot will tell the controller where you want to move and dig, and the controller will provide feedback on yo …
0 votes

Reverse Bayer Filter of an image

Python 2, 256 275 bytes First I simplified the original code: from PIL import Image from numpy import* import sys # Open image and put it in a numpy array srcArray = array(Image.open(sys.argv[1]), …
Logic Knight's user avatar
  • 6,792
11 votes
1 answer
504 views

How many shapes are in this picture?

Children are very good at classifying objects and counting them. Computers seem to have more trouble. This is a simplified version of this problem. Can you write a small program that can classify and …
12 votes

Fun with flags!

Python 2, Score = 68 89 This solution uses the hash of the flag image file to create an index into a list of the country abbreviations. If more than one flag hashed to an index, only the first abbrev …
Logic Knight's user avatar
  • 6,792
4 votes

Determining vertical slices

Python 2, 30 bytes There is a surprisingly elegant solution using many of my favourite built-in functions chained together. lambda c:sum(map(all,zip(*c))) Using the test image from @Lynn: >>> ima …
Logic Knight's user avatar
  • 6,792
21 votes

Patch the Image

Python 2 and PIL This program blends copies of regions North, South, East, and West to create replacement pixels that use colours, textures, and shading from the local image region. The example output …
Community's user avatar
  • 1
24 votes

Paint by Numbers (using programming, not numbers)

Python 2 and PIL: Psychedelic Worlds I have used a simple algorithm to flood fill each white-ish area with a color from a cycling palette. The result is very colorful, but not very lifelike. Note th …
Logic Knight's user avatar
  • 6,792
3 votes

Build a Mining Robot

Python 2, Sample Miner, 350 This is an example of the minimum code for a mining robot. It just digs straight down until its battery gives out (all robots start pointing down). It only earns a score o …
Logic Knight's user avatar
  • 6,792
2 votes

Build a Mining Robot

Python 2, Robot Miner Python Template, 410 This is a mining robot template to show how a robot operates and provide a framework for building your own robots. There is a section for analyzing the mine …
Logic Knight's user avatar
  • 6,792
35 votes
4 answers
2k views

Image Battle of Colours

CONGRATULATIONS to @kuroineko for the best entry and winning the 200 bounty from @TheBestOne (excellent sportsmanship!). Write a program to colour as much of an image as possible before opposition …
15 votes
1 answer
547 views

Robot roadie needed to pack the truck

As the band's roadie, you have to pack the truck. Your program will place the packages so that they fit in the smallest height. A badly packed truck Rules Packages may be rotated through multiple …
4 votes

Hungry Image Snake - Hole #3

Python 2, Score: 1.205 I put together a quick Python solution some time ago but forgot to post it. Here it is. It finds the richest blocks in the image, then travels to each block, eating all the bes …
Logic Knight's user avatar
  • 6,792
5 votes

Recognise Stack Exchange Sites by Their Icon

Python 2.7, 1906 1889 bytes This solution uses CRC32 on the pixel data to make a unique 2 digit base 95 identifier. The index of the identifier is then used to look up the answer string. The trick …
Logic Knight's user avatar
  • 6,792