CN106778486A - A kind of method and apparatus for differentiating specific image - Google Patents

A kind of method and apparatus for differentiating specific image Download PDF

Info

Publication number
CN106778486A
CN106778486A CN201611031688.5A CN201611031688A CN106778486A CN 106778486 A CN106778486 A CN 106778486A CN 201611031688 A CN201611031688 A CN 201611031688A CN 106778486 A CN106778486 A CN 106778486A
Authority
CN
China
Prior art keywords
write
program code
programming language
data streams
live data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611031688.5A
Other languages
Chinese (zh)
Inventor
祁海
刘阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Holding Beijing Co Ltd
LeTV Cloud Computing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Cloud Computing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeTV Holding Beijing Co Ltd, LeTV Cloud Computing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201611031688.5A priority Critical patent/CN106778486A/en
Publication of CN106778486A publication Critical patent/CN106778486A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present embodiments relate to a kind of method and apparatus for differentiating specific image, including:By the program code that the program code conversion that the first programming language is write is that the second programming language is write, the program code that first programming language is write is used to differentiate specific image offer DLL;Obtain live data streams;The program code for calling second programming language to write is analyzed to the live data streams;And judge whether include specific image in the live data streams according to the result of the analysis.A kind of method and apparatus for differentiating specific image provided in an embodiment of the present invention, can be program code that the second programming language that can be invoked directly is write by the program code conversion that the first programming language is write, so as to improve the efficiency of image authentication.

Description

A kind of method and apparatus for differentiating specific image
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of method and apparatus for differentiating specific image.
Background technology
Network direct broadcasting platform needs to accept the live task of multichannel, and task species is various, and live content numerous and complicated is, it is necessary to right Live task differentiated to evade because user live broadcast image is related to certain content, for example, relate to Huang etc., the operations risks for bringing.
Based on this, it was found by the inventors of the present invention that in the prior art, most of live platform can all use third-party Solution carries out yellow operation of reflecting, and typically provides API or library file by other side, and platform is customized exploitation, a usual pictures It is accomplished by starting a series of processes of the yellow operation of mirror, the operation of program need to take larger internal memory.
The information for being disclosed in the background section is merely intended to increase the understanding to general background of the invention, without answering In being considered as recognizing or imply in any form that the information structure has been the prior art well known to persons skilled in the art.
The content of the invention
In view of this, the embodiment of the present invention technical problem to be solved is how to provide a kind of side for differentiating specific image Method and device can save internal memory during specific image is differentiated.
To solve above technical problem, the embodiment of the present invention provides a kind of method for differentiating specific image, bag on the one hand Include:It is program code that the second programming language is write that DLL is provided by the program code conversion that the first programming language is write, The program code that first programming language is write is used to differentiate specific image;Obtain live data streams;Described second is called to compile The program code that Cheng Yuyan writes is analyzed to the live data streams;And judge described straight according to the result of the analysis Whether specific image is included in multicast data stream.
In a kind of possible implementation, the program code that second programming language is write is called to the live number Carrying out analysis according to stream includes:Process queue is created according to default size, and according to the process queue, calls second programming The program code that language is write is analyzed to the live data streams.
In a kind of possible implementation, according to rule when the program code write according to first programming language runs Returning result of fixing time enters number of passes, sets the default size.
It is described to call described second when the specific image includes pornographic image in a kind of possible implementation The program code that programming language is write is analyzed to the live data streams, including:Second programming language is called to write Program code, the brightness value of the image to being included in the live data streams, hue value, intensity value are analyzed, obtain Specific region;Whether result according to the analysis judges include specific image in the live data streams, including:According to described Whether specific region judges include pornographic image in the live data streams.
In a kind of possible implementation, judge whether include color in the live data streams according to the specific region Feelings image includes:According to the length value and width value of the specific region, judge whether include pornographic in the live data streams Image.
To solve above technical problem, the embodiment of the present invention also provides a kind of device for differentiating specific image, including:Interface Module, is program that the second programming language is write for providing DLL by the program code conversion that the first programming language is write Code, the program code that first programming language is write is used to differentiate specific image;Acquisition module, for obtaining live data Stream;Analysis module, the program code for calling second programming language to write is analyzed to the live data streams;With And judge module, for judging whether include specific image in the live data streams according to the result of the analysis.
In a kind of possible implementation, the analysis module is used for:Process queue, and root are created according to default size According to the process queue, the program code for calling second programming language to write is analyzed to the live data streams.
In a kind of possible implementation, the analysis module is additionally operable to:Write according to first programming language According to the number of passes that enters of regulation time returning result when program code runs, the default size is set.
In a kind of possible implementation, the analysis module is used for:When the specific image includes pornographic image, The program code for calling second programming language to write, brightness value, the form and aspect of the image to being included in the live data streams Value, intensity value are analyzed, and obtain specific region;The judge module is used for:Judge described straight according to the specific region Whether pornographic image is included in multicast data stream.
In a kind of possible implementation, the judge module is additionally operable to:Length value according to the specific region and Whether width value, judges include pornographic image in the live data streams.
To solve above technical problem, the embodiment of the present invention additionally provides a kind of electronic equipment, including:At least one treatment Device;And the memory being connected with least one processor communication;Wherein, the memory storage have can by it is described at least One instruction of computing device, the instruction by least one computing device so that at least one processor Perform the method described in above various aspects.
To solve above technical problem, the embodiment of the present invention additionally provides a kind of non-transient computer readable storage medium storing program for executing, The non-transient computer readable storage medium storing program for executing is stored with computer executable instructions, and the computer executable instructions are used to hold Method described in row above various aspects.
To solve above technical problem, the embodiment of the present invention additionally provides a kind of computer program product, the computer Program product includes computer program of the storage on non-transient computer readable storage medium storing program for executing, and the computer program includes journey Sequence is instructed, and when described program instruction is computer-executed, the computer is performed the method described in above various aspects.
A kind of method and apparatus for differentiating specific image provided in an embodiment of the present invention, by providing DLL by first The program code conversion that programming language is write is the program code that the second programming language is write, what first programming language was write Program code is used to differentiate specific image;Obtain live data streams;The program code pair for calling second programming language to write The live data streams are analyzed;And whether judged in the live data streams comprising specific according to the result of the analysis Image, can be that the second programming language that can be invoked directly is write by the program code conversion that the first programming language is write Program code, so as to save internal memory during specific image is differentiated.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, further feature of the invention and aspect will become It is clear.
Brief description of the drawings
One or more embodiments are illustrative by the picture in corresponding accompanying drawing, these exemplary theorys The bright restriction not constituted to embodiment, the element with same reference numbers label is expressed as similar element in accompanying drawing, removes It is non-to have especially statement, the figure not composition limitation in accompanying drawing.
Fig. 1 shows a kind of flow chart of method for differentiating specific image provided in an embodiment of the present invention;
Fig. 2 shows a kind of flow chart of the method for discriminating specific image that another embodiment of the present invention is provided;
Fig. 3 shows a kind of flow chart of the method for discriminating specific image that another embodiment of the present invention is provided;
Fig. 4 shows a kind of flow chart of the method for discriminating specific image that another embodiment of the present invention is provided;
Fig. 5 shows a kind of structural representation of device for differentiating specific image provided in an embodiment of the present invention;
Fig. 6 is that the hardware configuration of the electronic equipment of the method for performing and differentiating specific image provided in an embodiment of the present invention is illustrated Figure.
Specific embodiment
Below in conjunction with the accompanying drawings, specific embodiment of the invention is described in detail, it is to be understood that guarantor of the invention Shield scope is not limited by specific embodiment.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.Unless Separately there are other to explicitly indicate that, otherwise in entire disclosure and claims, term " including " or its conversion such as "comprising" or " including " etc. will be understood to comprise stated element or part, and not exclude other elements or other compositions Part.
Special word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details are given in specific embodiment below. It will be appreciated by those skilled in the art that without some details, the present invention can equally be implemented.In some instances, for Method well known to those skilled in the art, means, element are not described in detail, in order to highlight purport of the invention.
Embodiment 1
Fig. 1 shows a kind of flow chart of method for differentiating specific image provided in an embodiment of the present invention, and the method can be by Electronic equipment is performed, such as server device etc..In other words, methods described can by the software installed in server device and/ Or hardware is performed.The service end is included but is not limited to:Single server, server cluster etc..As illustrated, the method bag Include following steps.
S1:It is journey that the second programming language is write that DLL is provided by the program code conversion that the first programming language is write Sequence code, the program code that first programming language is write is used to differentiate specific image.
S2:Obtain live data streams.
The live data streams can be concurrent live data streams.
S3:The program code for calling second programming language to write is analyzed to the live data streams.
S4:Whether result according to the analysis judges include specific image in the live data streams.
Thus, a kind of method for differentiating specific image provided in an embodiment of the present invention, by providing DLL by first The program code conversion that programming language is write is the program code that the second programming language is write, what first programming language was write Program code is used to differentiate specific image;Obtain live data streams;The program code pair for calling second programming language to write The live data streams are analyzed;And whether judged in the live data streams comprising specific according to the result of the analysis Image, can be that the second programming language that can be invoked directly is write by the program code conversion that the first programming language is write Program code, so as to save internal memory during specific image is differentiated.
Embodiment 2
Fig. 2 shows a kind of flow chart of the method for discriminating specific image that another embodiment of the present invention is provided, and the method can Performed with by electronic equipment, such as server device etc..In other words, methods described can be by the software installed in server device And/or hardware is performed.The service end is included but is not limited to:Single server, server cluster etc..As illustrated, the party Method is comprised the following steps.
S1:It is journey that the second programming language is write that DLL is provided by the program code conversion that the first programming language is write Sequence code, the program code that first programming language is write is used to differentiate specific image.
In a kind of possible implementation, can be by SWIG (English:Simplified Wrapper and Interface Generator, Chinese:Simplify packaging device and interface generator) DLL is provided.SWIG is to seal C or C++ The instrument for other high-level languages is filled, is not required to change source code framework using SWIG, it is only necessary to provide DLL to needing envelope The function and class of dress are described.
S2:Obtain live data streams.
The live data streams can be concurrent live data streams.
S31:When the program code write according to the first programming language runs, number of passes is entered according to regulation time returning result N, sets default size n, and process queue is created according to default size n.
S32:According to the process queue, the program code that second programming language is write is called to the live data Stream is analyzed.
S4:Whether result according to the analysis judges include specific image in the live data streams.
Thus, a kind of method for differentiating specific image provided in an embodiment of the present invention, by providing DLL by first The program code conversion that programming language is write is the program code that the second programming language is write, what first programming language was write Program code is used to differentiate specific image;Obtain live data streams;The program code pair for calling second programming language to write The live data streams are analyzed;And whether judged in the live data streams comprising specific according to the result of the analysis Image, can be that the second programming language that can be invoked directly is write by the program code conversion that the first programming language is write Program code, so as to save internal memory during specific image is differentiated.
Additionally, a kind of method for differentiating specific image provided in an embodiment of the present invention, compiles by according to the first programming language When the program code write runs, default size n is set according to the number of passes n that enters of regulation time returning result, and according to default big Small n creates process queue, and according to the process queue, calls the program code that second programming language is write to described straight Multicast data stream is analyzed, it can be ensured that the program code that the first programming language is write is converted into what the second programming language was write After program code, the performance of program operation does not change, i.e., the embodiment of the present invention can be on the basis of internal memory be saved, it is ensured that differentiated The efficiency of specific image.
Embodiment 3
Fig. 3 shows a kind of flow chart of the method for discriminating specific image that next embodiment of the invention is provided, and the method can Performed with by electronic equipment, such as server device etc..In other words, methods described can be by the software installed in server device And/or hardware is performed.The service end is included but is not limited to:Single server, server cluster etc..As illustrated, the party Method is comprised the following steps.
S1:It is journey that the second programming language is write that DLL is provided by the program code conversion that the first programming language is write Sequence code, the program code that first programming language is write is used to differentiate specific image.
In a kind of possible implementation, can be by SWIG (English:Simplified Wrapper and Interface Generator, Chinese:Simplify packaging device and interface generator) DLL is provided.
SWIG is the instrument that C or C++ are encapsulated as other high-level languages, is not required to change source code framework using SWIG, only Offer DLL is needed to be described the function and class that need encapsulation.
S2:Obtain live data streams.
The live data streams can be concurrent live data streams.
S31:When the program code write according to the first programming language runs, number of passes is entered according to regulation time returning result N, sets default size n, and process queue is created according to default size n.
S33:When the specific image is pornographic image, according to the process queue, second programming language is called The program code write, the brightness value of the image to being included in the live data streams, hue value, intensity value are analyzed, Obtain specific region.
In a kind of possible implementation, because the color of human body skin is generally in certain scope, therefore can be with Judge whether to be deposited in the image that live data streams are included by the threshold range of predetermined luminance value, hue value, intensity value In brightness value, hue value, intensity value in the specific region of corresponding threshold range.
S41:Judge whether include pornographic image in the live data streams according to the specific region.
In a kind of possible implementation, in the case where there is specific region, it is believed that big face is included in image The exposed skin of product, and thus judge in the live data streams comprising pornographic image.
Thus, a kind of method for differentiating specific image provided in an embodiment of the present invention, by calling second programming language The program code that speech is write, the brightness value of the image to being included in the live data streams, hue value, intensity value are divided Whether analysis, obtains specific region, judges include pornographic image, Neng Gougao in the live data streams according to the specific region Whether there is pornographic image in effect, accurate authentication data stream, effectively reduce the operations risks of the network platform.
Embodiment 4
Fig. 4 shows a kind of flow chart of the method for discriminating specific image that next embodiment of the invention is provided, and the method can Performed with by electronic equipment, such as server device etc..In other words, methods described can be by the software installed in server device And/or hardware is performed.The service end is included but is not limited to:Single server, server cluster etc..As illustrated, the party Method is comprised the following steps.
S1:It is journey that the second programming language is write that DLL is provided by the program code conversion that the first programming language is write Sequence code, the program code that first programming language is write is used to differentiate specific image.
In a kind of possible implementation, can be by SWIG (English:Simplified Wrapper and Interface Generator, Chinese:Simplify packaging device and interface generator) DLL is provided.
SWIG is the instrument that C or C++ are encapsulated as other high-level languages, is not required to change source code framework using SWIG, only Offer DLL is needed to be described the function and class that need encapsulation.
S2:Obtain live data streams.
The live data streams can be concurrent live data streams.
S31:When the program code write according to the first programming language runs, number of passes is entered according to regulation time returning result N, sets default size n, and process queue is created according to default size n.
S33:When the specific image includes pornographic image, according to the process queue, second programming language is called The program code that speech is write, the brightness value of the image to being included in the live data streams, hue value, intensity value are divided Analysis, obtains specific region.
In a kind of possible implementation, because the color of human body skin is generally in certain scope, therefore can be with Judge whether to be deposited in the image that live data streams are included by the threshold range of predetermined luminance value, hue value, intensity value In brightness value, hue value, intensity value in the specific region of corresponding threshold range.
S42:According to the length value and width value of the specific region, judge whether include pornographic in the live data streams Image.
In a kind of possible implementation, after containing similar to the specific region of human body skin color in image, such as Really the specific region is the body of people, then the length value of specific region, width value should comply with the size of human body, between Position should meet certain geometrical relationship, according to the length value and width value of specific region, judge whether the specific region belongs to In the body of people, the suspicion of pornographic image can be excluded if being not belonging to.
Thus, a kind of method for differentiating specific image provided in an embodiment of the present invention, by calling second programming language The program code that speech is write, the brightness value of the image to being included in the live data streams, hue value, intensity value are divided Whether analysis, obtains specific region, according to the length value and width value of the specific region, judges included in the live data streams Pornographic image, pornographic image can be efficiently and accurately whether there is in authentication data stream, effectively reduce the operation wind of the network platform Danger.
Embodiment 5
Fig. 5 shows a kind of structural representation of device for differentiating specific image provided in an embodiment of the present invention, as illustrated, The device 10 includes:Interface module 11, acquisition module 12, analysis module 13 and judge module 14.
Interface module 11, is the second programming for providing the program code conversion that DLL writes the first programming language The program code that language is write, the program code that first programming language is write is used to differentiate specific image.Acquisition module 12, For obtaining live data streams.Analysis module 13, for the program code that calls second programming language to write to described straight Multicast data stream is analyzed.Judge module 14, for judging whether wrapped in the live data streams according to the result of the analysis Containing specific image.
Thus, a kind of device 10 for differentiating specific image provided in an embodiment of the present invention, by providing DLL by the The program code conversion that one programming language is write is the program code that the second programming language is write, and first programming language is write Program code be used for differentiate specific image;Obtain live data streams;The program code for calling second programming language to write The live data streams are analyzed;And judge whether include spy in the live data streams according to the result of the analysis Determine image, can be that the second programming language that can be invoked directly is write by the program code conversion that the first programming language is write Program code, so as to differentiate image during save internal memory.
In a kind of possible implementation, analysis module 13 is used for according to default size establishment process queue, and according to The process queue, the program code for calling second programming language to write is analyzed to the live data streams.
In a kind of possible implementation, analysis module 13 is additionally operable to:According to the journey that first programming language is write According to the number of passes that enters of regulation time returning result when sequence code runs, the default size is set.
Thus, a kind of device for differentiating specific image provided in an embodiment of the present invention, compiles by according to the first programming language When the program code write runs, default size is set according to the number of passes that enters of regulation time returning result, and according to default size Process queue is created, and according to the process queue, calls the program code that second programming language is write to described live Data flow is analyzed, it can be ensured that the program code that the first programming language is write is converted into the journey that the second programming language is write After sequence code, the performance of program operation does not change, i.e., the embodiment of the present invention can be on the basis of internal memory be saved, it is ensured that differentiate special Determine the efficiency of image.
In a kind of possible implementation, analysis module 13 is used for:When the specific image includes pornographic image, adjust The program code write with second programming language, the brightness value of the image to being included in the live data streams, hue value, Intensity value is analyzed, and obtains specific region.Judge module 14 is used for:The live data is judged according to the specific region Whether pornographic image is included in stream.
Thus, a kind of device for differentiating specific image provided in an embodiment of the present invention, by calling second programming language The program code that speech is write, the brightness value of the image to being included in the live data streams, hue value, intensity value are divided Whether analysis, obtains specific region, judges include pornographic image, Neng Gougao in the live data streams according to the specific region Whether there is pornographic image in effect, accurate authentication data stream, effectively reduce the operations risks of the network platform.
In a kind of possible implementation, judge module 14 is additionally operable to:According to the length value and width of the specific region Whether angle value, judges include pornographic image in the live data streams.
Thus, a kind of device for differentiating specific image provided in an embodiment of the present invention, by calling second programming language The program code that speech is write, the brightness value of the image to being included in the live data streams, hue value, intensity value are divided Whether analysis, obtains specific region, and according to the length value and width value of the specific region, judge wrapped in the live data streams Containing pornographic image, pornographic image can be efficiently and accurately whether there is in authentication data stream, effectively reduce the operation of the network platform Risk.
Embodiment 6
A kind of non-transient (non-volatile) computer-readable storage medium is the embodiment of the invention provides, the Computer Storage is situated between Matter is stored with computer executable instructions, and the computer executable instructions can perform the method in above-mentioned any means embodiment.
Embodiment 7
A kind of computer program product is the embodiment of the invention provides, the computer program product includes storage non-temporary Computer program on state computer-readable recording medium, the computer program includes programmed instruction, when described program instruction When being computer-executed, the computer is set to perform the method described in above various aspects.
Embodiment 8
Fig. 6 is that the hardware configuration of the electronic equipment of the method for performing and differentiating specific image provided in an embodiment of the present invention is illustrated Figure, as illustrated, the equipment includes one or more processors 610 and memory 620.By taking a processor 610 as an example.Should Equipment can also include:Input unit 630 and output device 640.
Processor 610, memory 620, input unit 630 and output device 640 can be by bus or other modes Connection, in Fig. 6 as a example by being connected by bus.
Memory 620 can be used to storing non-transient software program, non-as a kind of non-transient computer readable storage medium storing program for executing Transient computer executable program and module.Processor 610 is by running non-transient software journey of the storage in memory 620 Sequence, instruction and module, so as to perform various function application and the data processing of electronic equipment, that is, realize that the above method is implemented The processing method of example.
Memory 620 can include storing program area and storage data field, wherein, storing program area can store operation system Application program required for system, at least one function;Storage data field can data storage etc..Additionally, memory 620 can include High-speed random access memory, can also include non-transient memory, for example, at least one disk memory, flush memory device, Or other non-transient solid-state memories.In certain embodiments, memory 620 is optional including long-range relative to processor 610 The memory of setting, these remote memories can be by network connection to processing unit.The example of above-mentioned network include but not It is limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 630 can receive the numeral or character information of input, and produce signal input.Output device 640 can The display device such as including display screen.
One or more of modules are stored in the memory 620, when by one or more of processors During 610 execution, perform:The program code conversion that offer DLL writes the first programming language is for the second programming language is write Program code, the program code that first programming language is write be used for differentiate specific image;Obtain live data streams;Call The program code that second programming language is write is analyzed to the live data streams;And according to the result of the analysis Whether judge in the live data streams comprising specific image.
In a kind of possible implementation, the program code that second programming language is write is called to the live number Carrying out analysis according to stream includes:Process queue is created according to default size, and according to the process queue, calls second programming The program code that language is write is analyzed to the live data streams.
In a kind of possible implementation, according to rule when the program code write according to first programming language runs Returning result of fixing time enters number of passes, sets the default size.
It is described to call described second when the specific image includes pornographic image in a kind of possible implementation The program code that programming language is write is analyzed to the live data streams, including:Second programming language is called to write Program code, the brightness value of the image to being included in the live data streams, hue value, intensity value are analyzed, obtain Specific region;Whether result according to the analysis judges include pornographic image in the live data streams, including:According to described Whether specific region judges include pornographic image in the live data streams.
In a kind of possible implementation, judge whether include color in the live data streams according to the specific region Feelings image includes:According to the length value and width value of the specific region, judge whether include pornographic in the live data streams Image.
The method that the executable embodiment of the present invention of the said goods is provided, possesses the corresponding functional module of execution method and has Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present invention is provided.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, including but not limited to following equipment.
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data It is main target to communicate.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and it is low End mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and treatment work( Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio, Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server includes that processor, hard disk, internal memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, therefore in treatment energy The requirement of the aspects such as power, stability, reliability, security, scalability, manageability is higher.
(5) other have the electronic installation of data interaction function.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, the part shown as unit can be or may not be physics list Unit, you can with positioned at a place, or can also be distributed on multiple NEs.It can according to the actual needs be selected In some or all of module realize the purpose of this embodiment scheme.
Through the above description of the embodiments, those skilled in the art can be understood that each implementation method can Realized by the mode of software plus general hardware platform, naturally it is also possible to by hardware.Based on such understanding, above-mentioned technology The part that scheme substantially contributes to correlation technique in other words can be embodied in the form of software product, the computer Software product can be stored in a computer-readable storage medium, and such as ROM/RAM, magnetic disc, CD, including some instructions are used to So that computer equipment (can be personal computer, server, or network equipment etc.) perform each embodiment or Method described in some parts of embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used Modified with to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (10)

1. it is a kind of differentiate specific image method, it is characterised in that including:
It is program code that the second programming language is write that DLL is provided by the program code conversion that the first programming language is write, The program code that first programming language is write is used to differentiate specific image;
Obtain live data streams;
The program code for calling second programming language to write is analyzed to the live data streams;And
Whether result according to the analysis judges include specific image in the live data streams.
2. method according to claim 1, it is characterised in that the program code pair for calling second programming language to write The live data streams be analyzed including:
Process queue is created according to default size, and according to the process queue, the journey for calling second programming language to write Sequence code is analyzed to the live data streams.
3. method according to claim 2, it is characterised in that before the default size of the basis creates process queue, Also include:The program code write according to first programming language enters number of passes when running according to regulation time returning result, The default size is set.
4. method according to claim 1, it is characterised in that the specific image includes pornographic image, described to call institute The program code that the second programming language writes is stated to be analyzed the live data streams, including:
The program code for calling second programming language to write, the brightness value of the image to being included in the live data streams, Hue value, intensity value are analyzed, and obtain specific region;And
Whether result according to the analysis judges include specific image in the live data streams, including:According to described specific Whether pornographic image is included in live data streams described in region decision.
5. method according to claim 4, it is characterised in that in judging the live data streams according to the specific region Whether include comprising pornographic image:
According to the length value and width value of the specific region, judge whether include pornographic image in the live data streams.
6. it is a kind of differentiate specific image device, it is characterised in that including:
Interface module, is the second programming language volume for providing the program code conversion that DLL writes the first programming language The program code write, the program code that first programming language is write is used to differentiate specific image;
Acquisition module, for obtaining live data streams;
Analysis module, the program code for calling second programming language to write is analyzed to the live data streams; And
Judge module, for judging whether include specific image in the live data streams according to the result of the analysis.
7. device according to claim 6, it is characterised in that the analysis module is used for:According to default size create into Journey queue, and according to the process queue, the program code that second programming language is write is called to the live data streams It is analyzed.
8. device according to claim 7, it is characterised in that the analysis module is additionally operable to:According to the described first programming According to the number of passes that enters of regulation time returning result when the program code that language is write runs, the default size is set.
9. device according to claim 6, it is characterised in that the analysis module is used for:The specific image includes color Feelings image, the program code for calling second programming language to write, the brightness of the image to being included in the live data streams Value, hue value, intensity value are analyzed, and obtain specific region;
The judge module is used for:Judge whether include pornographic image in the live data streams according to the specific region.
10. device according to claim 9, it is characterised in that the judge module is additionally operable to:According to the specific region Length value and width value, whether judge in the live data streams comprising pornographic image.
CN201611031688.5A 2016-11-18 2016-11-18 A kind of method and apparatus for differentiating specific image Pending CN106778486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611031688.5A CN106778486A (en) 2016-11-18 2016-11-18 A kind of method and apparatus for differentiating specific image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611031688.5A CN106778486A (en) 2016-11-18 2016-11-18 A kind of method and apparatus for differentiating specific image

Publications (1)

Publication Number Publication Date
CN106778486A true CN106778486A (en) 2017-05-31

Family

ID=58970910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611031688.5A Pending CN106778486A (en) 2016-11-18 2016-11-18 A kind of method and apparatus for differentiating specific image

Country Status (1)

Country Link
CN (1) CN106778486A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359329A (en) * 2008-04-01 2009-02-04 北京恒金恒泰信息技术有限公司 Plugin for filtrating erotic software based on browser
US20090274364A1 (en) * 2008-05-01 2009-11-05 Yahoo! Inc. Apparatus and methods for detecting adult videos
CN101853377A (en) * 2010-05-13 2010-10-06 复旦大学 Method for identifying content of digital video
US20110047388A1 (en) * 2009-08-24 2011-02-24 Samsung Electronics Co., Ltd. Method and apparatus for remotely controlling access to pornographic content of an image
CN102547794A (en) * 2012-01-12 2012-07-04 郑州金惠计算机系统工程有限公司 Identification and supervision platform for pornographic images and videos and inappropriate contents on wireless application protocol (WAP)-based mobile media

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359329A (en) * 2008-04-01 2009-02-04 北京恒金恒泰信息技术有限公司 Plugin for filtrating erotic software based on browser
US20090274364A1 (en) * 2008-05-01 2009-11-05 Yahoo! Inc. Apparatus and methods for detecting adult videos
US20110047388A1 (en) * 2009-08-24 2011-02-24 Samsung Electronics Co., Ltd. Method and apparatus for remotely controlling access to pornographic content of an image
CN101853377A (en) * 2010-05-13 2010-10-06 复旦大学 Method for identifying content of digital video
CN102547794A (en) * 2012-01-12 2012-07-04 郑州金惠计算机系统工程有限公司 Identification and supervision platform for pornographic images and videos and inappropriate contents on wireless application protocol (WAP)-based mobile media

Similar Documents

Publication Publication Date Title
WO2018205730A1 (en) Method and device for obtaining smart contract interface in blockchain
CN109725948B (en) Animation resource configuration method and device
CN109408393A (en) Application testing method, device and equipment and computer readable storage medium
US20110150328A1 (en) Apparatus and method for blockiing objectionable image on basis of multimodal and multiscale features
WO2019085840A1 (en) Resource adjustment method and apparatus
US20200364406A1 (en) Entity relationship processing method, apparatus, device and computer readable storage medium
CN104978045B (en) A kind of Chinese character input method and device
US10269347B2 (en) Method for detecting voice and electronic device using the same
US20180332424A1 (en) Spatializing audio data based on analysis of incoming audio data
US11818491B2 (en) Image special effect configuration method, image recognition method, apparatus and electronic device
WO2019076213A1 (en) Network control method and device
US10318612B2 (en) System and method for implementing screen capture
CN106503111A (en) Webpage code-transferring method, device and client terminal
CN105354051B (en) Method and device for presenting information flow card and electronic equipment
US20170171491A1 (en) Method and Electronic Device for Adjusting Video Subtitles
CN111727438A (en) Object classification for image recognition processing
CN106294765A (en) Process the method and device of news data
CN106778486A (en) A kind of method and apparatus for differentiating specific image
CN116680140A (en) Verification method, system, device and storage medium for processor
US20140307116A1 (en) Method and system for managing video recording and/or picture taking in a restricted environment
US20140215035A1 (en) Distribution of application components among devices
US10769372B2 (en) Synonymy tag obtaining method and apparatus, device and computer readable storage medium
CN113138913A (en) Java code injection detection method, device, equipment and storage medium
CN109359295A (en) Semantic analytic method, device, computer equipment and the storage medium of natural language
CN113391856B (en) Cross-task-stack page processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170531

WD01 Invention patent application deemed withdrawn after publication