searching for presence of a unique color in security cams to catch a bicycle thief

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
atariZen
Posts: 25
Joined: 2016-02-09T12:58:42-07:00
Authentication code: 1151

searching for presence of a unique color in security cams to catch a bicycle thief

Post by atariZen »

If a stolen bicycle has a custom color that is so unique that no other object would likely appear on the surveillance cameras in the city with the same color, could IM be used to find images where the bike appears? Suppose we neglect the fact that the frame is a certain shape, and look simply for images where a few thousand pixels match the very unique color-- could this be done with ImageMagick? Would it be a matter of getting histograms of all surveillance cams and checking whether a significant number of pixels are close to the solid color of the bicycle frame in an image prior to the theft?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: searching for presence of a unique color in security cams to catch a bicycle thief

Post by snibgo »

In theory, yes. In practise there are some problems.

Daylight varies in intensity and "temperature", which is roughly the ratio between red and blue wavelengths. The bike might be in shade or sunshine. Bikes are made of tubes, and part of each tube may be in sunshine while another part is in shade. The part in shade will be bluer than the part in sunshine (because it is illuminated by blue sky). And the colour accuracy of cameras will vary.

When searching for the bike, you probably have to ignore the lightness, or at least accept a very wide range of lightnesses. You will also need a fairly wide range for the other two channels (eg ab of Lab, or HC of HCL).
snibgo's IM pages: im.snibgo.com
Post Reply