CN107358228A - Image processing method, device, equipment and storage medium - Google Patents

Image processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN107358228A
CN107358228A CN201710555993.2A CN201710555993A CN107358228A CN 107358228 A CN107358228 A CN 107358228A CN 201710555993 A CN201710555993 A CN 201710555993A CN 107358228 A CN107358228 A CN 107358228A
Authority
CN
China
Prior art keywords
pixel
closed area
set color
area
mask
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
CN201710555993.2A
Other languages
Chinese (zh)
Other versions
CN107358228B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710555993.2A priority Critical patent/CN107358228B/en
Publication of CN107358228A publication Critical patent/CN107358228A/en
Application granted granted Critical
Publication of CN107358228B publication Critical patent/CN107358228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an image processing method, an image processing device, image processing equipment and a storage medium. The method comprises the following steps: determining whether a pixel point with a pixel value within a preset pixel value range exists in an image to be identified; if yes, confirming at least one closed area formed by the pixel points; and generating and displaying a preset color covering layer at a covering position corresponding to the closed area. The method provided by the invention can automatically and accurately cover the content of the designated area, and is convenient for a user to check the grasping condition of the covered content.

Description

A kind of method, apparatus of image procossing, equipment and storage medium
Technical field
The present invention relates to image technique field, more particularly to a kind of method, apparatus of image procossing, equipment and storage to be situated between Matter.
Background technology
In learning process, we usually need to review some important knowledge points, as in studying history knowledge During, selective learning need to be carried out to knowledge points such as the title of important historical events, time of origin and scenes.In order to true Recognize and whether grasp these knowledge points, people usually with some aids such as ruler or paper come block the knowledge point on textbook with Oneself is checked to the grasp situation for the knowledge point being blocked, however, the aid for blocking tend not to we needed for The position dimension blocked is coincide, and then knowledge point can not be covered exactly, is influenceed people and is grasped situation to knowledge point Checking on effect.
The content of the invention
The present invention provides a kind of method, apparatus of image procossing, equipment and storage medium, automatic accurate to specifying to realize The content in region is covered.
In a first aspect, the embodiments of the invention provide a kind of method of image procossing, this method includes:
Determine to whether there is pixel of the pixel value in the range of presetted pixel value in images to be recognized;
If in the presence of confirming at least one closed area of pixel composition;
Generated in covering position corresponding to the closed area and show pre-set color mask.
Second aspect, the embodiment of the present invention additionally provide a kind of device of image procossing, and the device includes:
Pixel confirms module, for determining in images to be recognized with the presence or absence of pixel value in the range of presetted pixel value Pixel;
Closed area confirms module, for if it is determined that pixel value in images to be recognized be present in the range of presetted pixel value Pixel, then confirm at least one closed area of the pixel composition;
Mask generation module, for being generated in covering position corresponding to the closed area and showing pre-set color mask.
The third aspect, the embodiment of the present invention additionally provide a kind of electronic equipment, and the equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are by one or more of computing devices so that one or more of processing The method that device realizes the image procossing that any embodiment of the present invention provides.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, are stored thereon with computer Program, the program realizes the image procossing that any embodiment of the present invention provides method when being executed by processor.
The present invention is by determining to whether there is pixel of the pixel value in the range of presetted pixel value in images to be recognized;If In the presence of at least one closed area that then confirmation pixel forms;Generate and show pre- in covering position corresponding to closed area If color mask, solve the aid for being used for blocking in the prior art and tend not to kiss with the required position dimension blocked The problem of closing, and then can not being covered exactly to the required content blocked, realize automatically and accurately in designated area Appearance is covered, and is easy to user to be checked for oneself the grasp situation for being capped content.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the method for image procossing in the embodiment of the present invention one;
Fig. 2 is a kind of schematic diagram of images to be recognized in the embodiment of the present invention one;
Fig. 3 is a kind of schematic diagram of generation pre-set color mask in the embodiment of the present invention one;
Fig. 4 is a kind of flow chart of the method for image procossing in the embodiment of the present invention two;
Fig. 5 is a kind of schematic diagram of images to be recognized in the embodiment of the present invention two;
Fig. 6 is a kind of schematic diagram of generation pre-set color mask in the embodiment of the present invention two;
Fig. 7 is a kind of schematic diagram of generation pre-set color mask in the embodiment of the present invention two;
Fig. 8 is a kind of structural representation of the device of image procossing in the embodiment of the present invention three;
Fig. 9 is the structural representation of a kind of electronic equipment in the embodiment of the present invention four.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of flow chart of the method for image procossing that the embodiment of the present invention one provides, and the present embodiment is applicable to Situation about need to be covered to the content in image, this method can be performed by the device of image procossing.The present embodiment provides Method specifically comprise the following steps:
Step 110, obtain images to be recognized.
Preferably, in order to needing overlay content and being distinguished without overlay content, the background face of overlay content can will be needed Color is arranged to color of the pixel value in the range of presetted pixel value, and then can pass through the pixel value of each pixel in images to be recognized The content that covering is needed in images to be recognized to be identified.
Wherein, obtaining the mode of images to be recognized has a lot, and the present invention is not limited this.Such as available marking pen instrument It is the color in the range of presetted pixel value by the context marker of overlay content needed for paper document, and is obtained by the mode such as take pictures The image of the paper document is taken, and then gets images to be recognized, and for example, highlight text etc. can be passed through in an electronic document The background for the content that instrument to cover shown with the color in the range of presetted pixel value, then by screenshotss or is taken pictures Etc. the image that mode obtains the electronic document, and then images to be recognized is got, for another example, can will be original by image processing tool The background for needing overlay content in image is arranged to color in the range of presetted pixel value, and preserves the image after processing, and then Get images to be recognized.
Step 120, determine to whether there is pixel of the pixel value in the range of presetted pixel value in images to be recognized, if depositing Step 130 is then being performed, if it is not, then performing step 150.
After obtaining images to be recognized, the pixel value of each pixel in images to be recognized can be obtained, and confirm each pixel Pixel value whether in the range of presetted pixel value, if it is confirmed that pixel value in images to be recognized be present in presetted pixel value scope Interior pixel, then images to be recognized is further processed, if it is confirmed that pixel value is not present in images to be recognized pre- If the pixel in pixel value range, then terminate the processing to images to be recognized.
Wherein, it is every kind of such as RGB color because the parameter that color is represented in different color spaces is different Color can be represented by R (Red, red), G (Green, green) and three parameters of B (Blue, blue), every kind of for hsv color space Color can be by H (Hue, tone), S (Saturation, saturation degree) and three parameters expressions of V (Value, lightness), therefore, this reality Applying the pixel value described in example can be made up of tri- parameters of R, G and B, can also be made up of tri- parameters of H, S and V, the present invention This is not limited.
Exemplary, if pixel value is made up of tri- parameters of H, S and V, each pixel of images to be recognized can be obtained first Tri- parameter values of R, G and B of point, then according to the transformational relation between RGB color and hsv color space, obtain each Tri- parameter values of H, S and V of pixel, and then get the pixel value of each pixel.
Preferably, before images to be recognized is obtained, also settable presetted pixel value scope, if pixel value is by R, G and B Three parameter compositions, then the preset range of tri- parameters of R, G and B can be set, if pixel value is by tri- parameter groups of H, S and V respectively Into can then set the preset ranges of tri- parameters of H, S and V respectively.Then after the pixel value of each pixel is obtained, determine respectively Whether parameters value is corresponding to each parameter in preset range in pixel value.
Step 130, at least one closed area for confirming pixel composition.
Preferably, pixel value in confirming images to be recognized be present after the pixel in the range of presetted pixel value, confirming At least one closed area being made up of these pixels.
Wherein, the mode present invention of at least one closed area for confirming pixel composition is not limited this.
Exemplary, using the upper left corner end points of image as the origin of coordinates, horizontal direction is transverse axis, and vertical direction is built for the longitudinal axis Vertical rectangular coordinate system, confirming the mode of at least one closed area of pixel composition can be:Traveled through successively since origin every The all pixels point of a line, and the pixel that currently travels through is confirmed whether in the range of presetted pixel value, if so, then confirming current Whether the pixel value of pixel is in presetted pixel value scope in predeterminable area around the pixel of traversal, when confirming a certain pixel In presetted pixel value scope, then the pixel currently traveled through and the pixel are preserved into same list, if confirming default The pixel value of pixel in region then preserves the pixel currently traveled through to new row not in the range of presetted pixel value Table, if the pixel value for the pixel for confirming currently to travel through is not in presetted pixel value scope, traversal to next pixel, until will All pixels point in images to be recognized all travels through.Thus, in the i.e. corresponding closed area of the pixel in a list Pixel.
Wherein, predeterminable area can be set according to actual conditions.If the pixel value of the pixel (m, n) currently traveled through In the range of presetted pixel value, then it can confirm by top left co-ordinate (m-2, n-2), upper right angular coordinate (m, n-2), lower-left angular coordinate The picture of pixel in the rectangular area of (m-2, n) and bottom right angular coordinate (m, n) composition except the pixel (m, n) currently traveled through outside Whether element value is in the range of presetted pixel value.
Fig. 2 is a kind of schematic diagram for images to be recognized that the present embodiment provides.The corresponding pixel of a grid in Fig. 2 Point, wherein, the grid with oblique line represents pixel of the pixel value in the range of presetted pixel value.Then closed by above-mentioned confirmation The method in region, three closed areas, respectively pixel (0,0), (1,0), (2,0), (3,0), (0,1), (1,1) can be confirmed (2,1) composition closed area, pixel (9,0), (10,0), (11,0), (12,0), (9,1), (10,1), (11,1) and (12,1) closed area of composition and the closed area of pixel (6,5), (7,5) and (6,6) composition.
Step 140, generated in covering position corresponding to closed area and show pre-set color mask.
After confirming closed area, generated in covering position corresponding to closed area and show pre-set color mask, so as to Automatically and accurately the content of designated area is covered.
Exemplary, the determination method of covering position corresponding to closed area can be:According to each pixel in closed area Coordinate determine transverse axis minimum value, transverse axis maximum, longitudinal axis minimum value and the longitudinal axis maximum of the closed area, and according to the envelope Transverse axis minimum value, transverse axis maximum, longitudinal axis minimum value and the longitudinal axis maximum of closed region determine rectangle corresponding to the closed area Region, the rectangular area is defined as covering position corresponding to the closed area.
Exemplary, the pre-set color of mask can be black, red or yellow.
Fig. 3 is the schematic diagram for the generation pre-set color mask that the present embodiment provides.Determined in the images to be recognized shown in Fig. 2 Behind closed area, then will transverse axis minimum value, transverse axis maximum, longitudinal axis minimum value, the longitudinal axis as corresponding to each closed area it is maximum The rectangular area that value determines is defined as covering position corresponding to the closed area, and generates and show default on the rectangular area Color mask, the schematic diagram after pre-set color mask is generated as shown in figure 3, wherein, pre-set color is represented with black region in Fig. 3 Mask.
Thus, when user need to be to the content of covering grasp situation check when, the present embodiment provide scheme can from It is dynamic that the content of designated area is covered exactly, images to be recognized is automatically become into a electronics gap-filling questions, so as to more preferable Ground helps user to check the grasp situation for being capped content.
The processing of step 150, end to the images to be recognized.
The present embodiment whether there is pixel of the pixel value in the range of presetted pixel value by determining in images to be recognized; If in the presence of at least one closed area of confirmation pixel composition;Generate and show in covering position corresponding to closed area Pre-set color mask, solve the aid for being used for blocking in the prior art and tend not to kiss with the required position dimension blocked The problem of closing, and then can not being covered exactly to the required content blocked, realize automatically and accurately in designated area Appearance is covered, and is easy to user to be checked for oneself the grasp situation for being capped content.
Embodiment two
Fig. 4 is a kind of flow chart of the method for image procossing that the embodiment of the present invention two provides.The present embodiment is above-mentioned Further optimize on the basis of embodiment.The method that the present embodiment provides specifically comprises the following steps:
Step 210, obtain images to be recognized.
Step 220, determine to whether there is pixel of the pixel value in the range of presetted pixel value in images to be recognized, if depositing Step 230 is then being performed, otherwise, is performing step 290.
Step 230, at least one closed area for confirming pixel composition.
Step 240, generated in covering position corresponding to closed area and show pre-set color mask.
Preferably, generated in covering position corresponding to closed area and show that pre-set color mask comprises the following steps:
A closed area in step 241, at least one closed area of acquisition is as target closed area.
Step 242, judge whether the number of pixel in target closed area is not less than the first predetermined threshold value, if so, holding Row step 243, if it is not, performing step 247.
Preferably, after obtaining a target closed area, first confiring that the number of the pixel in target closed area is It is no to be not less than the first predetermined threshold value, if so, then target closed area is further processed, otherwise, terminate to close target The processing in region, and then the closed area that pixel number is very few in closed area is filtered out by the first predetermined threshold value, to avoid The region overlay that mistake need not will cover, improve the accuracy of covering.
Exemplary, the first predetermined threshold value can be 3,6 or 10.
Step 243, the transverse axis minimum value for determining according to the coordinate of each pixel in target closed area target closed area, Transverse axis maximum, longitudinal axis minimum value and longitudinal axis maximum.
It is step 244, maximum according to the transverse axis minimum value of target closed area, transverse axis maximum, longitudinal axis minimum value and the longitudinal axis Value determines rectangular area corresponding to target closed area.
After confirming that the number of pixel in target closed area is not less than the first predetermined threshold value, according in target closed area The coordinate of each pixel can determine that transverse axis minimum value a, transverse axis maximum b, longitudinal axis minimum value c and the longitudinal axis of target closed area most Big value d, and then according to the transverse axis minimum value a of target closed area, transverse axis maximum b, longitudinal axis minimum value c and longitudinal axis maximum d Determine rectangular area corresponding to target closed area.It is (a, c) such as by top left co-ordinate, upper right angular coordinate is (b, c), the lower left corner The rectangular area that coordinate is (a, d) and bottom right angular coordinate is (b, d) is defined as rectangular area corresponding to target closed area.
Step 245, the ratio for confirming the number of pixel in the number of pixel and rectangular area in target closed area More than the second predetermined threshold value, if so, step 246 is performed, if it is not, performing step 247.
Step 246, rectangular area is defined as to covering position corresponding to target closed area.
After determining rectangular area corresponding to target closed area, the number of pixel in target closed area is further confirmed that Whether it is more than the second predetermined threshold value with the ratio of the number of pixel in the rectangular area, if so, then determining the rectangular area For covering position corresponding to target closed area, otherwise, terminate the processing to target closed area.
Step 247, judge whether to complete the processing to whole closed areas, if so, step 248 is performed, if it is not, performing step Rapid 241.
Step 248, generated in rectangular area and show pre-set color mask.
After determining covering position corresponding to closed area, it is being defined as the rectangular area of covering position corresponding to closed area Generate and show pre-set color mask, thus, the content of designated area is covered.
Fig. 5 is a kind of schematic diagram for images to be recognized that the present embodiment provides.The corresponding pixel of a grid in Fig. 5 Point, the grid with oblique line represent pixel of the pixel value in the range of presetted pixel value.Wrapped in Fig. 5 with the closed area of confirmation Exemplified by including four closed areas, four closed areas be respectively by pixel (0,0), (1,0), (2,0), (3,0), (0,1), First closed area of (1,1) and (2,1) composition, by pixel (12,2), (13,3), (14,4) and (15,5) form second Closed area, by pixel (6,5), (7,5) and (6,6) composition the 3rd closed area and by pixel (2,10), (3, 10), the 4th closed area of (4,10), (2,11) and (3,11) composition.So that the first predetermined threshold value is 4 as an example, the second default threshold It is worth for that exemplified by 75%, then can determine that the number of pixel in the first closed area is 7 successively, not less than in 4, first closed areas The ratio of the number of pixel in the number of pixel rectangular area corresponding with the first closed area is 87.5%, is more than 75%, then rectangular area corresponding to the first closed area is defined as covering position corresponding to the first closed area;Second closing The number of pixel is 4 in region, and the number not less than pixel in 4, second closed areas is corresponding with the second closed area The ratio of the number of pixel in rectangular area is 25%, no more than 75%;The number of pixel is in 3rd closed area 3, less than 4;The number of pixel in 4th closed area be 5, not less than pixel in 4, the 4th closed areas number with The ratio of the 4th pixel number corresponding to closed area in rectangular area is 83.3%, more than 75%, by the 4th enclosed area Rectangular area corresponding to domain is defined as covering position corresponding to the 4th closed area.
Fig. 6 is a kind of schematic diagram for generation pre-set color mask that the present embodiment provides.As shown in fig. 6, confirm to cover in Fig. 5 On the basis of lid position, generated corresponding to rectangular area corresponding to the first closed area and the 4th closed area on rectangular area And show pre-set color mask, pre-set color mask is represented with black region in Fig. 6.
The operation of the first preset touch whether occurs in step 250, detection pre-set color mask, if so, then performing step 260。
Step 260, hide pre-set color mask and show original contents corresponding to covering position.
It is default tactile when first occurs in detection pre-set color mask after being generated in rectangular area and showing pre-set color mask During control operation, hide the pre-set color mask and simultaneously show original contents corresponding to covering position, in order to which user is to capped Content is checked.
Exemplary, the first predetermined registration operation can be single-click operation, double click operation or slide.
The operation of the second preset touch whether occurs in step 270, detection pre-set color mask, if so, then performing step 280。
Step 280, display pre-set color mask.
The operation of the second preset touch occurs in hiding pre-set color mask when detecting, then can show that the pre-set color covers Layer, is again covered content.
Wherein, the second preset touch operation can be identical with the first preset touch operation, can also be operated with the first preset touch It is different.
Exemplary, the second predetermined registration operation can be single-click operation, double click operation or slide.
Fig. 7 is a kind of schematic diagram for generation pre-set color mask that the present embodiment provides.As shown in fig. 7, when to the first envelope When pre-set color mask corresponding to closed region on rectangular area carries out the operation of the first preset touch, the pre-set color mask is hidden And original contents corresponding to the rectangular area are shown, when presetting mask progress the second preset touch operation to this again, then again Secondary display pre-set color mask, as shown in Figure 6.
Exemplary, can be corresponding in ejection when detecting that the 3rd preset touch, which occurs, in pre-set color mask operates Editing area, so that user inputs the information related to being capped content, such as when capped content is the knowledge point that need to be recited, User can input corresponding contents in editing area, and then user can be by the content inputted in editing area and capped content Contrasted, be easy to user to check the grasp situation to capped content.
Wherein, the operation of the 3rd preset touch is different from the operation of the first preset touch and the operation of the second preset touch.
The processing of step 290, end to image to be displayed.
The present embodiment is by confirming that the number of pixel in closed area is not less than the first predetermined threshold value;Confirm closed area The ratio of the number of pixel is more than the second predetermined threshold value in the number of interior pixel and rectangular area, realizes to closed area Filtering, avoid by mistake being covered the content in images to be recognized, improve the accuracy of covering;If by detecting pre-set color The operation of the first preset touch occurs in mask, then hides pre-set color mask and shows original contents corresponding to covering position, just Capped content is checked in user;By hiding pre-set color mask and show corresponding to covering position it is original in After appearance, the operation of the second preset touch occurs in pre-set color mask if detecting, shows pre-set color mask, realizes again Content is covered.
Embodiment three
Fig. 8 is a kind of structured flowchart of the device for image procossing that the embodiment of the present invention three provides.The device is applied to need Situation about being covered to the display content of image, the device can by software and or hardware realize.The device includes:Pixel Point confirms that module 310, closed area confirm module 320 and mask generation module 330, wherein,
Pixel confirms module 310, for determining in images to be recognized with the presence or absence of pixel value in presetted pixel value scope Interior pixel;
Closed area confirms module 320, for if it is determined that pixel value in images to be recognized be present in presetted pixel value scope Interior pixel, then confirm at least one closed area of the pixel composition;
Mask generation module 330, for generating and showing that pre-set color covers in covering position corresponding to the closed area Layer.
In such scheme, optionally, the mask generation module, including:
Closed area determining unit, for determining the closed area according to the coordinate of each pixel in the closed area Transverse axis minimum value, transverse axis maximum, longitudinal axis minimum value and longitudinal axis maximum;
Rectangular area determining unit, it is minimum for the transverse axis minimum value according to the closed area, transverse axis maximum, the longitudinal axis Value and longitudinal axis maximum determine rectangular area corresponding to the closed area;
Mask generation unit, for the rectangular area to be defined as into covering position corresponding to the closed area, in institute Rectangular area is stated to generate and show pre-set color mask.
In such scheme, optionally, mask generation module also includes:
Number confirmation unit, for confirming that the number of pixel in the closed area is not less than the first predetermined threshold value.
In such scheme, optionally, the mask generation module also includes:
Ratio confirmation unit, for confirming the number of pixel and pixel in the rectangular area in the closed area The ratio of number be more than the second predetermined threshold value.
In such scheme, optionally, in addition to:
Mask hidden module, it is hidden if the operation of the first preset touch occurs in the pre-set color mask for detecting Hide the pre-set color mask and show original contents corresponding to the covering position.
In such scheme, optionally, in addition to:
Mask display module, if the operation of the second preset touch occurs in the pre-set color mask for detecting, show Show the pre-set color mask.
The present embodiment confirms module by pixel, for determining in images to be recognized with the presence or absence of pixel value in default picture Pixel in the range of element value;Closed area confirms module, if in the presence of at least one closing of confirmation pixel composition Region;Mask generation module, for being generated in covering position corresponding to closed area and showing pre-set color mask, solve existing There is the aid for being used for blocking in technology to tend not to coincide with the required position dimension blocked, and then can not be exactly to institute The problem of content that need to be blocked is covered, realization automatically and accurately cover to the content of designated area, are easy to user couple The grasp situation for being capped content is checked in oneself.
Example IV
Fig. 9 is the structural representation for a kind of electronic equipment that the embodiment of the present invention four provides, as shown in figure 4, the electronics is set It is standby to include processor 410, memory 420, input unit 430 and output device 440;The quantity of processor 410 in electronic equipment Can be one or more, in Fig. 4 by taking a processor 410 as an example;It is processor 410, memory 420 in electronic equipment, defeated Enter device 430 to connect by bus or other modes with output device 440, in Fig. 4 exemplified by connecting by bus.
Memory 420 is used as a kind of computer-readable recording medium, and journey is can perform available for storage software program, computer Sequence and module, programmed instruction/module is (for example, image as corresponding to the method for the image procossing in any embodiment of the present invention Pixel in the device of processing confirms that module 310, closed area confirm module 320 and mask generation module 330).Processor 410 are stored in software program, instruction and module in memory 420 by operation, so as to perform the various work(of electronic equipment It can apply and data processing, that is, realize the above-mentioned operation for electronic equipment.
Memory 420 can mainly include storing program area and storage data field, wherein, storing program area can store operation system Application program needed for system, at least one function;Storage data field can store uses created data according to electronic equipment Deng.In addition, memory 420 can include high-speed random access memory, nonvolatile memory can also be included, for example, at least One disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 420 can Further comprise that relative to the remotely located memory of processor 410, these remote memories network connection to electricity can be passed through Sub- equipment.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 430 can be used for receiving input image information, and produce and the user of electronic equipment setting and work( Relevant key signals input can be controlled.Output device 440 may include the display devices such as display screen.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium for including computer executable instructions, is stored thereon with calculating Machine program, the program realizes the image procossing that any embodiment of the present invention provides method when being executed by processor.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to realized by hardware, but the former is more in many cases Good embodiment.Based on such understanding, what technical scheme substantially contributed to prior art in other words Part can be embodied in the form of software product, and the computer software product can be stored in computer-readable recording medium In, floppy disk, read-only storage (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are causing a computer to set Standby (can be personal computer, server, or network equipment etc.) performs the method described in any embodiment of the present invention.
It is worth noting that, in the embodiment of the device of above-mentioned image procossing, included unit and module are Divided according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized;Separately Outside, the specific name of each functional unit is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
Said apparatus can perform the method that any embodiment of the present invention is provided, and possesses and performs the corresponding function of the above method Module and beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to any embodiment of the present invention is provided Method.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (14)

  1. A kind of 1. method of image procossing, it is characterised in that including:
    Determine to whether there is pixel of the pixel value in the range of presetted pixel value in images to be recognized;
    If in the presence of confirming at least one closed area of pixel composition;
    Generated in covering position corresponding to the closed area and show pre-set color mask.
  2. 2. according to the method for claim 1, it is characterised in that described to be generated in covering position corresponding to the closed area And pre-set color mask is shown, including:
    According to the coordinate of each pixel in the closed area determine the transverse axis minimum value of the closed area, transverse axis maximum, Longitudinal axis minimum value and longitudinal axis maximum;
    The envelope is determined according to the transverse axis minimum value of the closed area, transverse axis maximum, longitudinal axis minimum value and longitudinal axis maximum Rectangular area corresponding to closed region;
    The rectangular area is defined as covering position corresponding to the closed area, generates and shows pre- in the rectangular area If color mask.
  3. 3. according to the method for claim 2, it is characterised in that the coordinate according to each pixel in the closed area Before the transverse axis minimum value, transverse axis maximum, longitudinal axis minimum value and the longitudinal axis maximum that determine the closed area, in addition to:
    Confirm that the number of pixel in the closed area is not less than the first predetermined threshold value.
  4. 4. according to the method for claim 3, it is characterised in that described that the rectangular area is defined as the closed area Corresponding covering position, before being generated in the rectangular area and showing pre-set color mask, in addition to:
    Confirm that the ratio of the number of pixel in the number of pixel and the rectangular area in the closed area is more than second Predetermined threshold value.
  5. 5. according to the method for claim 1, it is characterised in that described to be generated in covering position corresponding to the closed area And after showing pre-set color mask, in addition to:
    The operation of the first preset touch occurs in the pre-set color mask if detecting, hides the pre-set color mask and shows Show original contents corresponding to the covering position.
  6. 6. according to the method for claim 5, it is characterised in that described hide is covered described in the pre-set color mask and display After the original contents of lid position correspondence, in addition to:
    The operation of the second preset touch occurs in the pre-set color mask if detecting, shows the pre-set color mask.
  7. A kind of 7. device of image procossing, it is characterised in that including:
    Pixel confirms module, for determining to whether there is pixel of the pixel value in the range of presetted pixel value in images to be recognized Point;
    Closed area confirms module, for if it is determined that pixel of the pixel value in the range of presetted pixel value in images to be recognized be present Point, then confirm at least one closed area of the pixel composition;
    Mask generation module, for being generated in covering position corresponding to the closed area and showing pre-set color mask.
  8. 8. side's device according to claim 7, it is characterised in that the mask generation module, including:
    Closed area determining unit, for determining the horizontal stroke of the closed area according to the coordinate of each pixel in the closed area Axle minimum value, transverse axis maximum, longitudinal axis minimum value and longitudinal axis maximum;
    Rectangular area determining unit, for the transverse axis minimum value according to the closed area, transverse axis maximum, longitudinal axis minimum value and Longitudinal axis maximum determines rectangular area corresponding to the closed area;
    Mask generation unit, for the rectangular area to be defined as into covering position corresponding to the closed area, in the square Shape Area generation simultaneously shows pre-set color mask.
  9. 9. device according to claim 8, it is characterised in that the mask generation module also includes:
    Number confirmation unit, for confirming that the number of pixel in the closed area is not less than first predetermined threshold value.
  10. 10. device according to claim 9, it is characterised in that the mask generation module also includes:
    Ratio confirmation unit, for confirming the number of pixel and of pixel in the rectangular area in the closed area Several ratios is more than the second predetermined threshold value.
  11. 11. device according to claim 7, it is characterised in that also include:
    Mask hidden module, if the operation of the first preset touch occurs in the pre-set color mask for detecting, hide institute State pre-set color mask and show original contents corresponding to the covering position.
  12. 12. according to the method for claim 11, it is characterised in that also include:
    Mask display module, if the operation of the second preset touch occurs in the pre-set color mask for detecting, show institute State pre-set color mask.
  13. 13. a kind of electronic equipment, it is characterised in that the equipment includes:
    One or more processors;
    Memory, for storing one or more programs;
    When one or more of programs are by one or more of computing devices so that one or more of processors are real The now method of the image procossing as described in claim 1-6 is any.
  14. 14. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The method that the image procossing as described in claim 1-6 is any is realized during execution.
CN201710555993.2A 2017-07-10 2017-07-10 Image processing method, device, equipment and storage medium Active CN107358228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710555993.2A CN107358228B (en) 2017-07-10 2017-07-10 Image processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710555993.2A CN107358228B (en) 2017-07-10 2017-07-10 Image processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107358228A true CN107358228A (en) 2017-11-17
CN107358228B CN107358228B (en) 2021-06-15

Family

ID=60292736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710555993.2A Active CN107358228B (en) 2017-07-10 2017-07-10 Image processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107358228B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109872275A (en) * 2017-12-04 2019-06-11 北京金山安全软件有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111161374A (en) * 2019-12-17 2020-05-15 稿定(厦门)科技有限公司 Method and device for circle point drawing
CN112036810A (en) * 2020-08-11 2020-12-04 广州番禺电缆集团有限公司 Cable monitoring method, device, equipment and storage medium based on intelligent equipment
CN112651056A (en) * 2019-10-11 2021-04-13 中国信息通信研究院 Anti-screenshot display method, device and system
US20210200232A1 (en) * 2019-12-26 2021-07-01 Polaris3D Co., Ltd. Method of generating scan path of autonomous mobile robot and computing device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004265214A (en) * 2003-03-03 2004-09-24 Seiko Epson Corp Charging managing device and method and program used for the same
CN103973891A (en) * 2014-05-09 2014-08-06 平安付智能技术有限公司 Data security processing method for software interface
CN104077792A (en) * 2014-07-04 2014-10-01 厦门美图网科技有限公司 Image processing method with cartoon effect
WO2016179310A1 (en) * 2015-05-04 2016-11-10 Smith Andrew Dennis Computer-assisted tumor response assessment and evaluation of the vascular tumor burden
CN106372126A (en) * 2016-08-24 2017-02-01 广东小天才科技有限公司 Method and device for searching questions by photographing
US9679187B2 (en) * 2015-06-17 2017-06-13 Apple Inc. Finger biometric sensor assembly including direct bonding interface and related methods

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004265214A (en) * 2003-03-03 2004-09-24 Seiko Epson Corp Charging managing device and method and program used for the same
CN103973891A (en) * 2014-05-09 2014-08-06 平安付智能技术有限公司 Data security processing method for software interface
CN104077792A (en) * 2014-07-04 2014-10-01 厦门美图网科技有限公司 Image processing method with cartoon effect
WO2016179310A1 (en) * 2015-05-04 2016-11-10 Smith Andrew Dennis Computer-assisted tumor response assessment and evaluation of the vascular tumor burden
US9679187B2 (en) * 2015-06-17 2017-06-13 Apple Inc. Finger biometric sensor assembly including direct bonding interface and related methods
CN106372126A (en) * 2016-08-24 2017-02-01 广东小天才科技有限公司 Method and device for searching questions by photographing

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109872275A (en) * 2017-12-04 2019-06-11 北京金山安全软件有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN109872275B (en) * 2017-12-04 2023-05-23 北京金山安全软件有限公司 Image processing method, device, electronic equipment and computer readable storage medium
CN112651056A (en) * 2019-10-11 2021-04-13 中国信息通信研究院 Anti-screenshot display method, device and system
CN112651056B (en) * 2019-10-11 2024-05-31 中国信息通信研究院 Anti-screenshot display method, device and system
CN111161374A (en) * 2019-12-17 2020-05-15 稿定(厦门)科技有限公司 Method and device for circle point drawing
US20210200232A1 (en) * 2019-12-26 2021-07-01 Polaris3D Co., Ltd. Method of generating scan path of autonomous mobile robot and computing device
CN112036810A (en) * 2020-08-11 2020-12-04 广州番禺电缆集团有限公司 Cable monitoring method, device, equipment and storage medium based on intelligent equipment

Also Published As

Publication number Publication date
CN107358228B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN107358228A (en) Image processing method, device, equipment and storage medium
JP6250901B2 (en) A robot system in which a CNC and a robot controller are connected via a communication network
US20040207600A1 (en) System and method for transforming an ordinary computer monitor into a touch screen
CN107918549B (en) Marking method and device for three-dimensional expansion drawing, computer equipment and storage medium
JP2005267480A (en) Recognition object segmentation device and method
CN107481227A (en) Teaching blackboard writing image processing method and device, intelligent teaching equipment and storage medium
JPH06309426A (en) Method for inputting threshold
CN115393837A (en) Image detection method, apparatus and storage medium
US20120169759A1 (en) Method and apparatus for creating a live artistic sketch of an image
CN107527369B (en) Image correction method, device, equipment and computer readable storage medium
CN113935091A (en) Hole marking method and device, computer equipment and readable storage medium
CN110874170A (en) Image area correction method, image segmentation method and device
Luhmann Learning photogrammetry with interactive software tool PhoX
CN112950443A (en) Adaptive privacy protection method, system, device and medium based on image sticker
CN109766530B (en) Method and device for generating chart frame, storage medium and electronic equipment
JP7154786B2 (en) Image processing device, image processing method and program
US20160110895A1 (en) Generating a computer executable chart visualization by annotating a static image
CN114860072A (en) Gesture recognition interaction equipment based on monocular camera
CN114782692A (en) House model repairing method and device, electronic equipment and readable storage medium
US6430583B1 (en) Scenario editing apparatus for performing editing of multimedia using figure feature points
CN112465931B (en) Image text erasing method, related equipment and readable storage medium
JP2000029198A (en) Color proof device, image processor and recording medium
CN112329384A (en) Method, device and equipment for realizing character shadow effect and storage medium
CN112036268A (en) Component identification method and related device
CN115496807B (en) Meter pointer positioning method and device, computer 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
GR01 Patent grant
GR01 Patent grant