1. A method for providing an image, characterized in that the method comprising:
a server receiving analysis data of color main components of an image to be inquired transmitted by a terminal device, the analysis data of the color main components containing identifications of a preset number of main component colors with respect to the image to be inquired and proportions of the respective main component colors;
the server comparing the analysis data of the color main components of the image to be inquired with analysis data of color main components of a plurality of images in an image database, and transmitting identifications of the plurality of images having the greatest degree of similarity of a main color tone to the image to be inquired in the image database to the terminal device so that the terminal device acquires the images in accordance with the identifications; the analysis data of the color main components of the image in the image database containing the identifications of the preset number of color main components with respect to the image and the proportions of the respective color main components, and a manner of dividing the color main components with respect to the image in the image database being the same as a manner of dividing the color main components with respect to the image to be inquired.
2. The method according to claim 1, characterized in that before the step of a server receiving analysis data of color main components of an image to be inquired transmitted by a terminal device, the method further comprises performing the following steps with respect to the plurality of images in the image database:
filtering images not having a white background in accordance with a preset RGB threshold;
performing a scaling processing to make a width and a height of the image be specified values;
performing a foreground extraction;
performing an analysis of the color main components; and
performing a deduplication processing of the images having similar color main components.
3. The method according to claim 2, characterized in that the step of performing a foreground extraction comprises:
starting from each pixel of a group of opposite boundaries of the image, finding out a first group of pixels which are the closest and have their RGB values smaller than a preset value towards a middle of the image in a direction perpendicular to the group of boundaries; and starting from a central line of the image parallel to the boundaries, finding out a second group of pixels which are the closest and have their RGB values smaller than the preset value towards both sides in a direction perpendicular to the central line; and
using a region between the first group of pixels and the second group of pixels as the foreground of the image.
4. The method according to claim 2, characterized in that the step of performing an analysis of the color main components comprises:
dividing an HSV color space into a plurality of groups;
performing an analysis of HSV color components in accordance with foreground pixels with respect to the image, and distributing the foreground pixels into the respective groups;
calculating proportions of pixel numbers of the respective groups to a sum of the foreground image pixels; and
using identifications of the preset number of groups having the largest proportions as the identifications of the main component colors.
5. The method according to claim 4, characterized in that the step of performing a deduplication processing of the images having similar color main components comprises:
removing groups having proportions smaller than a preset proportion threshold from the preset number of groups having the largest proportions in accordance with an analysis result of the color main components; and
comparing every two of the remaining images having the same group number, and judging that the two images are similar and performing deduplication if any one of the following conditions is satisfied:
a. after sequencing is performed in accordance with the proportion, the identifications of the groups and the proportions of the respective groups of the two images are both the same;
b. after sequencing is performed in accordance with the proportion, the identifications of the groups of the two images are the same, the numbers are smaller than a half of the preset number, and an absolute value of a difference between the proportions of the groups having the same identification of the two images is no larger than a first preset difference value; and
c. after sequencing is performed in accordance with the proportion, the identifications of the groups of the two images are the same, the numbers are both no smaller than a half of the preset number, and an absolute value of a difference between the proportions of the groups having the same identification of the two images is no larger than a second preset difference value,
wherein the second preset difference value is larger than the first preset difference value.
6. The method according to claim 1, characterized in that the degree of similarity of the main color tone is calculated in accordance with the following equations:
sim
\ue8a0
(
i
)
=
\u2211
j
=
0
N
\ue89e
\ue89e
\u2211
k
=
0
N
\ue89e
\ue89e
f
\ue8a0
(
j
,
k
)
f
\ue8a0
(
j
,
k
)
=
{
Query
\ue8a0
(
R
j
)
\xd7
Database
i
\ue8a0
(
R
k
)
\xd7
W
j
–
k
,
\ue89e
1
\ue89e
(
Query
\ue8a0
(
R
j
)
)
=
1
\ue89e
(
Database
\ue8a0
(
R
k
)
)
0
,
otherwise
where sim(i) denotes the degree of similarity of the main color tone between the image to be inquired and the ith image in the image database; N denotes the preset number; Query(Rj) denotes the proportion of the jth color main component of the image to be inquired; Databasei(Rk) denotes the proportion of the kth color main component of the ith image in the image database; and W denotes a preset positive number smaller than 1.
7. A server apparatus for providing an image, characterized by comprising:
a receiving module for receiving analysis data of color main components of an image to be inquired transmitted by a terminal device, the analysis data of the color main components containing identifications of a preset number of main component colors with respect to the image to be inquired and proportions of the respective main component colors; and
a transmitting module for comparing the analysis data of the color main components of the image to be inquired with analysis data of color main components of a plurality of images in an image database, and transmitting identifications of the plurality of images having the greatest degree of similarity of a main color tone to the image to be inquired in the image database to the terminal device so that the terminal device acquires the images in accordance with the identifications; the analysis data of the color main components of the image in the image database containing the identifications of the preset number of color main components with respect to the image and the proportions of the respective color main components, and a manner of dividing the color main components with respect to the image in the image database being the same as a manner of dividing the color main components with respect to the image to be inquired.
8. The server apparatus according to claim 7, characterized by further comprising:
a background filtering module for filtering images not having a white background with respect to the plurality of images in the image database in accordance with a preset RGB threshold;
an image scaling module for performing a scaling processing with respect to the plurality of images in the image database to make a width and a height of the image be specified values;
a foreground extracting module for performing a foreground extraction with respect to the plurality of images in the image database;
a color main component analyzing module for performing an analysis of the color main components with respect to the plurality of images in the image database; and
a deduplicating module for performing a deduplication processing of the images having similar color main components with respect to the plurality of images in the image database.
9. The server apparatus according to claim 8, characterized in that the foreground extracting module is further used for:
starting from each pixel of a group of opposite boundaries of the image, finding out a first group of pixels which are the closest and have their RGB values smaller than a preset value towards a middle of the image in a direction perpendicular to the group of boundaries; and starting from a central line of the image parallel to the boundaries, finding out a second group of pixels which are the closest and have their RGB values smaller than the preset value towards both sides in a direction perpendicular to the central line; and
using a region between the first group of pixels and the second group of pixels as the foreground of the image.
10. The server apparatus according to claim 8, characterized in that the color main component analyzing module is further used for:
dividing an HSV color space into a plurality of groups;
performing an analysis of HSV color components in accordance with foreground pixels with respect to the image, and distributing the foreground pixels into the respective groups;
calculating proportions of pixel numbers of the respective groups to a sum of the foreground image pixels; and
using identifications of the preset number of groups having the largest proportions as the identifications of the main component colors.
11. The server apparatus according to claim 10, characterized in that the deduplicating module is further used for:
removing groups having proportions smaller than a preset proportion threshold from the preset number of groups having the largest proportions in accordance with an analysis result of the color main components; and
comparing every two of the remaining images having the same group number, and judging that the two images are similar and performing deduplication if any one of the following conditions is satisfied:
a. after sequencing is performed in accordance with the proportion, the identifications of the groups and the proportions of the respective groups of the two images are both the same;
b. after sequencing is performed in accordance with the proportion, the identifications of the groups of the two images are the same, the numbers of the groups are smaller than a half of the preset number, and an absolute value of a difference between the proportions of the groups having the same identification of the two images is no larger than a first preset difference value; and
c. after sequencing is performed in accordance with the proportion, the identifications of the groups of the two images are the same, the numbers of the groups are both no smaller than a half of the preset number, and an absolute value of a difference between the proportions of the groups having the same identification of the two images is no larger than a second preset difference value,
wherein the second preset difference value is larger than the first preset difference value.
12. The server apparatus according to claim 7, characterized in that the transmitting module is further used for calculating the degree of similarity of the main color tone in accordance with the following equations:
sim
\ue8a0
(
i
)
=
\u2211
j
=
0
N
\ue89e
\ue89e
\u2211
k
=
0
N
\ue89e
\ue89e
f
\ue8a0
(
j
,
k
)
f
\ue8a0
(
j
,
k
)
=
{
Query
\ue8a0
(
R
j
)
\xd7
Database
i
\ue8a0
(
R
k
)
\xd7
W
j
–
k
,
\ue89e
1
\ue89e
(
Query
\ue8a0
(
R
j
)
)
=
1
\ue89e
(
Database
\ue8a0
(
R
k
)
)
0
,
otherwise
where sim(i) denotes the degree of similarity of the main color tone between the image to be inquired and the ith image in the image database; N denotes the preset number; Query(Rj) denotes the proportion of the jth color main component of the image to be inquired; Databasei(Rk) denotes the proportion of the kt h color main component of the ith image in the image database; and W denotes a preset positive number smaller than 1.
13. A terminal apparatus for providing an image, characterized by comprising:
an image block acquiring module for acquiring an image block from a video frame;
a color analyzing module for performing an analysis of color main components with respect to the image block to thereby obtain identifications of a preset number of color main components and proportions of the respective color main components;
a transmitting module for transmitting an analysis result of the color analyzing module to a server;
a receiving module for receiving identifications of an image transmitted by the server, the image being one in an image database having a main color tone having the greatest degree of similarity to a main color tone of the image block obtained by the server comparing the analysis result with analysis data of color main components of a plurality of images in the image database; and
an image acquiring module for acquiring the image in accordance with the identification the image transmitted by the server.
14. The terminal apparatus according to claim 13, characterized in that the color analyzing module is further used for:
dividing an HSV color space into a plurality of groups;
performing an analysis of HSV color components with respect to the image block, and distributing pixels in the image block into the respective groups;
calculating proportions of pixel numbers of the respective groups to a sum of pixels of the image block; and
using identifications of the preset number of groups having the largest proportions as the identifications of the main component colors.
15. The terminal apparatus according to claim 13, characterized by further comprising a main color analyzing module and an outputting module, wherein
the main color analyzing module is used for obtaining a main color of the image block in accordance with the following equation:
S
\ue8a0
(
i
)
=
{
Mean
\ue8a0
(
U
0
)
,
\ue89e
(
R
0
\u2265
T
1
)
Min
\ue8a0
(
dis
\ue8a0
(
Mean
\ue8a0
(
U
j
)
,
Centre
0
)
)
,
\ue89e
(
T
2
\u2264
R
0
\u2264
T
1
)
Centre
0
,
otherwise
where S(i) denotes R, G, B values of the main color of the image block; Mean(Uj) denotes a mean value of R, G, B of all of the pixels in the jth main component color of the image block; R0 denotes a proportion of a first main component color; dis(*,*) denotes an Euclidean distance between vectors; and T1 and T2 denote preset proportion thresholds; and
the outputting module is used for outputting a color block of the main color.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. An access system for a wireless local area network, the access system comprising:
one or more processors; and
a machine-readable medium comprising instructions stored therein, which, when executed by the one or more processors cause the one or more processors to perform operations comprising:
receiving, from a wireless client device, an authentication request comprising credentials for a user account of a cloud-based service;
forwarding the authentication request to a server associated with the cloud-based service for authentication of the credentials;
receiving, from the server, an authentication response and a configuration profile associated with the user account of the cloud-based service;
forwarding the authentication response to the wireless client device;
receiving, from the wireless client device, an association request; and
associating the wireless client device with the wireless local area network in response to the association request, wherein the association of the wireless client device with the wireless local area network is configured according to the received configuration profile associated with the user account.
2. The access system of claim 1, wherein the configuration profile comprises a content filter configuration for filtering network traffic associated with the wireless client device.
3. The access system of claim 1, wherein the configuration profile comprises a quality of service level, wherein the quality of service level is relative to configuration profiles associated with other user accounts of the cloud-based service.
4. The access system of claim 1, wherein the configuration profile comprises access control settings defining accessibility of resources connected to the wireless local area network for the wireless client device.
5. The access system of claim 1, wherein the configuration profile comprises bandwidth limits for network traffic associated with the wireless client device.
6. The access system of claim 1, wherein the operations further comprise:
receiving, from a second wireless client device, an authentication request comprising the credentials for the user account of the cloud-based service;
forwarding the authentication request to the server associated with the cloud based service for authentication of the credentials;
receiving, from the server, an authentication response;
forwarding the authentication response to the second wireless client device;
receiving, from the second wireless client device, an association request; and
associating the second wireless client device with the wireless local area network in response to the association request, wherein the association of the second wireless client device with the wireless local area network is configured according to the received configuration profile associated with the user account.
7. The access system of claim 1, wherein the configuration profile associated with the user account of the cloud-based service is based on one or more social indicators of the relationship between the user account and another user account associated with an owner of the wireless local area network.
8. The access system of claim 7, wherein the social indicators comprise at least one of electronic messaging frequency or common social network grouping.
9. A non-transitory machine-readable medium comprising instructions stored therein, which, when executed by one or more processors cause the one or more processors to perform operations comprising:
receiving, from a wireless client device, an authentication request comprising credentials for a user account of a cloud-based service;
forwarding the authentication request to a server associated with the cloud-based service for authentication of the credentials;
receiving, from the server, an authentication response and a configuration profile associated with the user account of the cloud-based service, wherein the configuration profile is configured by an owner of a wireless local area network;
forwarding the authentication response to the wireless client device;
receiving, from the wireless client device, an association request; and
associating the wireless client device with the wireless local area network in response to the association request, wherein the association of the wireless client device with the wireless local area network is configured according to the received configuration profile associated with the user account.
10. The non-transitory machine-readable medium of claim 9, wherein the configuration profile comprises a content filter configuration for filtering network traffic associated with the wireless content device.
11. The non-transitory machine-readable medium of claim 9, wherein the configuration profile comprises a quality of service level, wherein the quality of service level is relative to configuration profiles associated with other user accounts of the cloud-based service.
12. The non-transitory machine-readable medium of claim 9, wherein the configuration profile comprises access control settings defining accessibility of resources connected to the wireless local area network for the wireless client device.
13. The non-transitory machine-readable medium of claim 9, wherein the configuration profile comprises bandwidth limits for network traffic associated with the wireless client device.
14. The non-transitory machine-readable medium of claim 9, wherein the configuration profile associated with the user account of the cloud-based service is based on one or more social indicators of the relationship between the user account and another user account associated with the owner of the wireless local area network.
15. A computer-implemented method for accessing a wireless local area network, the method comprising:
receiving, from a wireless client device, an authentication request comprising credentials for a user account of a cloud-based service;
forwarding the authentication request to a server associated with the cloud-based service for authentication of the credentials;
receiving, from the server, an authentication response and a configuration profile associated with the user account of the cloud-based service, wherein the configuration profile defines accessibility of resources on the wireless local area network;
forwarding the authentication response to the wireless client device;
receiving, from the wireless client device, an association request; and
associating the wireless client device with the wireless local area network in response to the association request, wherein the association of the wireless client device with the wireless local area network is configured according to the received configuration profile associated with the user account.
16. The computer-implemented method of claim 15, wherein the configuration profile comprises a content filter configuration for filtering network traffic associated with the wireless content device.
17. The computer-implemented method of claim 15, wherein the configuration profile comprises a quality of service level, wherein the quality of service level is relative to configuration profiles associated with other user accounts of the cloud-based service.
18. The computer-implemented method of claim 15, wherein the configuration profile comprises bandwidth limits for network traffic associated with the wireless client device.
19. The computer-implemented method claim 15, wherein the operations further comprise:
receiving, from a second wireless client device, an authentication request comprising the credentials for the user account of the cloud-based service;
forwarding the authentication request to the server associated with the cloud-based service for authentication of the credentials;
receiving, from the server, an authentication response;
forwarding the authentication response to the second wireless client device;
receiving, from the second wireless client device, an association request; and
associating the second wireless client device with the wireless local area network in response to the association request, wherein the association of the second wireless client device with the wireless local area network is configured according to the received configuration profile associated with the user account.
20. The computer-implemented method of claim 15, wherein the configuration profile associated with the user account of the cloud-based service is based on one or more social indicators of the relationship between the user account and another user account associated with an owner of the wireless local area network.