Specific embodiment
Embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the certain of the disclosure in attached drawing
Embodiment, it should be understood that, the disclosure can be realized by various forms, and should not be construed as being limited to this
In the embodiment that illustrates, providing these embodiments on the contrary is in order to more thorough and be fully understood by the disclosure.It should be understood that
It is that being given for example only property of the accompanying drawings and embodiments effect of the disclosure is not intended to limit the protection scope of the disclosure.
It should be appreciated that each step recorded in disclosed method embodiment can execute in a different order,
And/or parallel execution.In addition, method implementation may include additional step and/or omit the step of execution is shown.This public affairs
The range opened is not limited in this respect.
Terms used herein " comprising " and its deformation are that opening includes, i.e., " including but not limited to ".Term "based"
It is " being based at least partially on ".Term " one embodiment " expression " at least one embodiment ";Term " another embodiment " indicates
" at least one other embodiment ";Term " some embodiments " expression " at least some embodiments ".The correlation of other terms is fixed
Justice provides in will be described below.
It is noted that the concepts such as " first " that refers in the disclosure, " second " are only used for carrying out device, module or unit
It distinguishes, is not intended to limit these devices, module or unit one and is set to different devices, module or unit, be also not intended to limit
The sequence or relation of interdependence of function performed by these fixed devices, module or unit.
It is noted that referred in the disclosure "one", the modification of " multiple " be schematically and not restrictive this field
It will be appreciated by the skilled person that being otherwise construed as " one or more " unless clearly indicate otherwise in context.
The being merely to illustrate property of title of the message or information that are interacted between multiple devices in disclosure embodiment
Purpose, and be not used to limit the range of these message or information.
To keep the purposes, technical schemes and advantages of the disclosure clearer, below in conjunction with attached drawing to disclosure embodiment party
Formula is described in further detail.
Processing method, device, electronic equipment and the computer readable storage medium for the video that the disclosure provides, it is intended to solve
The technical problem as above of the prior art.
How the technical solution of the disclosure and the technical solution of the disclosure are solved with specifically embodiment below above-mentioned
Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept
Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, embodiment of the disclosure is described.
A kind of processing method of video is provided in one embodiment, is applied to first and is calculated equipment, as shown in Figure 1,
This method comprises:
Step S101 extracts multiple primitive frame images according to preset pumping frame mode from original video;
Wherein, video to be processed is the video that duration is less than first threshold, and original video is that duration is greater than second threshold
Video, for example, original video can be the legal video file that video publication side provides.In the embodiments of the present disclosure, Ke Yixian
Original video is carried out using the first calculating equipment to take out frame processing, obtains multiple primitive frame images of original video.
Multiple primitive frame images are sent at least two second calculating and set by step S102 according to preset ways of distribution
It is standby, so that at least two second calculating equipment determine the phase of primitive frame image with each frame image in video to be processed respectively
Like degree.
Step S103 receives the similarity that at least two second calculating equipment are sent respectively;
Step S104 is handled video to be processed according to similarity.
Multiple primitive frame images are distributed to multiple second according to preset ways of distribution and calculate equipment by the first calculating equipment,
Each second equipment determines the similarity of each frame image in primitive frame image and video to be processed respectively, and similarity is sent out
It send to first and calculates equipment, the first calculating equipment to video to be processed can will handle according to similarity.
In this way, first calculates equipment first to long video progress frame image zooming-out, reduce a part of data volume, then will extract
Frame image afterwards is distributed to multiple second and calculates equipment and video to be processed carries out matching treatment, further mitigates single the
Two calculate the data processing amount of equipment, to improve the speed of data processing;Meanwhile by for long video based on inquiry
The relevant treatment matched carries out distributed treatment, improves the efficiency of data processing, meets current large-scale video calculation processing
Demand.
Continue that a kind of processing method of video as shown in Figure 1 is described in detail in another embodiment.
Step S101 extracts multiple primitive frame images according to preset pumping frame mode from original video;
Wherein, video to be processed is the video that duration is less than first threshold, and original video is that duration is greater than second threshold
Video, for example, original video can be the legal video file that video publication side provides.Usually, one second video includes
36 frame images, it is assumed that some original video when a length of 2 hours, then the original video just includes 259200 (120*60*
36) frame image is opened, if handled using the single equipment that calculates each frame image, on the one hand, even if calculating equipment
In the enough situations of performance, it is still desirable to it takes a substantial amount of time and is possible to complete (for example delay machine is then unable to complete), it is another
Aspect also can independently be handled long video without individually calculating equipment on the market at present.So in the embodiment of the present disclosure
In, first original video can be carried out using the first calculating equipment to take out frame processing, obtain multiple primitive frame images of original video.
In a kind of preferred embodiment of the disclosure, according to preset pumping frame mode, it is original that multiple are extracted from original video
Frame image, comprising:
Original video is divided at least two video clips according to the preset time interval;
Extract the primitive frame image of preset quantity respectively from least two video clips.
For example, can be that unit carries out cutting according to second, minute etc. by original video, multiple video clips be obtained, each
The duration of video clip is exactly the preset period, and the primitive frame figure of preset quantity is then extracted from each video clip
Picture, to obtain multiple primitive frame images after the original video extracts.For example, for when a length of 2 hours long video, often
Second extracts 2 frame images, obtains 14400 (120*60*2) frame images after extracting for long video.
Multiple primitive frame images are sent at least two second calculating and set by step S102 according to preset ways of distribution
It is standby, so that at least two second calculating equipment determine the phase of primitive frame image with each frame image in video to be processed respectively
Like degree.
Multiple primitive frame images are distributed to multiple second according to preset ways of distribution and calculate equipment by the first calculating equipment,
In this way, multiple second equipment can carry out the calculating of similarity simultaneously, the speed of data processing is improved.
In a kind of preferred embodiment of the disclosure, according to preset ways of distribution, by multiple primitive frame images be sent to
Few two second calculating equipment, including following one:
Multiple primitive frame images are sent at least two second calculating equipment in a manner of average distribution;
The present load amount for calculating equipment according at least two second, by multiple primitive frame images in a manner of load balancing
It is sent at least two second calculating equipment.
Specifically, multiple primitive frame images can be sent to multiple second in a manner of average distribution calculates equipment.
For example, having extracted 9 primitive frame images for original video, 9 primitive frame images are successively sent to the second calculating in order
Equipment A, B, C, i.e. the 1st primitive frame image are sent to A, and the 2nd primitive frame image is sent to B, and the 3rd primitive frame image is sent
To C, the 4th primitive frame image is sent to A, and so on;It is retransmited alternatively, 9 primitive frame images are divided into three set
To A, B, C, i.e. the 1st~3 primitive frame image is sent to A, and the 4th~6 primitive frame image is sent to B, the 7th~9 primitive frame
Image is sent to C.
The present load amount that equipment can also be calculated according to each second, by multiple primitive frame images with the side of load balancing
Formula is sent to multiple second and calculates equipment, for example, A is presently processing 9 frame images, B is presently processing 1 frame image, C
3 frame images are presently processing, then primitive frame image is just respectively sent to B and C, until A, B, C processing frame image
Quantity is identical.It is, of course, also possible to be allocated using other allocation rules to multiple primitive frame images, the disclosure does not make this
Limitation.
In the disclosure, each second calculating equipment is all identical, and for convenience of describing, the embodiment of the present disclosure is based on any
Second calculating equipment is described in detail.
In practical applications, it can store what all users uploaded in the database with preset a short video database
Short video files, if the video that user uploads usurps the segment in some film, the video that user uploads be will result in
Infringement, it is therefore desirable to which the video that user uploads is matched with original video.
If the video that some user uploads is really the segment for usurping a certain film, which uploads short-sighted
The matching degree of a certain frame image and primitive frame image in frequency file is certainly very high.If the short-sighted frequency text that multiple users upload
Part has all usurped same segment, then can be obtained by multiple frame images and the matching degree of primitive frame image is very high.
It should be noted that in practical applications, after user uploads to video in short video database, the first calculating is set
It is handled for any short-sighted frequency can be obtained from short video database.
Further, at least primitive frame image that any second calculating equipment interconnection receives, the frame with video to be processed
The mode of image progress similarity calculation, comprising:
At least primitive frame image that any second calculating equipment interconnection receives carries out feature extraction processing respectively, obtains
At least a primitive frame image respectively corresponds image feature vector;
Image feature vector is respectively corresponded according to an at least primitive frame image, it is preset with the frame image of video to be processed
Feature vector carries out similarity calculation.
In practical applications, feature extraction is carried out to any frame image, a feature vector can be generated.For example, needle
To field of face identification extract face characteristic information may include: the age, gender, whether wearing spectacles, whether have beard etc.;Needle
To discrete variable, such as age, be converted to vector be can be directly with specific age value;For non-discrete type variable,
Such as gender, the probability for male can be used when being converted to vector or it is the probability etc. of women.
The embodiment of the present disclosure exactly utilizes this characteristic, carries out feature extraction to any frame original image, generates original spy
Vector is levied, then similarity calculation is carried out with the feature vector of each frame image of video to be processed, similarity is more than or equal to
The corresponding frame image of the feature vector of similarity threshold, the matching result as the primitive frame image.
It should be noted that the feature vector of each frame image of video to be processed can be before carrying out similarity calculation
It is calculated, is directly acquired when calculating similarity;It can also carry out calculating again when similarity calculation;May be used also
Be calculated at other times in the case where not influencing similarity calculation, the embodiment of the present disclosure to this with no restriction.
Further, the quantity of the second calculating equipment can be adjusted according to actual needs, and above-mentioned example is only as an example
Illustrate, the disclosure calculates the quantity of equipment also with no restriction to second.
Step S103 receives the similarity that at least two second calculating equipment are sent respectively;
In a kind of preferred embodiment of the disclosure, according to similarity, video to be processed is handled, comprising:
Delete the frame image that similarity in video to be processed is greater than similarity threshold.
Specifically, the second calculating equipment is determining that which frame image in video and primitive frame image be close, phase
Like or it is identical after, the result determined is sent to the first calculating equipment, first calculates equipment will be in video to be processed
Close, similar or identical frame image is disappeared to be handled again, for example is deleted, thus the weight that obtains disappearing treated video.
Step S104 is handled video to be processed according to similarity.
In a kind of preferred embodiment of the disclosure, according to similarity, video to be processed is handled, comprising:
According to similarity, determine whether video to be processed is illegal video.
For example, when the quantity that similarity is greater than the frame image of similarity threshold in video to be processed is more than preset thresholding
When the accounting that similarity is greater than the frame image of similarity threshold in value or video to be processed is more than preset proportion threshold value, so that it may
It whether is illegal video with determination video to be processed.
Further, each short video files in short video database have corresponding attribute information, such as upload user
ID, short-sighted frequency ID, short video type etc., so, the frame image of each short-sighted frequency also has corresponding attribute information.Moreover, because
To be matched by the progress of frame image, all it has been matched on the same user so it is possible to will appear multiple second calculating equipment
The case where same short-sighted frequency passed.Therefore, third calculates equipment when receiving multiple identical attribute informations, can after merging
To retain one, can also all retain, can also be handled using other way, the disclosure to this with no restriction.
If only one attribute information after merging, the corresponding short video files of the attribute information are exactly target view
Frequently, if there are also multiple attribute informations after merging, the corresponding short video files of each attribute information are just target views
Frequently, that is, encroach right it is short-sighted then, disappeared to target video and handled again frequently, the weight that obtains disappearing treated video.
Wherein, the first calculating equipment, the second calculating equipment can have following features:
(1) on hardware systems, equipment has central processing unit, memory, input part and output block, that is,
It says, equipment is often to have the microcomputer devices of communication function.Furthermore it is also possible to have multiple input modes, such as key
Disk, mouse, touch screen, transmitter and camera etc., and can according to need and be adjusted input.Meanwhile equipment often has
A variety of way of outputs, such as receiver, display screen, also can according to need and are adjusted;
(2) on software architecture, equipment must have operating system, as Windows Mobile, Symbian, Palm,
Android, iOS etc..Meanwhile these operating systems are more and more open, based on these operating system platform exploitations opened
Property application program emerge one after another, such as address book, schedule, notepad, calculator and various types of games are dramatically full
The foot demand of personalized user;
(3) in communication capacity, equipment has flexible access way and high-bandwidth communication performance, and can be according to selected by
The business selected and locating environment, communication mode selected by adjust automatically, thus user-friendly.Equipment can support GSM
(Global System for Mobile Communication, global system for mobile communications), WCDMA (Wideband Code
Division Multiple Access, wideband code division multiple access), CDMA2000 (Code Division Multiple
Access, CDMA), TDSCDMA (Time Division-Synchronous Code Division Multiple
Access, TD SDMA), Wi-Fi (Wireless-Fidelity, Wireless Fidelity) and WiMAX (Worldwide
Interoperability for Microwave Access, worldwide interoperability for microwave accesses) etc., to adapt to multiple types net
Network not only supports voice service, more supports a variety of wireless data services;
(4) in function using upper, equipment more focuses on hommization, personalized and multifunction.With computer technology
Development, equipment enter the mode of " human-centred " from the mode of " facility center management ", are integrated with embedding assembly, control skill
Art, artificial intelligence technology and biometrics etc. have fully demonstrated people-oriented objective.Due to the hair of software technology
Exhibition, equipment can be adjusted according to demands of individuals to be arranged, more personalized.Meanwhile equipment itself is integrated with numerous software and hardwares,
Function is also stronger and stronger.
In the embodiments of the present disclosure, first equipment is calculated according to preset pumping frame mode, extract multiple from original video
Multiple primitive frame images are sent at least two second calculating equipment then according to preset ways of distribution by primitive frame image,
So that at least two second calculating equipment carry out similarity meter with video to be processed respectively according to the primitive frame image received
Calculation handles to obtain calculated result.In this way, first calculates equipment first to long video progress frame image zooming-out, reduce a part of data
Amount, then the frame image after extraction is distributed to multiple second and calculates equipment and video progress matching treatment to be processed, further
The single second data processing amount for calculating equipment is alleviated, to improve the speed of data processing;Meanwhile long video will be directed to
Relevant treatment based on match query carry out distributed treatment, improve the efficiency of data processing, meet current large-scale
Video calculation processing demand.
A kind of processing method of video is provided in another embodiment, is applied to second and is calculated equipment, such as Fig. 2 institute
Show, this method comprises:
Step S201 receives first and calculates the primitive frame image that equipment is sent, primitive frame image be the first calculating equipment according to
According to preset pumping frame mode, extracted from original video;
Step S202 determines the similarity of each frame image in primitive frame image and video to be processed;
Similarity is sent to third and calculates equipment by step S203, so that third calculates equipment according to the phase received
Video to be processed is handled like degree.
Specifically, the second calculating equipment is determining that which frame image in video and primitive frame image be close, phase
Like or it is identical after, by the result determined be sent to third calculate equipment, third calculate equipment will be in video to be processed
Close, similar or identical frame image is disappeared to be handled again, for example is deleted, thus the weight that obtains disappearing treated video.
In a kind of preferred embodiment of the disclosure, video to be processed is the video that duration is less than first threshold, such as wait locate
Reason video can be short-sighted frequency;Original video is the video that duration is greater than second threshold, such as original video can be film etc.
Long video.
The processing method of video shown in the processing method and disclosure one embodiment of the video of the embodiment of the present disclosure,
Its realization principle is similar, and details are not described herein again.
In the embodiments of the present disclosure, any second calculating equipment receives the primitive frame image of the first calculating equipment transmission
Afterwards, the similarity of each frame image in primitive frame image and video to be processed is determined;Wherein, primitive frame image is the first calculating
Equipment is extracted from original video according to preset pumping frame mode;Similarity is sent to third again and calculates equipment, so that
Third calculates equipment and handles according to the similarity received video to be processed.In this way, first calculates equipment to long video
Frame image zooming-out has been carried out, to reduce a part of data volume, then the frame image after extraction has been distributed to multiple second and is calculated
Equipment and video to be processed carry out matching treatment, further mitigate the single second data processing amount for calculating equipment, thus
Improve the speed of data processing;Meanwhile distributed treatment will be carried out for the relevant treatment based on match query of long video,
The efficiency of data processing is improved, current large-scale video calculation processing demand is met.
Fig. 3 is a kind of structural schematic diagram of the processing unit for video that the another embodiment of the disclosure provides, as shown in figure 3,
The device of the present embodiment may include:
Extraction module 301, for extracting multiple primitive frame images from original video according to preset pumping frame mode;
First sending module 302, for according to preset ways of distribution, multiple primitive frame images to be sent at least two
Second calculates equipment, so that at least two second calculating equipment determine in primitive frame image and video to be processed each respectively
The similarity of frame image;
First receiving module 303, the similarity sent respectively for receiving at least two second calculating equipment;
Processing module 304, for handling video to be processed according to similarity.
In a kind of preferred embodiment of the disclosure, extraction module includes:
Submodule is divided, for original video to be divided at least two video clips according to the preset time interval;
Primitive frame image zooming-out submodule, for extracting the original of preset quantity respectively from least two video clips
Frame image.
In a kind of preferred embodiment of the disclosure, the first sending module is specifically used for:
Multiple primitive frame images are sent at least two second calculating equipment in a manner of average distribution;
Or,
The present load amount for calculating equipment according at least two second, by multiple primitive frame images in a manner of load balancing
It is sent at least two second calculating equipment.
In a kind of preferred embodiment of the disclosure, processing module is specifically used for:
Delete the frame image that similarity in video to be processed is greater than similarity threshold.
In a kind of preferred embodiment of the disclosure, processing module is specifically used for:
According to similarity, determine whether video to be processed is illegal video.
In a kind of preferred embodiment of the disclosure, video to be processed is the video that duration is less than first threshold, original video
It is greater than the video of second threshold for duration.
The processing method of video shown in disclosure one embodiment can be performed in the processing unit of the video of the present embodiment,
Its realization principle is similar, and details are not described herein again.
In the embodiments of the present disclosure, first equipment is calculated according to preset pumping frame mode, extract multiple from original video
Multiple primitive frame images are sent at least two second calculating equipment then according to preset ways of distribution by primitive frame image,
So that at least two second calculating equipment carry out similarity meter with video to be processed respectively according to the primitive frame image received
Calculation handles to obtain calculated result.In this way, first calculates equipment first to original video progress frame image zooming-out, reduce a part of number
According to amount, then the frame image after extraction is distributed to multiple second and calculates equipment and video progress matching treatment to be processed, into one
Step alleviates the single second data processing amount for calculating equipment, to improve the speed of data processing;Meanwhile it will be for long view
The relevant treatment based on match query of frequency carries out distributed treatment, improves the efficiency of data processing, meets current extensive
Video calculation processing demand.
Fig. 4 is a kind of structural schematic diagram of the processing unit for video that the another embodiment of the disclosure provides, as shown in figure 4,
The device of the present embodiment may include:
Second receiving module 401, the primitive frame image sent for receiving the first calculating equipment, primitive frame image is first
Equipment is calculated according to preset pumping frame mode, is extracted from original video;
Computing module 402, for determining the similarity of each frame image in primitive frame image and video to be processed;
Second sending module 403 calculates equipment for similarity to be sent to third, so that third calculates equipment foundation
The similarity received handles video to be processed.
In a kind of preferred embodiment of the disclosure, video to be processed is the video that duration is less than first threshold, original video
It is greater than the video of second threshold for duration.
The processing method of video shown in second embodiment of the disclosure can be performed in the processing unit of the video of the present embodiment,
Its realization principle is similar, and details are not described herein again.
In the embodiments of the present disclosure, after the second calculating equipment receives the primitive frame image that the first calculating equipment is sent, really
Make the similarity of each frame image in primitive frame image and video to be processed;Wherein, primitive frame image is the first calculating equipment
According to preset pumping frame mode, extracted from original video;Similarity is sent to third again and calculates equipment, so that third
Equipment is calculated to handle video to be processed according to the similarity received.In this way, first calculates equipment to long video progress
Frame image after extraction to reduce a part of data volume, then is distributed to multiple second and calculates equipment by frame image zooming-out
Matching treatment is carried out with video to be processed, the single second data processing amount for calculating equipment is further mitigated, to improve
The speed of data processing;Meanwhile distributed treatment will be carried out for the relevant treatment based on match query of long video, it is promoted
The efficiency of data processing meets current large-scale video calculation processing demand.
Below with reference to Fig. 5, it illustrates the structural representations for the electronic equipment 500 for being suitable for being used to realize the embodiment of the present disclosure
Figure.Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect
Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle
Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 5
Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
Electronic equipment includes: memory and processor, wherein processor here is properly termed as processing described below
Device 501, memory may include read-only memory (ROM) 502 hereinafter, random access storage device (RAM) 503 and deposit
At least one of in storage device 508, it is specific as follows shown:
As shown in figure 5, electronic equipment 500 may include processing unit (such as central processing unit, graphics processor etc.)
501, random access can be loaded into according to the program being stored in read-only memory (ROM) 502 or from storage device 508
Program in memory (RAM) 503 and execute various movements appropriate and processing.In RAM 503, it is also stored with electronic equipment
Various programs and data needed for 500 operations.Processing unit 501, ROM 502 and RAM 503 pass through the phase each other of bus 504
Even.Input/output (I/O) interface 505 is also connected to bus 504.
In general, following device can connect to I/O interface 505: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 506 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 507 of dynamic device etc.;Storage device 508 including such as tape, hard disk etc.;And communication device 509.Communication device
509, which can permit electronic equipment 500, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 5 shows tool
There is the electronic equipment 500 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with
Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising being carried on non-transient computer can
The computer program on medium is read, which includes the program code for method shown in execution flow chart.At this
In the embodiment of sample, which can be downloaded and installed from network by communication device 509, or be filled from storage
It sets 508 to be mounted, or is mounted from ROM 502.When the computer program is executed by processing unit 501, the disclosure is executed
The above-mentioned function of being limited in the method for embodiment.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit
Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned
Any appropriate combination.
In some embodiments, client, server can use such as HTTP (HyperText Transfer
Protocol, hypertext transfer protocol) etc the network protocols of any currently known or following research and development communicated, and can
To be interconnected with the digital data communications (for example, communication network) of arbitrary form or medium.The example of communication network includes local area network
(" LAN "), wide area network (" WAN "), Internet (for example, internet) and ad-hoc network are (for example, the end-to-end net of ad hoc
Network) and any currently known or following research and development network.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity
When sub- equipment executes, so that the electronic equipment: according to preset pumping frame mode, multiple primitive frame figures are extracted from original video
Picture;According to preset ways of distribution, multiple described primitive frame images are sent at least two second calculating equipment, so that extremely
Few two second calculate equipment respectively according to the primitive frame image received, carry out similarity calculation with video to be processed and handle
To calculated result.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include but is not limited to object oriented program language-such as Java,
Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language
Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence
Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or
It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet
It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit
It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in the embodiment of the present disclosure involved module or unit can be realized by way of software, can also be with
It is realized by way of hardware.Wherein, module or the title of unit are not constituted to the unit itself under certain conditions
It limits.
Function described herein can be executed at least partly by one or more hardware logic components.Example
Such as, without limitation, the hardware logic component for the exemplary type that can be used include: field programmable gate array (FPGA), specially
With integrated circuit (ASIC), Application Specific Standard Product (ASSP), system on chip (SOC), complex programmable logic equipment (CPLD) etc.
Deng.
In the context of the disclosure, machine readable media can be tangible medium, may include or is stored for
The program that instruction execution system, device or equipment are used or is used in combination with instruction execution system, device or equipment.Machine can
Reading medium can be machine-readable signal medium or machine-readable storage medium.Machine readable media can include but is not limited to electricity
Son, magnetic, optical, electromagnetism, infrared or semiconductor system, device or equipment or above content any conjunction
Suitable combination.The more specific example of machine readable storage medium will include the electrical connection of line based on one or more, portable meter
Calculation machine disk, hard disk, random access memory (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM
Or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage facilities or
Any appropriate combination of above content.
According to one or more other embodiments of the present disclosure, [example one] provides a kind of processing method of video, comprising:
According to preset pumping frame mode, multiple primitive frame images are extracted from original video;
According to preset ways of distribution, multiple described primitive frame images are sent at least two second calculating equipment, with
So that at least two second calculating equipment determine the similarity of each frame image in primitive frame image and video to be processed respectively;
Receive the similarity that at least two second calculating equipment is sent respectively;
According to the similarity, the video to be processed is handled.
Preferably, described according to preset pumping frame mode, multiple primitive frame images are extracted from original video, comprising:
The original video is divided at least two video clips according to the preset time interval;
Extract the primitive frame image of preset quantity respectively from least two video clip.
Preferably, described according to preset ways of distribution, multiple described primitive frame images are sent at least two second
Calculate equipment, including following one:
Multiple described primitive frame images are sent at least two second calculating equipment in a manner of average distribution;
The present load amount for calculating equipment according to described at least two second, by multiple described primitive frame images to load
The mode of weighing apparatus is sent at least two second calculating equipment.
Preferably, described according to the similarity, the video to be processed is handled, comprising:
Delete the frame image that similarity in the video to be processed is greater than similarity threshold.
Preferably, described according to the similarity, the video to be processed is handled, comprising:
According to the similarity, determine whether the video to be processed is illegal video.
Preferably, the video to be processed is the video that duration is less than first threshold, and the original video is greater than for duration
The video of second threshold.
According to one or more other embodiments of the present disclosure, [example two] provides the device of example one, further includes:
Extraction module, for extracting multiple primitive frame images from original video according to preset pumping frame mode;
First sending module, for according to preset ways of distribution, multiple described primitive frame images to be sent at least two
A second calculates equipment, so that at least two second calculating equipment are determined in primitive frame image and video to be processed respectively respectively
Open the similarity of frame image;
First receiving module, the similarity sent respectively for receiving at least two second calculating equipment;
Processing module, for handling the video to be processed according to the similarity.
Preferably, extraction module includes:
Submodule is divided, for the original video to be divided at least two video clips according to the preset time interval;
Primitive frame image zooming-out submodule, for extracting preset quantity respectively from least two video clip
Primitive frame image.
Preferably, first sending module is specifically used for:
Multiple described primitive frame images are sent at least two second calculating equipment in a manner of average distribution;
Or,
The present load amount for calculating equipment according to described at least two second, by multiple described primitive frame images to load
The mode of weighing apparatus is sent at least two second calculating equipment.
Preferably, processing module is specifically used for:
Delete the frame image that similarity in the video to be processed is greater than similarity threshold.
Preferably, processing module is specifically used for:
According to the similarity, determine whether the video to be processed is illegal video.
Preferably, the video to be processed is the video that duration is less than first threshold, and the original video is greater than for duration
The video of second threshold.
According to one or more other embodiments of the present disclosure, [example three] provides a kind of processing method of video, comprising:
It receives first and calculates the primitive frame image that equipment is sent, the primitive frame image is the first calculating equipment foundation
Preset pumping frame mode, is extracted from original video;
Determine the similarity of each frame image in the primitive frame image and video to be processed;
The similarity is sent to third and calculates equipment, so that third calculating equipment is similar according to receiving
Degree handles the video to be processed.
Preferably, the video to be processed is the video that duration is less than first threshold, and the original video is greater than for duration
The video of second threshold.
According to one or more other embodiments of the present disclosure, [example four] provides the device of example three, further includes:
Second receiving module, the primitive frame image sent for receiving the first calculating equipment, the primitive frame image is institute
The first calculating equipment is stated according to preset pumping frame mode, is extracted from original video;
Computing module, for determining the similarity of each frame image in the primitive frame image and video to be processed;
Second sending module calculates equipment for the similarity to be sent to third, so that third calculating is set
It is standby that the video to be processed is handled according to the similarity received.
Preferably, the video to be processed is the video that duration is less than first threshold, and the original video is greater than for duration
The video of second threshold.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
Although this is not construed as requiring these operations with institute in addition, depicting each operation using certain order
The certain order that shows executes in sequential order to execute.Under certain environment, multitask and parallel processing may be advantageous
's.Similarly, although containing several specific implementation details in being discussed above, these are not construed as to this public affairs
The limitation for the range opened.Certain features described in the context of individual embodiment can also be realized in combination single real
It applies in example.On the contrary, the various features described in the context of single embodiment can also be individually or with any suitable
The mode of sub-portfolio is realized in various embodiments.
Although having used specific to this theme of the language description of structure feature and/or method logical action, answer
When understanding that theme defined in the appended claims is not necessarily limited to special characteristic described above or movement.On on the contrary,
Special characteristic described in face and movement are only to realize the exemplary forms of claims.