CN113674246A - Method and device for auditing picture file, electronic equipment and storage medium - Google Patents

Method and device for auditing picture file, electronic equipment and storage medium Download PDF

Info

Publication number
CN113674246A
CN113674246A CN202110965015.1A CN202110965015A CN113674246A CN 113674246 A CN113674246 A CN 113674246A CN 202110965015 A CN202110965015 A CN 202110965015A CN 113674246 A CN113674246 A CN 113674246A
Authority
CN
China
Prior art keywords
picture file
audited
determining
file
picture
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.)
Granted
Application number
CN202110965015.1A
Other languages
Chinese (zh)
Other versions
CN113674246B (en
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.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing 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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN202110965015.1A priority Critical patent/CN113674246B/en
Publication of CN113674246A publication Critical patent/CN113674246A/en
Application granted granted Critical
Publication of CN113674246B publication Critical patent/CN113674246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides a method and a device for auditing picture files, electronic equipment and a storage medium, relates to the technical field of computers, in particular to the technical field of artificial intelligence, and can be applied to scenes such as multimedia information identification and multimedia information auditing. The specific implementation scheme of the method for checking the picture file is as follows: determining the logic screen information of the picture file to be audited under the condition that the picture file to be audited is a dynamic picture file; the logic screen information comprises the height of the logic screen and the width of the logic screen; and determining whether the picture file to be checked is abnormal or not based on the logic screen information.

Description

Method and device for auditing picture file, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of computers, in particular to the technical field of artificial intelligence, and can be applied to scenes such as multimedia information identification, multimedia information auditing and the like.
Background
With the development of computer technology, the embodied form of multimedia data is more and more diversified. To facilitate information dissemination, consumer handheld terminals typically have greater compatibility with multimedia data than desktop terminal devices. And the auditing of the multimedia data is usually carried out at the desktop terminal equipment. If the characteristic that the compatibility of the consumer handheld terminal to the multimedia data is stronger is used by some specific users improperly (for example, the specific users may adopt the characteristics that the multimedia information cannot be audited but can be displayed on the consumer handheld terminal to modify the multimedia information so as to add abnormal data in the multimedia information), the abnormal data may be spread widely, which brings negative influence to the social atmosphere.
Disclosure of Invention
Based on this, the present disclosure provides a method, an apparatus, an electronic device, and a storage medium for auditing picture files, which improve audit coverage and audit accuracy.
According to an aspect of the present disclosure, there is provided a method of reviewing a picture file, including: determining the logic screen information of the picture file to be audited under the condition that the picture file to be audited is a dynamic picture file; the logic screen information comprises the height of the logic screen and the width of the logic screen; and determining whether the picture file to be checked is abnormal or not based on the logic screen information.
According to another aspect of the present disclosure, there is provided an apparatus for reviewing a picture file, including: the logical screen information determining module is used for determining the logical screen information of the picture file to be audited under the condition that the picture file to be audited is the dynamic picture file; the logic screen information comprises the height of the logic screen and the width of the logic screen; and the abnormity determining module is used for determining whether the picture file to be checked is abnormal or not based on the logic screen information.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of reviewing picture files provided by the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform a method of reviewing picture files provided by the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method of reviewing picture files as provided by the present disclosure.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic view of an application scenario of a method and apparatus for reviewing picture files according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow diagram of a method of reviewing picture files according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a method of reviewing picture files according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart diagram of a method of reviewing picture files, according to another embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an apparatus for reviewing picture files according to an embodiment of the present disclosure; and
fig. 6 is a block diagram of an electronic device used to implement a method of reviewing picture files of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The disclosure provides a method for auditing picture files, which comprises a logic screen information determining stage and an abnormity determining stage. In the logic screen information determining stage, the logic screen information of the picture file to be audited is determined under the condition that the picture file to be audited is the dynamic picture file. And in the abnormal determining stage, determining whether the picture file to be checked is abnormal or not based on the logic screen information.
An application scenario of the method and apparatus provided by the present disclosure will be described below with reference to fig. 1.
Fig. 1 is a schematic view of an application scenario of a method and an apparatus for reviewing a picture file according to an embodiment of the present disclosure.
As shown in fig. 1, the scenario 100 of this embodiment includes a terminal device 110. The terminal device 110 may be, for example, various electronic devices with processing functions, including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like.
The terminal device 110 may have various client applications installed therein, such as a shopping application, a web browser application, a search application, a picture audit application, and the like. As shown in fig. 1, the picture file 120 to be audited may be transferred to the terminal device 110, and the terminal device 110 performs auditing processing on the picture file 120 to be audited to determine whether the picture file to be audited is abnormal. In an embodiment, the terminal device 110 may also audit any other type of multimedia file besides the picture file, for example.
In one embodiment, as shown in FIG. 1, the application scenario 100 may further include a server 130. Terminal device 110 may communicate with server 130 over a network, which may include wired or wireless communication links.
In this embodiment, the terminal device 110 may further send the incoming picture file to be audited 120 to the server 130, where the server performs auditing processing on the picture file to be audited, and feeds back an auditing result 140 to the terminal device 110. The terminal device 110 may determine whether the picture file to be checked is abnormal according to the checking result.
Illustratively, server 130 may be a server that provides various services, such as a background management server (for example only) that provides support for various client applications running on terminal device 110. The server 130 may also be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
Illustratively, when the terminal device 110 determines that the picture file 120 to be audited is abnormal, for example, prompt information may be displayed through the display screen to prompt a user who transmits the picture file 120 to be audited to delete the picture file 120 to be audited in time, so as to avoid a situation of negative influence on social weather due to propagation of abnormal information, and facilitate establishment of a good network environment.
It should be noted that the method for reviewing picture files provided by the present disclosure may be executed by terminal device 110, and may also be executed by server 130. Accordingly, the apparatus for auditing the picture files provided by the present disclosure may be disposed in the terminal device 110, and may also be disposed in the server 130.
It should be understood that the number and types of terminal devices, picture files to be audited, and servers in fig. 1 are merely illustrative. Any number and type of terminal devices, picture files to be audited and servers can be provided according to implementation requirements.
The method for reviewing a picture file provided by the present disclosure will be described in detail with reference to fig. 1 through fig. 2 to 4 below.
Fig. 2 is a schematic flow chart diagram of a method of reviewing picture files according to an embodiment of the present disclosure.
As shown in fig. 2, the method 200 of reviewing picture files of this embodiment may include operations S210 to S220.
In operation S210, in a case that the picture file to be checked is a dynamic picture file, determining logical screen information of the picture file to be checked.
Illustratively, the files to be audited provided by the user may include, for example, multiple types of multimedia files, and the operation S210 may select a picture file from the multimedia files as the picture file to be audited. In an embodiment, the picture file to be checked may be sent to the server, for example, by a User through a User Generated Content (UGC) platform, so as to be checked by the server.
For example, whether the picture file to be audited includes a plurality of images may be determined, and if the picture file to be audited includes a plurality of images, the picture file to be audited may be determined to be a dynamic picture file. For example, the number of images included in the picture file to be checked may be determined by parsing the picture file to be checked. The analysis method can be set according to actual requirements, and the disclosure does not limit the analysis method.
Illustratively, the format of the picture file to be audited can be detected through a predefined detection program. If the Format of the picture file to be audited is a bitmap Format such as "GIF" (Graphics Interchange Format), the picture file to be audited can be determined to be a dynamic picture file. The predefined detection program may be written by using a programming language such as C + +, Java, and the like, and the bitmap format may be any format other than "GIF", which is not limited in this disclosure.
Illustratively, the logical screen information of the picture file to be checked can be obtained by analyzing the picture format to be checked of the dynamic picture file. Parsing of the motion picture file may be implemented, for example, with reference to the code in the Glide open source library that parses the GIF part. Or gifsic editing tools such as gifsic can be used to parse the motion picture file. It should be understood that the above parsing method is only described by taking the motion picture file as a file in "GIF" format as an example. According to the specific format of the dynamic picture file, the dynamic picture file can be analyzed by adopting a corresponding analysis method in the related art.
For example, taking a "GIF" format moving picture file as an example, the structure of the moving picture file may include a GIF file Header (Header), a Logical Screen description block (Logical Screen Descriptor), a Global Color Table (Global Color Table), a graphic description block (Image Descriptor), and the like. In this embodiment, the logical screen information can be obtained by analyzing the logical screen description block in the dynamic picture file. The logical screen information may include, for example, information such as the width of the logical screen and the height of the logical screen.
In operation S220, it is determined whether the picture file to be checked is abnormal based on the logical screen information.
After the logical screen information is obtained, the embodiment may compare information such as the height of the logical screen, the width of the logical screen, and the like in the logical screen information with an upper limit set empirically corresponding to each information. If any information in the information such as the height of the logic screen, the width of the logic screen and the like exceeds the corresponding upper limit, the image file to be audited can be determined to be abnormal. For example, if the height of the logical screen is 65534 pixels and the width is 57343 pixels, and the height of the logical screen is close to the maximum 65535 pixels that the file in the "GIF" format can bear, the picture file to be reviewed may be considered abnormal.
Alternatively, the embodiment may compare the height and the width of the logical screen in the logical screen information with the height and the width of the display screen of the general desktop terminal device, respectively. If the height of the logic screen is far greater than the height of the display screen, or the width of the logic screen is far greater than the width of the display screen, it can be determined that the picture file to be audited is abnormal.
According to the embodiment of the disclosure, in the case that it is determined that the picture file to be audited is normal by using the method, for example, the picture to be audited may be further audited by using a method for auditing the contents of the picture file in the related art.
Since the audit work is usually performed by using the desktop terminal device, some specific users, in order to avoid the audit, modify the size of the logical screen so that the desktop terminal device cannot load the dynamic picture file uploaded by the specific user, and therefore cannot audit the dynamic picture file. The reason why the desktop terminal device cannot load the dynamic picture file uploaded by the specific user is that when the desktop terminal device loads the dynamic picture file, the dynamic picture file needs to be analyzed first, and then the analyzed file needs to be loaded. When the size of the logical screen of the dynamic picture file is too large, the desktop terminal device cannot complete the analysis of the dynamic picture file, and thus cannot load the dynamic picture file. The handheld terminal has strong compatibility, can generally directly read the image in the dynamic picture file, and is not limited by the size of a logic screen. Therefore, if the dynamic picture file uploaded by the specific user carries illegal information, the illegal information can be spread on the handheld terminal. According to the embodiment of the disclosure, whether the picture file to be audited is abnormal or not is determined according to the logic screen information, so that the picture file cheated by modifying the logic screen of the dynamic picture file can be effectively audited, the auditing precision of the content generated by the user is improved, and the construction of a healthy and good network environment is facilitated.
Fig. 3 is a schematic diagram of a method of reviewing a picture file according to an embodiment of the present disclosure.
In an embodiment, whether the picture to be audited is abnormal can be further determined by comparing the size of the logic screen with the size of the image in the dynamic picture file. This is because the size of the logical screen of the moving picture file is generally equal to the size of the image in the moving picture file. If the size of the logical screen is different from the size of the image, or the difference is larger, it can be determined that the logical screen information of the picture file to be checked is artificially modified. And therefore, the picture file to be audited can be determined to be abnormal.
Illustratively, when the picture file to be audited is audited, in addition to the logical screen information 320 of the picture file 310 to be audited, the embodiment 300 needs to determine the height of the image included in the picture file 310 to be audited and the width of the image, that is, the image size 330. Subsequently, whether the picture to be reviewed is abnormal is determined based on the difference between the logical screen height 321 in the logical screen information 320 and the image height 331 in the image size 330, and the difference between the logical screen width 322 in the logical screen information 320 and the image width 332 in the image size 330.
For example, if the logical screen height 321 is not equal to the image height 331, and the logical screen width 322 is not equal to the image width 332, it may be determined that the picture to be reviewed is abnormal. Otherwise, the picture to be audited is determined to be normal, or a method for auditing the content of the picture file in the related technology is adopted to further audit the picture to be audited.
For example, the difference between the logic screen height 321 and the image height 331 may be determined to obtain the first difference 341. At the same time, the difference between logical screen width 322 and image width 332 is determined, resulting in a second difference 342. The first difference 341 is then compared to a first difference threshold and the second difference 342 is compared to a second difference threshold. If the first difference 341 is greater than or equal to the first difference threshold and/or the second difference 342 is greater than or equal to the second difference threshold, it is determined that the picture file to be audited is abnormal. The first difference threshold and the second difference threshold may be set according to actual requirements, and may be equal to or different from each other, which is not limited in this disclosure. In one embodiment, the first difference threshold and the second difference threshold may be any value less than 100 pixels, for example. For example, if the logic panel has a height of 65534 pixels and a width of 57343 pixels. The height of the image is 570 pixels, the width of the image is 400 pixels, it can be seen that the height of the logic screen is far greater than the height of the image, the width of the logic screen is also far greater than the width of the image, and the abnormal condition of the picture file to be audited can be determined.
For example, a similar method to the above method for obtaining the logical screen information by parsing the picture file to be audited may be adopted, and the size of each Image included in the picture file to be audited is obtained by parsing an Image description block (Image Descriptor) in the picture file to be audited.
For example, if the sizes of the plurality of images included in the moving picture file are not equal, the embodiment may select the maximum height and the maximum width from among the sizes of the plurality of images. And determining whether the picture to be audited is abnormal according to the difference between the height of the logic screen and the maximum height and the difference between the width of the logic screen and the maximum width.
In one embodiment, before determining the image size 330, the height and width of the logical screen may be compared with the height and width of the display screen of the general desktop terminal device, respectively, for example. And the comparison result is displayed to the auditor, so that the auditor can know the cheating principle of uploading the file by the specific user conveniently. Regardless of the comparison result, the aforementioned operation of determining the image size 330 and the operation of determining whether the picture to be checked is abnormal based on the image size and the logical screen information are performed.
In summary, the embodiment of the present disclosure can effectively audit the picture files by comparing the height of the logic screen with the height of the image, and the width of the logic screen with the width of the image based on the cheating principle. Moreover, the first difference threshold and the second difference threshold are respectively set for the first difference and the second difference, so that the auditing precision can be further improved, and the condition of error condition can be avoided.
Fig. 4 is a schematic flow chart diagram of a method of reviewing picture files according to another embodiment of the present disclosure.
According to the embodiment of the disclosure, under the condition that the picture file to be audited is determined to be the dynamic picture file, for example, a predetermined image processing library can be called to load the picture file to be audited. If a preset error occurs in the process of loading the picture file to be audited in the preset image processing library, the picture to be audited can be determined to be abnormal.
According to the embodiment of the disclosure, under the condition that the image file to be audited is successfully loaded in the predetermined image processing library, for example, the method described above may be adopted to analyze the image file to be audited, determine the logical screen information of the image file to be audited, and determine whether the image file to be audited is abnormal again according to the logical screen information.
The predetermined Image processing library may be any processing library capable of setting a pixel threshold for the Image pixel size of the picture file to be checked, for example, a third-party Image processing library pil (Python Image library) of Python. The predetermined error is a pixel threshold value which indicates that the pixel size of the picture file to be checked exceeds a predetermined image processing library. For example, when the basic core class image module of the PIL is called to load the picture file to be checked, the predetermined error may be: image, decompensation bomberor: image size (XXXXXX pixels) exceeds limit of XXXXXXXX pixels, couled be decompression bomb DOS attach. The pixel threshold may be set by an auditor according to experience, or a default pixel threshold of the predetermined image processing library may be adopted, which is not limited in this disclosure.
For example, as shown in fig. 4, the method 400 of reviewing picture files of this embodiment may include operations S410 to S480.
In operation S410, in response to receiving the picture file to be checked 401, it is determined whether the picture file to be checked is a dynamic picture file. If so, operation S420 is performed, otherwise, operation S480 is performed.
In this embodiment, the picture file to be checked may be converted into a binary file. It is then determined whether byte information of a predetermined position in the binary file is predetermined information. And if the information is the preset information, determining that the picture file to be audited is a dynamic picture file.
For example, Base64 may be employed to implement conversion between picture files and binary files. The predetermined location may be the first 5 bytes of the binary file. If the data of the first 5 bytes is the predetermined information "GIF 89 a" or "GIF 87 a", it may be determined that the picture file to be audited is a moving picture file. It is to be understood that the above-described conversion method, predetermined position, and predetermined information are merely examples to facilitate understanding of the present disclosure, and the present disclosure may be maintained with, for example, a predetermined information list for respectively representing formats of various moving picture files.
In operation S420, a predetermined image processing library is called to load the picture file to be audited 401.
In operation S430, it is determined whether a predetermined error occurs in the process of loading the picture file 401 to be audited. If the predetermined error occurs, operation S470 is performed, otherwise, operation S440 is performed.
In operation S440, logical screen information of the picture file 401 to be audited is determined. The operation S440 is similar to the operation S210 described above, and is not described herein again. After the operation S440 is performed, it may be determined whether the picture file 401 to be checked is abnormal based on the logical screen information.
In an embodiment, operation S450 may be performed after operation S440 is performed, or operation S450 may be performed simultaneously with operation S440.
In operation S450, the height of an image and the width of the image included in the picture file to be checked are determined.
In operation S460, it is determined whether a first difference between the height of the logical screen and the height of the image is greater than or equal to a first difference threshold value and a second difference between the width of the logical screen and the width of the image is greater than or equal to a second difference threshold value. If the first difference is greater than or equal to the first difference threshold and/or the second difference is greater than or equal to the second difference threshold, operation S470 is performed, otherwise operation S480 is performed.
In operation S470, it is determined that the picture file to be audited is abnormal.
In operation S480, other auditing flows are entered. Operation S480 may be implemented, for example, by using a method of reviewing the contents of a picture file in the related art.
In an embodiment, before performing operation S410, the picture file to be audited may be initially screened. For example, a plurality of picture files to be audited uploaded by a plurality of users can be acquired at one time. And filtering files which cannot be downloaded, are incompletely displayed, have abnormal length-width ratio and cause error report of an audit interface from the plurality of picture files to be audited. The aforementioned operation S410 is performed on the filtered picture file to be checked.
According to the embodiment of the invention, whether the picture file to be audited is abnormal is determined by firstly adopting a mode of loading the picture file to be audited, so that the auditing efficiency can be improved to a certain extent. Moreover, by adopting the method for judging whether the picture file to be audited is abnormal by loading the picture file to be audited and the method for judging whether the picture file to be audited is abnormal based on the logic information, double guarantees can be provided for the accuracy of the audit result. And therefore, the auditing precision and the auditing effectiveness can be improved.
Based on the method for auditing the picture files provided by the disclosure, the disclosure also provides a device for auditing the picture files. The apparatus will be described in detail below with reference to fig. 5.
Fig. 5 is a block diagram of an apparatus for reviewing picture files according to an embodiment of the present disclosure.
As shown in fig. 5, the apparatus 500 for reviewing picture files of this embodiment may include a logical screen information determination module 510 and an abnormality determination module 520.
The logical screen information determining module 510 is configured to determine logical screen information of the picture file to be audited when the picture file to be audited is a dynamic picture file. Wherein the logical screen information includes a height of the logical screen and a width of the logical screen. In an embodiment, the screen editing information determining module 510 may be configured to perform the operation S210 described above, which is not described herein again.
The exception determining module 520 is configured to determine whether the picture file to be checked is abnormal based on the logical screen information. In an embodiment, the abnormality determining module 520 may be configured to perform the operation S220 described above, which is not described herein again.
According to an embodiment of the present disclosure, the apparatus 500 for reviewing picture files may further include an image information determining module, configured to determine a height of an image and a width of the image included in the picture file to be reviewed. The anomaly determination module 520 may be specifically configured to determine whether the picture to be reviewed is anomalous based on a difference between the height of the logical screen and the height of the image and a difference between the width of the logical screen and the width of the image.
According to an embodiment of the present disclosure, the above-mentioned abnormality determining module 520 may include a first difference determining sub-module, a second difference determining sub-module, and an abnormality determining sub-module. The first difference determination submodule is used for determining a first difference between the height of the logic screen and the height of the image. The second difference determination submodule is configured to determine a second difference between the width of the logical screen and the width of the predetermined image. And the abnormity determining submodule is used for determining that the picture file to be audited is abnormal under the condition that the first difference value is greater than or equal to the first difference value threshold value and/or the second difference value is greater than or equal to the second difference value threshold value.
According to an embodiment of the present disclosure, the apparatus 500 for reviewing picture files may further include a file loading module, configured to, before the logic screen information determining module 510 determines the logic screen information of the picture file to be reviewed, call a predetermined image processing library to load the picture file to be reviewed when the picture file to be reviewed is a dynamic picture file. The abnormality determining module 520 may be specifically configured to determine that the picture file to be checked is abnormal when a predetermined error occurs in a process of loading the picture file to be checked by using the predetermined image processing library through the file loading module. The preset error indicates that the pixel size of the picture file to be checked exceeds a pixel threshold set by a preset image processing library. The logic screen information determining module 510 is configured to determine the logic screen information of the picture file to be checked when the predetermined image processing library is called and the picture file to be checked is loaded successfully.
According to an embodiment of the present disclosure, the apparatus 500 for reviewing picture files may further include a picture type determining module, configured to determine whether a picture file to be reviewed is a dynamic picture file. The picture type determination module may include a file conversion sub-module and a type determination sub-module. The file conversion submodule is used for converting the picture file to be checked into a binary file. And the type determining submodule is used for determining the picture file to be audited as the dynamic picture file under the condition that the byte information of the preset position in the binary file is determined to be the preset information.
In the technical scheme of the present disclosure, the processes of acquiring, collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the related user all conform to the regulations of related laws and regulations, and do not violate the good custom of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
Fig. 6 illustrates a schematic block diagram of an example electronic device 600 that may be used to implement the method of reviewing picture files of embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 601 performs the various methods and processes described above, such as a method of reviewing picture files. For example, in some embodiments, the method of reviewing picture files may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the above described method of auditing picture files may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured by any other suitable means (e.g. by means of firmware) to perform the method of reviewing the picture file.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server may be a cloud Server, which is also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in a traditional physical host and a VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (13)

1. A method of reviewing a picture file, comprising:
determining logic screen information of a picture file to be audited under the condition that the picture file to be audited is a dynamic picture file; wherein the logical screen information comprises a height of a logical screen and a width of the logical screen; and
and determining whether the picture file to be audited is abnormal or not based on the logic screen information.
2. The method of claim 1, further comprising:
determining the height of an image and the width of the image included in the picture file to be audited; and
the determining whether the picture file to be audited is abnormal or not based on the logic screen information comprises: and determining whether the picture to be audited is abnormal or not based on the difference between the height of the logic screen and the height of the image and the difference between the width of the logic screen and the width of the image.
3. The method of claim 2, wherein the determining whether the picture to be audited is abnormal based on the difference between the height of the logical screen and the height of the image and the difference between the width of the logical screen and the width of the image comprises:
determining a first difference between the height of the logical screen and the height of the image;
determining a second difference between the width of the logical screen and the width of the predetermined image; and
and determining that the picture file to be audited is abnormal under the condition that the first difference value is greater than or equal to a first difference value threshold value and/or the second difference value is greater than or equal to a second difference value threshold value.
4. The method of any of claims 1-3, further comprising:
calling a preset image processing library to load the picture file to be audited under the condition that the picture file to be audited is a dynamic picture file; and
determining that the picture file to be audited is abnormal when a preset error occurs in the process of calling the preset image processing library to load the picture file to be audited,
the preset error indicates that the image pixel size of the picture file to be audited exceeds a pixel threshold value set by the preset image processing library;
and determining the logic screen information of the picture file to be audited under the condition that the picture file to be audited is successfully loaded by calling the preset image processing library.
5. The method according to claim 1, further comprising determining that the picture file to be audited is the dynamic picture file by:
converting the picture file to be audited into a binary file; and
and under the condition that the byte information of the preset position in the binary file is determined to be preset information, determining the picture file to be audited to be the dynamic picture file.
6. An apparatus for reviewing picture files, comprising:
the system comprises a logic screen information determining module, a logic screen information determining module and a processing module, wherein the logic screen information determining module is used for determining the logic screen information of a picture file to be audited under the condition that the picture file to be audited is a dynamic picture file; wherein the logical screen information comprises a height of a logical screen and a width of the logical screen; and
and the abnormity determining module is used for determining whether the picture file to be audited is abnormal or not based on the logic screen information.
7. The apparatus of claim 6, further comprising:
the image information determining module is used for determining the height of an image and the width of the image included in the picture file to be audited;
wherein the anomaly determination module is to: and determining whether the picture to be audited is abnormal or not based on the difference between the height of the logic screen and the height of the image and the difference between the width of the logic screen and the width of the image.
8. The apparatus of claim 7, wherein the anomaly determination module comprises:
a first difference determination submodule for determining a first difference between the height of the logical screen and the height of the image;
a second difference determination submodule for determining a second difference between the width of the logical screen and the width of the predetermined image; and
and the abnormity determining submodule is used for determining that the picture file to be audited is abnormal under the condition that the first difference is greater than or equal to a first difference threshold and/or the second difference is greater than or equal to a second difference threshold.
9. The apparatus of any of claims 6-8, further comprising:
the file loading module is used for calling a preset image processing library to load the picture file to be audited under the condition that the picture file to be audited is a dynamic picture file; and
the anomaly determination module is further to: determining that the picture file to be audited is abnormal when a preset error occurs in the process of loading the picture file to be audited by calling the preset image processing library through the file loading module,
the preset error indicates that the pixel size of the picture file to be audited exceeds a pixel threshold value set by the preset image processing library;
the logic screen information determining module is used for determining the logic screen information of the picture file to be audited under the condition that the preset image processing library is called to successfully load the picture file to be audited.
10. The device of claim 6, further comprising a picture type determining module, configured to determine whether the picture file to be audited is a dynamic picture file; the picture type determination module includes:
the file conversion submodule is used for converting the picture file to be audited into a binary file; and
and the type determining submodule is used for determining the picture file to be audited as the dynamic picture file under the condition that the byte information of the preset position in the binary file is determined to be preset information.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of claims 1-5.
13. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 5.
CN202110965015.1A 2021-08-20 2021-08-20 Method, device, electronic equipment and storage medium for auditing picture files Active CN113674246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110965015.1A CN113674246B (en) 2021-08-20 2021-08-20 Method, device, electronic equipment and storage medium for auditing picture files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110965015.1A CN113674246B (en) 2021-08-20 2021-08-20 Method, device, electronic equipment and storage medium for auditing picture files

Publications (2)

Publication Number Publication Date
CN113674246A true CN113674246A (en) 2021-11-19
CN113674246B CN113674246B (en) 2023-09-01

Family

ID=78544779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110965015.1A Active CN113674246B (en) 2021-08-20 2021-08-20 Method, device, electronic equipment and storage medium for auditing picture files

Country Status (1)

Country Link
CN (1) CN113674246B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220541A (en) * 2012-01-23 2013-07-24 索尼公司 Image processing apparatus, image processing method, and program
CN106383880A (en) * 2016-09-13 2017-02-08 广州视睿电子科技有限公司 GIF file playing method and system
KR20180117433A (en) * 2017-04-19 2018-10-29 주식회사 넥슨코리아 Method and system for testing stereo-scopic image
CN110223221A (en) * 2018-02-28 2019-09-10 腾讯科技(深圳)有限公司 A kind of method and terminal device of dynamic image broadcasting
US20190311796A1 (en) * 2017-03-20 2019-10-10 SK Commercial Construction, Inc. Color analysis and control using an electronic mobile device transparent display screen integral with the use of augmented reality glasses
CN111832449A (en) * 2020-06-30 2020-10-27 万翼科技有限公司 Engineering drawing display method and related device
CN113111200A (en) * 2021-04-09 2021-07-13 百度在线网络技术(北京)有限公司 Method and device for auditing picture file, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220541A (en) * 2012-01-23 2013-07-24 索尼公司 Image processing apparatus, image processing method, and program
CN106383880A (en) * 2016-09-13 2017-02-08 广州视睿电子科技有限公司 GIF file playing method and system
US20190311796A1 (en) * 2017-03-20 2019-10-10 SK Commercial Construction, Inc. Color analysis and control using an electronic mobile device transparent display screen integral with the use of augmented reality glasses
KR20180117433A (en) * 2017-04-19 2018-10-29 주식회사 넥슨코리아 Method and system for testing stereo-scopic image
CN110223221A (en) * 2018-02-28 2019-09-10 腾讯科技(深圳)有限公司 A kind of method and terminal device of dynamic image broadcasting
CN111832449A (en) * 2020-06-30 2020-10-27 万翼科技有限公司 Engineering drawing display method and related device
CN113111200A (en) * 2021-04-09 2021-07-13 百度在线网络技术(北京)有限公司 Method and device for auditing picture file, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李玉鹏: "基于深度学习的视频行为识别研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 1, pages 138 - 1432 *

Also Published As

Publication number Publication date
CN113674246B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
CN113808231A (en) Information processing method and device, image rendering method and device, and electronic device
CN114071190B (en) Cloud application video stream processing method, related device and computer program product
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN114546830A (en) Regression testing method, regression testing device, electronic equipment and storage medium
CN113923474A (en) Video frame processing method and device, electronic equipment and storage medium
CN113807410B (en) Image recognition method and device and electronic equipment
CN113674246B (en) Method, device, electronic equipment and storage medium for auditing picture files
CN113112472B (en) Image processing method and device
CN113590447B (en) Buried point processing method and device
CN115934179A (en) Service function control method and equipment
CN114003497A (en) Method, device and equipment for testing service system and storage medium
CN114021642A (en) Data processing method and device, electronic equipment and storage medium
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN113627534A (en) Method and device for identifying type of dynamic image and electronic equipment
CN113554721A (en) Image data format conversion method and device
CN113111200B (en) Method, device, electronic equipment and storage medium for auditing picture files
CN111400156A (en) Log analysis method and device
CN115378746B (en) Network intrusion detection rule generation method, device, equipment and storage medium
CN114791996B (en) Information processing method, device, system, electronic equipment and storage medium
CN116431108B (en) Object type processing method and device, electronic equipment and storage medium
CN113360407B (en) Function positioning method and device, electronic equipment and readable storage medium
CN113779098B (en) Data processing method, device, electronic equipment and storage medium
CN113377603B (en) Page monitoring method and device
CN114511535A (en) White screen detection method and device, electronic equipment, medium and product
CN116881121A (en) Test method, test device, electronic equipment and computer readable storage 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
GR01 Patent grant
GR01 Patent grant