Summary of the invention
In view of the above problems, it is proposed that the embodiment of the present application is to provide one to overcome the problems referred to above or extremely
Partially solve the control method of server object of a kind of server of the problems referred to above with corresponding
A kind of control device of the server object of server.
In order to solve the problems referred to above, the embodiment of the present application discloses the server object of a kind of server
Control method, at least includes in described server: have the first service program object using control of authority,
And, not there is the second service program object using control of authority, described method includes:
When accessing described server, receive the video stream data that described second service program object provides;
Described video stream data is decoded, it is thus achieved that video frame images;
First object data are extracted by the first presetting rule from described video frame images;
The second target data is extracted by the second presetting rule from described video frame images;
Judge whether described first object data mate with described second target data;
When described first object data are mated with described second target data, open described first service journey
The use control of authority of ordered pair elephant.
Preferably, described first presetting rule of pressing from described video frame images extracts first object data
Step includes:
The R passage of default first object pixel, G passage, B is extracted from described video frame images
The value of passage forms first object data.
Preferably, described from described video frame images, the second target data is extracted by the second presetting rule
Step includes:
The R passage of the second default target pixel points, G passage, B is extracted from described video frame images
The value of passage forms the second target data.
Preferably, the R passage of described second target pixel points, G passage, channel B value by described
Two server objects use the R passage of described first object pixel, G passage, the value of channel B,
Calculate by default value transfer algorithm and generate.
Preferably, the described step judging whether described first object data mate with described second target data
Suddenly include:
Use described first object data, calculate by described default value transfer algorithm and generate the 3rd number of targets
According to;
Relatively described 3rd target data is the most identical with described second target data, if identical, then judges
Described first object data are mated with described second target data;Otherwise judge described first object data with
Described second target data is not mated.
Preferably, lead to as described first object pixel or the R passage of the second pixel, G passage, B
When certain passage in road is not used, use random value as the value of this unadapted passage.
Preferably, the use control of authority of described first service program object is to lack institute in described server
State the core document of first service program object;The core document of described first service program object at least wraps
Include for supporting the properly functioning essential file of described first service program object;
The step using control of authority of described opening described first service program object includes:
The core document of preset described first service program object is sent to described server, described clothes
Business device, for after the core document receiving described first service program object, opens described first service
The use control of authority of program object.
Meanwhile, disclosed herein as well is the control device of the server object of a kind of server, described clothes
Business device at least includes: there is the first service program object using control of authority, and, do not have and make
With the second service program object of control of authority, described device includes:
Video stream data receiver module, for when accessing described server, receiving described second service journey
Ordered pair is as the video stream data provided;
Video frame images obtains module, for decoding described video stream data, it is thus achieved that video frame images;
First extraction module, for extracting first object by the first presetting rule from described video frame images
Data;
Second extraction module, for extracting the second target by the second presetting rule from described video frame images
Data;
Judge module, is used for judging whether described first object data mate with described second target data;
Open module, for when described first object data are mated with described second target data, open
The use control of authority of described first service program object.
Preferably, described first extraction module farther includes:
First passage extracts submodule, for extracting default first object picture from described video frame images
The R passage of vegetarian refreshments, G passage, the value of channel B form first object data.
Preferably, described second extraction module farther includes:
Second channel extracts submodule, for extracting the second default target picture from described video frame images
The R passage of vegetarian refreshments, G passage, the value of channel B form the second target data.
Preferably, the R passage of described second target pixel points, G passage, channel B value by described
Two server objects use the R passage of described first object pixel, G passage, the value of channel B,
Calculate by default value transfer algorithm and generate.
Preferably, described judge module farther includes:
Target data calculating sub module, is used for using described first object data, turns by described default value
Scaling method calculates and generates the 3rd target data;
Target data comparison sub-module, for relatively described 3rd target data whether with described second target
Data are identical, if identical, then judge that described first object data are mated with described second target data;No
Then judge that described first object data are not mated with described second target data.
Preferably, lead to as described first object pixel or the R passage of the second pixel, G passage, B
When certain passage in road is not used, use random value as the value of this unadapted passage.
Preferably, the use control of authority of described first service program object is to lack institute in described server
State the core document of first service program object;The core document of described first service program object at least wraps
Include for supporting the properly functioning essential file of described first service program object;
Described open module farther includes:
Core document sends submodule, for by the core document of preset described first service program object
Sending to described server, described server is in the core receiving described first service program object
After file, the use control of authority of open described first service program object.
The embodiment of the present application includes advantages below:
The embodiment of the present application, by the streaming media service program in server is set using control of authority, is adopted
With the particular data in the video frame images provided by server as the identifying code of proving program, only when
The use control of authority of ability open flows media server program during proving program program verification success.Use video
Particular data in two field picture, as the identifying code of proving program, has good camouflage effectiveness, be difficult to by
Imitation cracks, and improves the confidentiality of streaming media service program in server.
Detailed description of the invention
Understandable, below in conjunction with the accompanying drawings for enabling the above-mentioned purpose of the application, feature and advantage to become apparent from
With detailed description of the invention, the application is described in further detail.
One of core idea of the embodiment of the present application is, by by the streaming media service program in server
Be set using control of authority, use by server provide depending on video frame images in particular data as testing
The identifying code of card program, only the ability open flows media server program when proving program program verification success
Use control of authority.
With reference to Fig. 1, it is shown that the control method of the server object of a kind of server of the application is implemented
The flow chart of steps of example 1, at least includes in described server: have the first service using control of authority
Program object, and, not there is the second service program object using control of authority, described method tool
Body may include steps of:
Step 101, when accessing described server, receives regarding of described second service program object offer
Frequently flow data;
First service program object specifically provides the service routine of streaming media service, second service program pair
As specifically providing the service routine of video stream data.Service routine refers to install in the server for carrying
Program for specific function.It is said that in general, the server being provided with streaming media service program is properly termed as stream
Media server.
In the embodiment of the present application, the proving program accessed by outside is to providing the first of streaming media service
The use authority of server object is controlled.Proving program may be mounted in moveable equipment,
Similar U-shield.Whenever needing the streaming media service program using server, it is required for accessing proving program
Control the use authority of streaming media service program.
Step 102, decodes described video stream data, it is thus achieved that video frame images;
When proving program access server, never there is the second service program object using control of authority
The video requency frame data that middle acquisition is generated by preset rules.Each video frame images in video requency frame data is the most pre-
First it is provided with the first object data as identifying code and the second target data.
Step 103, extracts first object data by the first presetting rule from described video frame images;
Proving program is extracted the first object data pre-set in video frame images by the first presetting rule.
Step 104, extracts the second target data by the second presetting rule from described video frame images;
Proving program is extracted the second target data pre-set in video frame images by the second presetting rule
Step 105, it is judged that whether described first object data mate with described second target data;
Proving program judges whether first object data mate with the second target data.
Step 106, when described first object data are mated with described second target data, open described
The use control of authority of first service program object.
When first object data are mated with the second target data, the open first service program pair of proving program
The use control of authority of elephant.
As a kind of preferred exemplary of the embodiment of the present application, the use authority of described first service program object
Control the core document for lacking described first service program object in described server;Described first service
The core document of program object at least includes for supporting the properly functioning institute of described first service program object
Requisite file;
Described step 106 specifically can include following sub-step:
Sub-step S11, sends the core document of preset described first service program object to described clothes
Business device, described server is for after the core document receiving described first service program object, open
The use control of authority of described first service program object.
Further, when the movable equipment being provided with proving program that server detects, from server
During middle dial-out, the core document of first service program object can be deleted, to arrange first service by server
The use control of authority of program object.
The embodiment of the present application, by the streaming media service program in server is set using control of authority, is adopted
With provided by server the particular data in the frequency two field picture that regards as the identifying code of proving program, only when
The use control of authority of ability open flows media server program during proving program program verification success.Use video
First object data pre-set in two field picture and the second target data are as the checking of proving program
Code, has good camouflage effectiveness, is difficult to imitated cracking, improve streaming media service journey in server
Sequence confidentiality is high.
With reference to Fig. 2, it is shown that the control method of the server object of a kind of server of the application is implemented
The flow chart of steps of example 2, at least includes in described server: have the first service using control of authority
Program object, and, not there is the second service program object using control of authority, described method tool
Body may include steps of:
Step 201, when accessing described server, receives regarding of described second service program object offer
Frequently flow data;
Step 202, decodes described video stream data, it is thus achieved that video frame images;
Step 203, extract from described video frame images default first object pixel R passage,
G passage, the value of channel B form first object data;
In the embodiment of the present application, proving program extract from video frame images preset one or more
The R of first object pixel, G, the value of channel B, then use each first object pixel R,
G, the value of channel B generate first object data.
Such as: extract the R of each pixel of the first row, G, the value of channel B in video frame images, will
The R of each pixel, G, the value of channel B arrange in order, obtain first object data.
As it is shown on figure 3, be the schematic diagram generating first object data in the embodiment of the present application.
In figure, the first row, the R of first pixel, G, channel B value are respectively 23,49,214;
The R of second pixel, G, channel B value are respectively 26,40,225;The R of the 3rd pixel,
G, channel B value are respectively 26,45,209;……
The R of each pixel of the first row, G, the value of channel B are arranged the first object obtained in order
Data are: 234921426402253045209 ...
First object pixel in video frame images is arranged by the second service program in server;Second
Which pixel service routine selects all be possible as first object pixel, as long as proving program can
To learn which point of second service procedure Selection is as first object pixel.
The numerical range of image R, G, B value is 0-255.
As a kind of preferred exemplary of the embodiment of the present application, when described first object pixel R passage,
When certain passage in G passage, channel B is not used, use random value unadapted logical as this
The value in road.
When certain passage in the R passage of described first object pixel, G passage, channel B is not adopted
Used time, by proving program, generate the random value value as this unadapted passage.The scope of random value
Between 0-255.
Step 204, extract from described video frame images the second default target pixel points R passage,
G passage, the value of channel B form the second target data;
In the embodiment of the present application, proving program extract from video frame images preset one or more
And the R of target pixel points, G, the value of channel B, then use each the second target pixel points R,
G, the value of channel B generate the second target data.
Such as: extract the R of second each pixel of row, G, the value of channel B in video frame images, will
The R of each pixel, G, the value of channel B arrange in order, obtain the second target data.
The second target pixel points in video frame images is arranged by the second service program in server;Second
Which pixel service routine selects all be possible as the second target pixel points, as long as proving program can
To learn which o'clock of second service procedure Selection is as the second target pixel points.
As a kind of preferred exemplary of the embodiment of the present application, when described second target pixel points R passage,
When certain passage in G passage, channel B is not used, use random value unadapted logical as this
The value in road.
When certain passage in the R passage of described second target pixel points, G passage, channel B is not adopted
Used time, by proving program, generate the random value value as this unadapted passage.The scope of random value
Between 0-255.
Step 205, it is judged that whether described first object data mate with described second target data;
Proving program judges whether first object data mate with the second target data.
In the embodiment of the present application, the R passage of described second target pixel points, G passage, channel B
It is worth and is used the R passage of described first object pixel, G passage, B by described second service program object
The value of passage, is calculated by default value transfer algorithm and generates.
Concrete, the R of first object pixel in second service Program extraction video frame images, G,
The value of channel B;(such as, character string reversion algorithm) is to the then according to preset numerical value transfer algorithm
The R of one target pixel points, G, the value of channel B are changed, and generate intermediate value.
Then from video frame images, choose the second object pixel corresponding with each first object pixel
Point, the intermediate value that then will be generated by the value of the R of each first object pixel, G, channel B, generation
For the original R of the second corresponding target pixel points, G, the value of channel B.
As a kind of preferred exemplary of the embodiment of the present application, described step 205 specifically can include following son
Step:
Sub-step S21, uses described first object data, calculates raw by described default value transfer algorithm
Become the 3rd target data;
Proving program uses preset numerical value transfer algorithm, and first object data are converted into the 3rd number of targets
According to.Concrete, in proving program numerical value transfer algorithm, changes with the numerical value in second service program and calculates
Method is all arranged by producer.The numerical value that second server program is used, when arranging, is turned by producer
Scaling method is input in the proving program of correspondence.
Sub-step S21, relatively described 3rd target data is the most identical with described second target data, if
Identical, then judge that described first object data are mated with described second target data;Otherwise judge described
One target data is not mated with described second target data.
During it is said that in general, use corresponding with server proving program access server, the in server
The numerical value transfer algorithm that the numerical value transfer algorithm of two service routines and proving program are used is identical, because of
This, second service program the second target data using numerical value transfer algorithm to generate is adopted with by proving program
The 3rd target data generated with numerical value transfer algorithm should be identical.
When the 3rd target data is identical with the second target data, then proving program is thought, first object number
Mate according to the second target data.
When the 3rd target data differs with the second target data, then proving program is thought, first object
Data are not mated with the second target data.3rd target data can with the reason that the second target data differs
Can be proving program be not corresponding with server, proving program use numerical value transfer algorithm with second take
The numerical value transfer algorithm of business program is different.
Step 206, when described first object data are mated with described second target data, open described
The use control of authority of first service program object.
When first object data are mated with the second target data, the open first service program pair of proving program
The use control of authority of elephant.
As a kind of preferred exemplary of the embodiment of the present application, the use authority of described first service program object
Control the core document for lacking described first service program object in described server;Described first service
The core document of program object at least includes for supporting the properly functioning institute of described first service program object
Requisite file;
Described step 206 specifically can include following sub-step:
Sub-step S31, sends the core document of preset described first service program object to described clothes
Business device, described server is for after the core document receiving described first service program object, open
The use control of authority of described first service program object.
In order to make those skilled in the art better understood when the embodiment of the present invention, below by one
The embodiment of the present invention is illustrated by individual example:
With reference to shown in Fig. 4, it it is the control method embodiment of the server object of a kind of server of the application
The flow chart of steps of 3.
Step 301, the video flowing generating routine in server is by the authentication image create-rule preset, raw
Become video stream data;
Step 302, video flowing generating routine, by video stream data, sends to key service routine;
Step 303, by U-shield access server;
Step 304, after server detects that U-shield accesses, video stream data is sent by key service routine
In the proving program of U-shield;
Step 305, proving program decoded video streams data obtain multiple video frame images;
Step 306, it is logical that proving program extracts R, G, B of the pixel of the first row in video frame images
Road value, as first object data;Extract R, G, B of the pixel of the second row in video frame images
Channel value, as the second target data;First object data are carried out character string reversion, generates the 3rd mesh
Mark data;Judge that the 3rd target data is the most identical with the second target data;
Step 307, if identical, then proving program is by the streaming media service program with server in U-shield
Corresponding core document sends to server.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as one it be
The combination of actions of row, but those skilled in the art should know, and the embodiment of the present application is not by described
The restriction of sequence of movement because according to the embodiment of the present application, some step can use other orders or
Person is carried out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description
Belong to preferred embodiment, necessary to involved action not necessarily the embodiment of the present application.
With reference to Fig. 5, it is shown that the control device of the server object of a kind of server of the application is implemented
The structured flowchart of example, at least includes in described server: have the first service program using control of authority
Object, and, not there is the second service program object using control of authority, described device specifically may be used
To include such as lower module:
Video stream data receiver module 41, for when accessing described server, receiving described second service
The video stream data that program object provides;
Video frame images obtains module 42, for decoding described video stream data, it is thus achieved that video frame images;
First extraction module 43, for extracting the first mesh by the first presetting rule from described video frame images
Mark data;
Second extraction module 44, for extracting the second mesh by the second presetting rule from described video frame images
Mark data;
Judge module 45, be used for judging described first object data whether with described second target data
Join;
Open module 46, for when described first object data are mated with described second target data, opens
Put the use control of authority of described first service program object.
As a kind of preferred exemplary of the embodiment of the present application, described first extraction module 43 can be further
Including:
First passage extracts submodule, for extracting default first object picture from described video frame images
The R passage of vegetarian refreshments, G passage, the value of channel B form first object data.
As a kind of preferred exemplary of the embodiment of the present application, described second extraction module 44 can be further
Including:
Second channel extracts submodule, for extracting the second default target picture from described video frame images
The R passage of vegetarian refreshments, G passage, the value of channel B form the second target data.
As a kind of preferred exemplary of the embodiment of the present application, the R passage of described second target pixel points, G
Passage, the value of channel B are used the R of described first object pixel to lead to by described second service program object
Road, G passage, the value of channel B, calculated by default value transfer algorithm and generate.
As a kind of preferred exemplary of the embodiment of the present application, described judge module 45 may further include:
Target data calculating sub module, is used for using described first object data, turns by described default value
Scaling method calculates and generates the 3rd target data;
Target data comparison sub-module, for relatively described 3rd target data whether with described second target
Data are identical, if identical, then judge that described first object data are mated with described second target data;No
Then judge that described first object data are not mated with described second target data.
As a kind of preferred exemplary of the embodiment of the present application, when described first object pixel or the second pixel
When certain passage in the R passage of point, G passage, channel B is not used, use random value as this
The value of unadapted passage.
As a kind of preferred exemplary of the embodiment of the present application, the use authority of described first service program object
Control the core document for lacking described first service program object in described server;Described first service
The core document of program object at least includes for supporting the properly functioning institute of described first service program object
Requisite file;
Described open module may further include:
Core document sends submodule, for by the core document of preset described first service program object
Sending to described server, described server is in the core receiving described first service program object
After file, the use control of authority of open described first service program object.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the comparison described
Simply, relevant part sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and each embodiment stresses
Be all the difference with other embodiments, between each embodiment, identical similar part sees mutually
?.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present application can be provided as method, dress
Put or computer program.Therefore, the embodiment of the present application can use complete hardware embodiment, completely
Software implementation or the form of the embodiment in terms of combining software and hardware.And, the embodiment of the present application
Can use and can be situated between with storage at one or more computers wherein including computer usable program code
The upper computer journey implemented of matter (including but not limited to disk memory, CD-ROM, optical memory etc.)
The form of sequence product.
The embodiment of the present application is with reference to the method according to the embodiment of the present application, terminal unit (system) and meter
The flow chart of calculation machine program product and/or block diagram describe.It should be understood that can be by computer program instructions
Each flow process in flowchart and/or block diagram and/or square frame and flow chart and/or square frame
Flow process in figure and/or the combination of square frame.Can provide these computer program instructions to general purpose computer,
The processor of special-purpose computer, Embedded Processor or other programmable data processing terminal equipment is to produce
One machine so that performed by the processor of computer or other programmable data processing terminal equipment
Instruction produce for realizing at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The device of the function specified in multiple square frames.
These computer program instructions may be alternatively stored in and computer or other programmable datas can be guided to process
In the computer-readable memory that terminal unit works in a specific way so that be stored in this computer-readable
Instruction in memorizer produces the manufacture including command device, and this command device realizes flow chart one
The function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded into computer or other programmable data processing terminals set
Standby upper so that on computer or other programmable terminal equipment, to perform sequence of operations step in terms of producing
The process that calculation machine realizes, thus the instruction performed on computer or other programmable terminal equipment provides and uses
In realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame
The step of the function specified.
Although having been described for the preferred embodiment of the embodiment of the present application, but those skilled in the art being once
Know basic creative concept, then these embodiments can be made other change and amendment.So,
Claims are intended to be construed to include preferred embodiment and fall into the institute of the embodiment of the present application scope
There are change and amendment.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like
It is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires
Or imply relation or the order that there is any this reality between these entities or operation.And, art
Language " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that
Process, method, article or terminal unit including a series of key elements not only include those key elements, and
Also include other key elements being not expressly set out, or also include for this process, method, article or
The key element that person's terminal unit is intrinsic.In the case of there is no more restriction, statement " include one
It is individual ... " key element that limits, it is not excluded that including the process of described key element, method, article or end
End equipment there is also other identical element.
Control method and one to the server object of a kind of server provided herein above
The control device of the server object of server, is described in detail, used herein the most individual
Principle and the embodiment of the application are set forth by example, and the explanation of above example is only intended to help
Understand the present processes and core concept thereof;Simultaneously for one of ordinary skill in the art, foundation
The thought of the application, the most all will change, in sum,
This specification content should not be construed as the restriction to the application.