CN112308755A - Image detection method, system and device based on Hybrid App page watermark - Google Patents

Image detection method, system and device based on Hybrid App page watermark Download PDF

Info

Publication number
CN112308755A
CN112308755A CN202011194334.9A CN202011194334A CN112308755A CN 112308755 A CN112308755 A CN 112308755A CN 202011194334 A CN202011194334 A CN 202011194334A CN 112308755 A CN112308755 A CN 112308755A
Authority
CN
China
Prior art keywords
watermark
page
picture
view
new page
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
CN202011194334.9A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011194334.9A priority Critical patent/CN112308755A/en
Publication of CN112308755A publication Critical patent/CN112308755A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to artificial intelligence, and provides a picture detection method based on Hybrid App page watermarks, which comprises the following steps: when the Hybrid App creates or jumps to a new page view, judging whether the new page view needs to be added with a watermark or not based on the watermark adding file; if the fact that the new page view needs to judge the watermark is judged, determining the page type of the new page view based on the watermark adding file, and configuring a corresponding watermark adding scheme for the new page view based on the page type; adding corresponding watermarks to the new page views according to the watermark adding scheme; and acquiring the picture to be detected uploaded by the Hybrid App through a preset detection server, and performing anti-counterfeiting identification detection on the picture to be detected based on the watermark of the picture to be detected. The invention also relates to a block chain technology, wherein the watermark adding file and the watermark are both stored in the block chain. The technical scheme provided by the invention can solve the problems of low identification efficiency and poor identification effect of the conventional method for detecting and identifying the picture provided by the App.

Description

Image detection method, system and device based on Hybrid App page watermark
Technical Field
The invention relates to the technical field of picture identification, in particular to a picture detection method, a system, a device and a storage medium based on Hybrid App page watermarks.
Background
With the rise of mobile internet, mobile App products have become the largest traffic channel of mobile internet products, wherein financial APPs are more and more, and usually, such APPs are developed by Hybrid technology frameworks such as Hybrid, read Native, Weex, and the like, and the Hybrid technology frameworks have better page display performance compared with a single type framework.
In particular, for platforms using traditional App products, the system components of each platform are different, requiring a separate App to be developed for each platform. This is not necessary for platforms using the Hybrid App, whose native UI components are used to expose the complex interaction and rendering-demanding interfaces, others may be given HTML 5. More specifically, the Hybrid App is mainly composed of Native pages (Native) and pages of HTML5, the App of the type is compatible with three ends and has high efficiency, and the API and the App provided by the Native SDK can communicate with the system bottom layer to create UI components or access system services, the components are rendered to a mobile phone screen, and corresponding events generated by the screen are transmitted back to the components. In actual design, the H5 (i.e., HTML5) page typically carries business services and the Native page typically carries basic component services.
However, in the financial App, for the existing financial services, there are many service scenes in which related pictures such as certificates or data need to be submitted for system audit, and if the submitted pictures are falsified in the aspects of third-party picture processing and modification, a great risk of vulnerability in the aspect of legal affairs exists during the approval, which seriously affects the development and operation of normal services.
The auditing modes of the associated pictures such as certificates or data submitted in the traditional business scene are realized by manual or picture recognition technology, the manual auditing method is gradually eliminated due to low efficiency, the auditing method of the picture recognition technology needs to use models such as neural networks, and therefore early training is needed, and if the accuracy of early training samples is low, the overall picture auditing effect is poor.
Based on the above problems, a method for efficiently detecting pictures provided by Hybrid App is needed.
Disclosure of Invention
The invention provides a picture detection method, a system, an electronic device and a computer storage medium based on Hybrid App page watermarks, and mainly aims to solve the problems of low identification efficiency and poor identification effect of the existing method for detecting and identifying pictures provided by an App.
In order to achieve the purpose, the invention provides a picture detection method based on Hybrid App page watermarks, which comprises the following steps:
acquiring a picture to be detected uploaded by the Hybrid App through a preset detection server, and detecting whether a watermark of the picture to be detected is an original watermark or not based on a preset watermark detection rule; wherein the original watermark is added according to the following method:
when the Hybrid App creates or jumps to a new page view, judging whether the new page view needs to be added with a watermark or not based on a preset watermark adding file;
if the new page view needs to judge the watermark, determining the page type of the new page view based on the watermark adding file, and configuring a corresponding watermark adding scheme for the new page view based on the page type;
adding corresponding original watermarks to the new page views according to the watermark adding scheme;
and the picture to be detected is a picture formed by the new page view added with the watermark.
Preferably, the watermark adding file comprises a name of a page to be added with the watermark; and the number of the first and second electrodes,
in the process of judging whether the new page view needs to be added with the original watermark or not based on the watermark adding file, if the name of the new page view corresponds to the name of any page to be added with the watermark in the watermark adding file, the new page view needs to be added with the original watermark.
Preferably, the watermark adding file further comprises a page type and a watermark adding style corresponding to the name of the page to be added with the watermark, wherein the page type comprises a Native page, and the watermark adding style comprises full page adding and sub-view adding; and the number of the first and second electrodes,
if the page type of the new page view is a Native page, determining a watermark adding style of the new page view based on the watermark adding file;
if the watermark adding style of the new page view is full page adding, adding corresponding original watermarks on the full page of the new page view according to the watermark adding scheme; and if the watermark adding style of the new page view is sub-view adding, traversing all the picture sub-views in the new page view, selecting corresponding sub-views to be added and printed from all the picture sub-views based on a preset screening rule, and adding corresponding original watermarks on the sub-views to be added and printed according to the watermark adding scheme.
Preferably, the page types further include H5 pages; if the page type of the new page view is H5 page, configuring a corresponding watermark adding scheme for the new page view based on the page type and adding a corresponding original watermark to the new page view according to the watermark adding scheme collectively include:
acquiring all picture sub-views in the new page view based on all img tags of the new page view;
selecting corresponding sub-views to be overprinted from all the picture sub-views based on the preset screening rule;
newly building a Canvas, and taking the sub-view to be overprinted as a bottom plate of the Canvas;
adding corresponding original watermarks on a bottom plate of the Canvas according to the watermark adding scheme;
and converting the Canvas into an overprinted picture, and displaying the overprinted picture back to the corresponding position of the new page view.
Preferably, the preset screening rule comprises:
judging whether the length and the width of each picture sub-view are both within a preset range;
and if the length and the width of the picture sub-view are both in a preset range, setting the picture sub-view as the sub-view to be overprinted, and if one of the length and the width of the picture sub-view is not in the preset range, not setting the picture sub-view as the sub-view to be overprinted.
Preferably, the process of adding the corresponding original watermark to the new page view according to the watermarking scheme includes:
scaling the size of the watermark layers in an equal ratio according to the size of the new page view or the sub-view to be overprinted so as to enable a preset number of watermark layers to be arranged in the new page view or the sub-view to be overprinted;
adding corresponding original watermarks in the watermark image layers; wherein the watermark is stored in a blockchain, and wherein the original watermark comprises:
and the name of the new page view, the current time and the desensitized user account information.
Preferably, the original watermark further comprises MD5 information; wherein the content of the first and second substances,
the MD5 information is obtained by RSA encryption of the name of the new page view, the current time and the desensitized user account information. .
In addition, the invention also provides a picture detection system based on Hybrid App page watermarking, and the system comprises:
the system comprises a watermark adding judgment unit and a watermark adding judgment unit, wherein the watermark adding judgment unit is used for judging whether a new page view needs to be added with a watermark or not based on a preset watermark adding file when the Hybrid App creates or jumps to the new page view;
the watermark scheme configuration unit is used for determining the page type of the new page view based on the watermark adding file and configuring a corresponding watermark adding scheme for the new page view based on the page type if the fact that the new page view needs to judge the watermark is judged;
the watermark adding unit is used for adding corresponding original watermarks to the new page views according to the watermark adding scheme;
and the picture detection unit is used for acquiring the picture to be detected uploaded by the Hybrid App through a preset detection server and detecting whether the watermark of the picture to be detected is the original watermark or not based on a preset watermark detection rule.
In addition, to achieve the above object, the present invention also provides an electronic device, including: the image detection program based on the Hybrid App page watermark comprises a memory, a processor and a picture detection program based on the Hybrid App page watermark, wherein the picture detection program based on the Hybrid App page watermark is stored in the memory and can run on the processor, and when being executed by the processor, the image detection program based on the Hybrid App page watermark realizes the following steps:
the method comprises the steps of obtaining a picture to be detected uploaded by the Hybrid App through a preset detection server, and detecting whether a watermark of the picture to be detected is an original watermark or not based on a preset watermark detection rule; wherein the original watermark is added according to the following method:
when the Hybrid App creates or jumps to a new page view, judging whether the new page view needs to be added with a watermark or not based on a preset watermark adding file;
if the new page view needs to judge the watermark, determining the page type of the new page view based on the watermark adding file, and configuring a corresponding watermark adding scheme for the new page view based on the page type;
adding corresponding original watermarks to the new page views according to the watermark adding scheme;
and the picture to be detected is a picture formed by the new page view added with the watermark.
In addition, in order to achieve the above object, the present invention further provides a computer-readable storage medium, where a picture detection program based on the Hybrid App page watermark is stored in the computer-readable storage medium, and when the picture detection program based on the Hybrid App page watermark is executed by a processor, the steps of the above picture detection method based on the Hybrid App page watermark are implemented.
According to the image detection method based on the Hybrid App page watermark, the electronic device and the computer readable storage medium, the watermark of the image in the Hybrid App is added in time in a mode of adding the watermark in the page of the Hybrid App, the preset detection server can conveniently check the image uploaded by the Hybrid App based on the watermark added by the image, and a user or even a third party is prevented from making fake on the aspects of processing and modifying the image in the process of uploading the image by the Hybrid App. In addition, by the scheme that the Hybrid App automatically updates the watermark adding file when the Hybrid App is started next time, the watermark meets the corresponding page scene, and the flexibility is high; in addition, when the user or the third party sees the relevant watermark layer, the intention of the user or the third party to continue to make a picture fake can be effectively reduced; meanwhile, by adding the calculation information (MD5 information and the like) of the watermark layer, the server can identify the vulnerability risk in the service approval process by checking the authenticity of the picture uploaded by the user again, improve the service risk level and ensure the normal operation of the service.
Drawings
Fig. 1 is a flowchart of a preferred embodiment of a method for detecting a picture based on a Hybrid App page watermark according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 3 is a schematic diagram of internal logic of a picture detection program based on Hybrid App page watermarking according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more embodiments. It may be evident, however, that such embodiment(s) may be practiced without these specific details.
Specific embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Example 1
In order to describe the image detection method based on the Hybrid App page watermark provided by the present invention, fig. 1 shows a flow of the image detection method based on the Hybrid App page watermark provided by the present invention.
As shown in fig. 1, the method for detecting an image based on a Hybrid App page watermark provided by the present invention includes: the method comprises an original watermarking process and a picture detection process, wherein the original watermarking process comprises the following steps:
s110: when the Hybrid App creates or jumps to a new page view, whether the new page view needs to be added with a watermark is judged based on a preset watermark adding file.
It should be noted that, in order to implement the watermark addition of the page view in the Hybrid App, when the Hybrid App is started, the system automatically and asynchronously pulls and updates the preset watermark addition file deployed by the server according to the service requirement. The watermark adding file comprises a name of a page to be added with a watermark (corresponding to the name of the page to be added with the watermark accurately according to service requirements), a page type corresponding to the name of the page to be added with the watermark, and a watermark adding style, wherein the page type comprises a Native page and an H5 page, and the watermark adding style comprises full page adding and sub-view adding.
Specifically, in the process of determining whether the new page view needs to be watermarked based on the watermark adding file, if the name of the new page view corresponds to any one of the names of the pages to be watermarked in the watermark adding file, it is determined that the new page view needs to be watermarked.
It should be noted that, in the process of actually displaying the page by the Hybrid App, the page is displayed one by one (i.e., the page is skipped to the next page from the current page), so that after the watermark adding file is pulled, the watermark adding file is analyzed in advance to analyze all information contained in the watermark adding file, mainly the name of the page to be added with the watermark, then when the Hybrid App creates or jumps to a new page view, whether the name of the page to be added with the watermark in the watermark adding file is consistent with the name of the new page view is directly judged, if so, it is judged that the new page view needs to be added with the watermark layer, and the watermark is added to the page according to the subsequent steps; if not, the new page view is judged not to need to be added with the watermark. Further, with the continuous adjustment of creating or jumping new page views by the Hybrid App, the addition of watermarks to most page views in the Hybrid App can be realized.
It should be further explained that whether the page view in the Hybrid App needs to be watermarked or not needs to be set according to the service needs, for example, if the service is mainly related to identification of the id card information, only the page view containing the id card information needs to be watermarked, and other types of page identification do not need to be watermarked. In addition, since the pictures uploaded to the preset detection server by the Hybrid App need to be called by the Hybrid App at least once in advance (in the process of creation or jumping), and since the pictures are necessarily displayed in the corresponding page view in the calling process, the addition of the corresponding watermarks can be realized on the pictures along with the addition of the page view watermarks, and when the detection server receives the pictures, the anti-counterfeiting identification detection can be performed based on the watermarks on the pictures.
S120: and if the new page view needs to judge the watermark, determining the page type of the new page view based on the watermark adding file, and configuring a corresponding watermark adding scheme for the new page view based on the page type, wherein the page type comprises a Native page and an H5 page.
Specifically, the page types of the Hybrid App mainly include a Native page and an H5 page, and the two types of pages have completely different attributes, so that the page types are easily distinguished, and a specific distinguishing method can select a packet capturing technology, a client display layout query mode and the like, wherein the packet capturing technology is used for judging whether the request has information of the html resource. The client display layout query is with the client's settings-display layout boundaries. Of course, there are other methods of differentiation, which are commonly used in the art, and the detailed description of the procedures is omitted here.
After the page type of the new page view is determined, a corresponding watermarking scheme can be configured for the new page view based on the page type. Specifically, if the page type of the new page view is a Native page, determining a watermark adding style of the new page view based on the watermark adding file;
if the watermark adding style of the new page view is full page adding, adding a corresponding watermark on the full page of the new page view according to the watermark adding scheme; and if the watermark adding style of the new page view is the sub-view adding, traversing all the picture sub-views in the new page view, selecting corresponding sub-views to be added and printed from all the picture sub-views based on a preset screening rule, and adding corresponding watermarks on the sub-views to be added and printed according to the watermark adding scheme.
If the page type of the new page view is the H5 page, configuring a corresponding watermarking scheme for the new page view based on the page type and adding a corresponding watermark to the new page view according to the watermarking scheme collectively include:
acquiring all picture sub-views in the new page view based on all img tags of the new page view;
selecting corresponding sub-views to be overprinted from all the sub-views of the picture based on the preset screening rule;
newly building Canvas, and using the sub-view to be overprinted as a bottom plate of the Canvas;
adding corresponding watermarks on the bottom plate of the Canvas according to the watermark adding scheme;
the Canvas is converted into an overprinted picture, and the overprinted picture is displayed back to the corresponding position of the new page view.
It should be noted that, in the process of obtaining all the picture sub-views in the new page view based on all the img tags in the new page view, getElementByTagName (a function) may be used to obtain the img tags first, and the getElementsByTagName () function can obtain the img tags from the H5 page and return the img tag class elements, where the order of the elements is the order of the elements in the document, and if a special character string "+" is passed to the getElementsByTagName () function, it will return the list of all the elements in the document, and the order of the elements arrangement is the order of the elements in the document, so all the img tags in the new page view can be obtained in sequence. While img tags are used to link images from the page (i.e., picture sub-views). Therefore, one img label corresponds to a picture sub-view in a new page view, and all picture sub-views in the H5 page can be obtained in this way.
More specifically, the preset screening rule includes:
judging whether the length and the width of each picture sub-view are both within a preset range;
and if one of the length and the width of the picture sub-view is not in the preset range, not setting the picture sub-view as the sub-view to be overprinted.
It should be noted here that, for the same new page view, since the sub-views of each picture have larger size difference, some of the sub-views are larger, and some of the sub-views are smaller, for the smaller sub-views, since the information implicit therein is substantially zero, the sub-views can be directly ignored, and the watermark is not added thereto, wherein the size of the preset range is set according to actual needs.
In addition, it should be emphasized that, in order to further ensure the privacy and security of the above-mentioned watermarking file and the data in the later-described watermark, both the watermarking file and the watermark may be stored in the nodes of the block chain.
S130: and adding the corresponding original watermark to the new page view according to the watermark adding scheme.
Specifically, the process of adding the corresponding watermark to the new page view according to the watermark adding scheme includes:
scaling the size of the watermark layers in an equal ratio according to the size of the new page view or the sub-view to be overprinted so as to set a preset number of watermark layers in the new page view or the sub-view to be overprinted;
adding a corresponding watermark in the watermark image layer; wherein the watermark is stored in a chain of blocks, and wherein the watermark comprises:
and the name, the current time, desensitized user account information and other information of the new page view.
More specifically, the watermark layer is a transparent watermark layer, and the corresponding watermarks are added in an interval oblique line manner, and the watermarks are added at four corner positions of the watermark layer.
The method can realize the addition of the watermark of the new page view or the sub-view to be overprinted, certainly, because the picture uploaded to the preset detection server by the Hybrid App needs to be called by the Hybrid App at least once in advance, and because the picture is necessarily displayed in the corresponding page view in the calling process, the addition of the corresponding watermark can be realized on the picture along with the addition of the page view watermark, and in the later period, when the detection server receives the picture, the anti-counterfeiting identification detection can be carried out based on the name of the new page view, the current time, the desensitized user account information and other information on the picture, and when the information passes the detection, the detection of the picture through the detection server can be judged.
In addition, in order to further improve the anti-counterfeiting detection effect of the picture, the watermark also comprises MD5 information; the MD5 information is obtained by RSA encrypting the name of the new page view, the current time, and the desensitized user account information.
It should be noted that, an MD5 Message Digest Algorithm (english: MD5 Message-Digest Algorithm), a widely used cryptographic hash function, can generate a 128-bit (16-byte) hash value (hash value) to ensure the Message transmission is complete and consistent. The programming of this set of algorithms is specified in the RFC 1321 standard. The algorithm has high safety, so that the algorithm is used as verification information to be arranged in the watermark image layer, and the anti-counterfeiting effect of the page can be obviously improved.
The picture detection process comprises the following steps: s140: and acquiring the picture to be detected uploaded by the Hybrid App through a preset detection server, and detecting whether the watermark of the picture to be detected is the original watermark or not based on a preset watermark detection rule, so as to realize the anti-counterfeiting identification detection of the picture to be detected.
It should be noted that after steps S110 to S130, the original watermarks of all page views or picture sub-views (the views include all pictures to be uploaded to the detection server) on the Hybrid App related to the detection service can be added, so that the anti-counterfeit identification detection can be performed on the picture to be detected based on the obtained watermark of the picture to be detected uploaded by the Hybrid App at a later stage.
Further, when the watermark includes MD5 information, the preset watermark detection rule may include: and analyzing the real watermark of the uppermost layer of the picture to be detected, identifying the information of the four corners of the watermark layer according to the analyzed real watermark of the uppermost layer, and finally calculating the MD5 value of RSA (picture name + time + account). Judging whether the calculated MD5 value is consistent with the MD5 of the preset original watermark; and if the picture to be detected is consistent with the picture to be detected, judging that the uploaded picture to be detected is real and effective, and if the picture to be detected is inconsistent with the picture to be detected, judging that the uploaded picture to be detected is invalid.
In addition, in order to further improve the anti-counterfeiting detection effect of the picture to be detected uploaded by the Hybrid App, the screenshot operation triggered by the Hybrid App can be monitored in real time, the current page view can be automatically drawn, then the corresponding watermark is added according to the steps, and the user album is cached.
According to the image detection method based on the Hybrid App page watermark, the watermark of the image in the Hybrid App is added in time in a mode of adding the watermark in the page of the Hybrid App, the preset detection server can conveniently check the image uploaded by the Hybrid App based on the watermark added by the image, and a user or even a third party is prevented from making fake on the aspects of processing and modifying the image in the process of uploading the image by the Hybrid App. In addition, by the scheme that the Hybrid App automatically updates the watermark adding file when the Hybrid App is started next time, the watermark meets the corresponding page scene, and the flexibility is high; in addition, when the user or the third party sees the relevant watermark layer, the intention of the user or the third party to continue to make a picture fake can be effectively reduced; meanwhile, by adding the calculation information (MD5 information and the like) of the watermark layer, the server can identify the vulnerability risk in the service approval process by checking the authenticity of the picture uploaded by the user again, improve the service risk level and ensure the normal operation of the service.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example 2
Corresponding to the method, the application also provides a picture detection system based on Hybrid App page watermark, and the system comprises:
the system comprises a watermark adding judgment unit and a watermark adding judgment unit, wherein the watermark adding judgment unit is used for judging whether a new page view needs to be added with a watermark or not based on a preset watermark adding file when the Hybrid App creates or jumps to the new page view;
the watermark scheme configuration unit is used for determining the page type of the new page view based on the watermark adding file and configuring a corresponding watermark adding scheme for the new page view based on the page type if the fact that the new page view needs to judge the watermark is judged;
the watermark adding unit is used for adding corresponding original watermarks to the new page views according to the watermark adding scheme;
and the picture detection unit is used for acquiring the picture to be detected uploaded by the Hybrid App through a preset detection server and detecting whether the watermark of the picture to be detected is the original watermark or not based on a preset watermark detection rule.
Example 3
The present invention also provides an electronic device 70. Referring to fig. 2, a schematic structural diagram of an electronic device 70 according to a preferred embodiment of the invention is shown.
In the embodiment, the electronic device 70 may be a terminal device having a computing function, such as a server, a smart phone, a tablet computer, a portable computer, or a desktop computer.
The electronic device 70 includes: a processor 71 and a memory 72.
The memory 72 includes at least one type of readable storage medium. At least one type of readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card-type memory, and the like. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 70, such as a hard disk of the electronic device 70. In other embodiments, the readable storage medium may be an external memory of the electronic device 1, such as a plug-in hard disk provided on the electronic device 70, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like.
In the present embodiment, the readable storage medium of the memory 72 is generally used for storing the medical literature-based Hybrid App page watermark-based picture detection program 73 installed in the electronic device 70. The memory 72 may also be used to temporarily store data that has been output or is to be output.
The processor 72 may be a Central Processing Unit (CPU), microprocessor or other data Processing chip in some embodiments, and is used for running program codes stored in the memory 72 or Processing data, such as a picture detection program 73 based on Hybrid App page watermarking, and the like.
In some embodiments, the electronic device 70 is a terminal device of a smartphone, tablet, portable computer, or the like. In other embodiments, the electronic device 70 may be a server.
Fig. 2 only shows the electronic device 70 with components 71-73, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
Optionally, the electronic device 70 may further include a user interface, which may include an input unit such as a Keyboard (Keyboard), a voice input device such as a microphone (microphone) or other devices with voice recognition function, a voice output device such as a sound box, a headset, etc., and optionally may also include a standard wired interface, a wireless interface.
Optionally, the electronic device 70 may further include a display, which may also be referred to as a display screen or a display unit. In some embodiments, the display device may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch device, or the like. The display is used for displaying information processed in the electronic device 70 and for displaying a visualized user interface.
Optionally, the electronic device 70 may further include a touch sensor. The area provided by the touch sensor for the user to perform touch operation is referred to as a touch area. Further, the touch sensor here may be a resistive touch sensor, a capacitive touch sensor, or the like. The touch sensor may include not only a contact type touch sensor but also a proximity type touch sensor. Further, the touch sensor may be a single sensor, or may be a plurality of sensors arranged in an array, for example.
The area of the display of the electronic device 70 may be the same as or different from the area of the touch sensor. Optionally, the display is stacked with the touch sensor to form a touch display screen. The device detects touch operation triggered by a user based on the touch display screen.
Optionally, the electronic device 70 may further include a Radio Frequency (RF) circuit, a sensor, an audio circuit, and the like, which are not described in detail herein.
In the device embodiment shown in fig. 2, the memory 72 as a kind of computer storage medium may include an operating system, and a picture detection program 73 based on Hybrid App page watermarking; the processor 71 executes the Hybrid App page watermark-based picture detection program 73 stored in the memory 72 to implement the following steps:
acquiring a picture to be detected uploaded by the Hybrid App through a preset detection server, and detecting whether a watermark of the picture to be detected is an original watermark or not based on a preset watermark detection rule; wherein the original watermark is added according to the following method:
when the Hybrid App creates or jumps to a new page view, judging whether the new page view needs to be added with a watermark or not based on a preset watermark adding file;
if the new page view needs to judge the watermark, determining the page type of the new page view based on the watermark adding file, and configuring a corresponding watermark adding scheme for the new page view based on the page type;
adding corresponding original watermarks to the new page views according to the watermark adding scheme;
and the picture to be detected is a picture formed by the new page view added with the watermark.
In this embodiment, fig. 3 is a schematic diagram illustrating internal logic of a Hybrid App page watermark-based picture detection program according to an embodiment of the present invention, and as shown in fig. 3, the Hybrid App page watermark-based picture detection program 73 may be further divided into one or more modules, and the one or more modules are stored in the memory 72 and executed by the processor 71, so as to complete the present invention. The modules referred to herein are referred to as a series of computer program instruction segments capable of performing specified functions. Referring to fig. 3, a block diagram of a preferred embodiment of the Hybrid App page watermark-based picture detection program 73 in fig. 2 is shown. The Hybrid App page watermark-based picture detection program 73 can be split into: a watermarking judgment module 74, a watermarking judgment module 75, a watermarking module 76, and a picture detection module 77. The functions or operational steps performed by the modules 74-77 are similar to those described above and will not be described in detail herein, for example, where:
the watermark adding judging module 74 is configured to, when the Hybrid App creates or jumps to a new page view, judge whether the new page view needs to be added with a watermark based on a preset watermark adding file;
a watermark scheme configuring module 75, configured to determine a page type of the new page view based on the watermark adding file if it is determined that the new page view needs to determine a watermark, and configure a corresponding watermark adding scheme for the new page view based on the page type;
a watermark adding module 76, configured to add a corresponding watermark to the new page view according to the watermark adding scheme;
the picture detection module 77 is configured to obtain, by using a preset detection server, a picture to be detected uploaded by the Hybrid App, and detect whether a watermark of the picture to be detected is an original watermark based on a preset watermark detection rule.
Example 4
The invention also provides a computer readable storage medium, in which the image detection program 73 based on the Hybrid App page watermark is stored, and when being executed by the processor, the image detection program 73 based on the Hybrid App page watermark realizes the following operations:
acquiring a picture to be detected uploaded by the Hybrid App through a preset detection server, and detecting whether a watermark of the picture to be detected is an original watermark or not based on a preset watermark detection rule; wherein the original watermark is added according to the following method:
when the Hybrid App creates or jumps to a new page view, judging whether the new page view needs to be added with a watermark or not based on a preset watermark adding file;
if the new page view needs to judge the watermark, determining the page type of the new page view based on the watermark adding file, and configuring a corresponding watermark adding scheme for the new page view based on the page type;
adding corresponding original watermarks to the new page views according to the watermark adding scheme;
and the picture to be detected is a picture formed by the new page view added with the watermark.
The specific implementation of the computer-readable storage medium provided by the invention is substantially the same as the specific implementation of the image detection method and the electronic device based on the Hybrid App page watermark, and is not repeated herein.
It should be noted that the blockchain in the present invention is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It is further noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A picture detection method based on Hybrid App page watermarks is applied to an electronic device and is characterized in that the method obtains a picture to be detected uploaded by the Hybrid App through a preset detection server and detects whether the watermark of the picture to be detected is an original watermark or not based on a preset watermark detection rule; wherein the original watermark is added according to the following method:
when the Hybrid App creates or jumps to a new page view, judging whether the new page view needs to be added with a watermark or not based on a preset watermark adding file;
if the new page view needs to judge the watermark, determining the page type of the new page view based on the watermark adding file, and configuring a corresponding watermark adding scheme for the new page view based on the page type;
adding corresponding original watermarks to the new page views according to the watermark adding scheme;
and the picture to be detected is a picture formed by the new page view added with the watermark.
2. The Hybrid App page watermark-based picture detection method according to claim 1, wherein the watermark adding file includes a name of a page to be added with a watermark; and the number of the first and second electrodes,
in the process of judging whether the new page view needs to be added with the original watermark or not based on the watermark adding file, if the name of the new page view corresponds to the name of any page to be added with the watermark in the watermark adding file, the new page view needs to be added with the original watermark.
3. The Hybrid App page watermark-based picture detection method according to claim 2, wherein the watermark adding file further comprises a page type corresponding to the name of the page to be watermarked and a watermark adding style, wherein the page type comprises a Native page, and the watermark adding style comprises full page adding and sub-view adding; and the number of the first and second electrodes,
if the page type of the new page view is a Native page, determining a watermark adding style of the new page view based on the watermark adding file;
if the watermark adding style of the new page view is full page adding, adding corresponding original watermarks on the full page of the new page view according to the watermark adding scheme; and if the watermark adding style of the new page view is sub-view adding, traversing all the picture sub-views in the new page view, selecting corresponding sub-views to be added and printed from all the picture sub-views based on a preset screening rule, and adding corresponding original watermarks on the sub-views to be added and printed according to the watermark adding scheme.
4. The Hybrid App page watermark-based picture detection method according to claim 3, wherein the page types further include H5 pages; if the page type of the new page view is H5 page, configuring a corresponding watermark adding scheme for the new page view based on the page type and adding a corresponding original watermark to the new page view according to the watermark adding scheme collectively include:
acquiring all picture sub-views in the new page view based on all img tags of the new page view;
selecting corresponding sub-views to be overprinted from all the picture sub-views based on the preset screening rule;
newly building a Canvas, and taking the sub-view to be overprinted as a bottom plate of the Canvas;
adding corresponding original watermarks on a bottom plate of the Canvas according to the watermark adding scheme;
and converting the Canvas into an overprinted picture, and displaying the overprinted picture back to the corresponding position of the new page view.
5. The Hybrid App page watermark-based picture detection method according to claim 4, wherein the preset screening rules include:
judging whether the length and the width of each picture sub-view are both within a preset range;
and if the length and the width of the picture sub-view are both in a preset range, setting the picture sub-view as the sub-view to be overprinted, and if one of the length and the width of the picture sub-view is not in the preset range, not setting the picture sub-view as the sub-view to be overprinted.
6. The Hybrid App page watermark-based picture detection method according to claim 5, wherein the process of adding the corresponding original watermark to the new page view according to the watermark adding scheme comprises:
scaling the size of the watermark layers in an equal ratio according to the size of the new page view or the sub-view to be overprinted so as to enable a preset number of watermark layers to be arranged in the new page view or the sub-view to be overprinted;
adding corresponding original watermarks in the watermark image layers; wherein the watermark is stored in a blockchain, and wherein the original watermark comprises:
and the name of the new page view, the current time and the desensitized user account information.
7. The Hybrid App page watermark-based picture detection method according to claim 6, wherein the original watermark further comprises MD5 information; wherein the content of the first and second substances,
the MD5 information is obtained by RSA encryption of the name of the new page view, the current time and the desensitized user account information.
8. A picture detection system based on Hybrid App page watermarking, the system comprising:
the system comprises a watermark adding judgment unit and a watermark adding judgment unit, wherein the watermark adding judgment unit is used for judging whether a new page view needs to be added with a watermark or not based on a preset watermark adding file when the Hybrid App creates or jumps to the new page view;
the watermark scheme configuration unit is used for determining the page type of the new page view based on the watermark adding file and configuring a corresponding watermark adding scheme for the new page view based on the page type if the fact that the new page view needs to judge the watermark is judged;
the watermark adding unit is used for adding corresponding original watermarks to the new page views according to the watermark adding scheme;
and the picture detection unit is used for acquiring the picture to be detected uploaded by the Hybrid App through a preset detection server and detecting whether the watermark of the picture to be detected is the original watermark or not based on a preset watermark detection rule.
9. An electronic device, comprising: the image detection program based on the Hybrid App page watermark comprises a memory, a processor and a picture detection program based on the Hybrid App page watermark, wherein the picture detection program based on the Hybrid App page watermark is stored in the memory and can run on the processor, and when being executed by the processor, the image detection program based on the Hybrid App page watermark realizes the following steps:
when the Hybrid App creates or jumps to a new page view, judging whether the new page view needs to be added with a watermark or not based on a preset watermark adding file;
if the new page view needs to judge the watermark, determining the page type of the new page view based on the watermark adding file, and configuring a corresponding watermark adding scheme for the new page view based on the page type;
adding corresponding original watermarks to the new page views according to the watermark adding scheme;
and acquiring the picture to be detected uploaded by the Hybrid App through a preset detection server, and detecting whether the watermark of the picture to be detected is the original watermark or not based on a preset watermark detection rule.
10. A computer-readable storage medium, wherein a Hybrid App page watermark-based picture detection program is stored in the computer-readable storage medium, and when the Hybrid App page watermark-based picture detection program is executed by a processor, the steps of the Hybrid App page watermark-based picture detection method according to any one of claims 1 to 7 are implemented.
CN202011194334.9A 2020-10-30 2020-10-30 Image detection method, system and device based on Hybrid App page watermark Pending CN112308755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011194334.9A CN112308755A (en) 2020-10-30 2020-10-30 Image detection method, system and device based on Hybrid App page watermark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011194334.9A CN112308755A (en) 2020-10-30 2020-10-30 Image detection method, system and device based on Hybrid App page watermark

Publications (1)

Publication Number Publication Date
CN112308755A true CN112308755A (en) 2021-02-02

Family

ID=74334171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011194334.9A Pending CN112308755A (en) 2020-10-30 2020-10-30 Image detection method, system and device based on Hybrid App page watermark

Country Status (1)

Country Link
CN (1) CN112308755A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065278A (en) * 2012-12-24 2013-04-24 南京师范大学 Multi-stage certification method aimed at shaft horse power (shp) line face image layer integrality
CN103731483A (en) * 2013-12-25 2014-04-16 侯金涛 Virtual file system based on cloud computing
CN107368487A (en) * 2016-05-12 2017-11-21 阿里巴巴集团控股有限公司 A kind of page assembly Dynamic Distribution method, apparatus and client
CN110286974A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Application configuration method, apparatus, equipment and storage medium based on the H5 page
CN111191414A (en) * 2019-11-11 2020-05-22 苏州亿歌网络科技有限公司 Page watermark generation method, identification method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065278A (en) * 2012-12-24 2013-04-24 南京师范大学 Multi-stage certification method aimed at shaft horse power (shp) line face image layer integrality
CN103731483A (en) * 2013-12-25 2014-04-16 侯金涛 Virtual file system based on cloud computing
CN107368487A (en) * 2016-05-12 2017-11-21 阿里巴巴集团控股有限公司 A kind of page assembly Dynamic Distribution method, apparatus and client
CN110286974A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Application configuration method, apparatus, equipment and storage medium based on the H5 page
CN111191414A (en) * 2019-11-11 2020-05-22 苏州亿歌网络科技有限公司 Page watermark generation method, identification method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108292231B (en) Method and system for generating applications from data
US11704764B2 (en) Method and system for generating watermark on the basis of graphic, terminal, and medium
US9324085B2 (en) Method and system of generating digital content on a user interface
US20120036452A1 (en) Masking sensitive information in a screen sharing session
CN110245469B (en) Webpage watermark generation method, watermark analysis method, device and storage medium
CN111737692B (en) Application program risk detection method and device, equipment and storage medium
CN112508145B (en) Electronic seal generation and verification method and device, electronic equipment and storage medium
JP2022522315A (en) Checking the display of third-party content on client devices
CN110634095B (en) Watermark adding method, watermark identifying device and electronic equipment
CN111142863B (en) Page generation method and device
CN105808630B (en) Android application auditing method and device
CN110140144B (en) Image processing system for validating rendered data
US20230328101A1 (en) Systems and methods of detecting anomalous websites
CN112434506A (en) Electronic protocol signing processing method, device, computer equipment and medium
CN112308755A (en) Image detection method, system and device based on Hybrid App page watermark
JP2020154778A (en) Document processing device and program
US20230325961A1 (en) Zoom agnostic watermark extraction
CN112528189B (en) Data-based component packaging method and device, computer equipment and storage medium
CN108388463A (en) Icon processing method, device, computer equipment and storage medium
TWI742429B (en) System for displaying signature message of portable document format file in web page and method thereof
WO2022271145A1 (en) Zoom agnostic watermark extraction
CN113760764A (en) Application program detection method and device, electronic equipment and storage medium
CN110929725A (en) Certificate classification method and device and computer readable storage medium
CN114121049B (en) Data processing method, device and storage medium
CN111783119B (en) Form data security control method, form data security control device, electronic equipment and 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