Patent ID: 9633449
Date: 2017-04-25
CPC Classifications: G06K,G06T

Claim:
1. An apparatus for detecting a color checker in an image, comprising: a memory that stores a plurality of instructions; and a processor coupled to the memory and configured to execute the instructions to: extract sliding window features of sliding windows at multiple positions from an input image using a predefined sliding window; select, using multiple predefined sliding window templates, a sliding window having a minimum distance from each sliding window template from the sliding windows at the multiple positions as a matched sliding window of the sliding window template; and determine segmentation lines of colored squares of a color checker in the input image according to a matching result of each sliding window template, wherein, the processor is configured to execute the instructions to: scan the whole of the input image point by point by using the predetermined sliding window, extract a feature at each position passed by the predefined sliding window, and take it as the sliding window feature of a sliding window of the predetermined sliding window at the position, the extracted feature is a feature corresponding to a predefined position of the predefined sliding window in the input image; and the sliding window feature of the sliding window of the predefined sliding window at each position includes: a feature vector corresponding to an R channel, a feature vector corresponding to a G channel and a feature vector corresponding to a B channel, the processor is configured to execute the instructions to: determine an intermediate point of each two adjacent colored squares by using positions of pixel points corresponding to the predefined positions of each matched sliding window in the input image; and determine the segmentation lines of the colored squares by using the intermediate points of the colored squares, the processor is configured to execute the instructions to determine the intermediate point of each two adjacent colored squares according to the following formula: where, d=g(x)=max(∥{right arrow over (P)}−{right arrow over (L)}∥, ∥{right arrow over (P)}−{right arrow over (R)}∥), {right arrow over (P)}, {right arrow over (L)}, {right arrow over (R)} being RGB color vectors, X