CN108109168A - Region area measuring method, device, computer equipment and storage medium - Google Patents

Region area measuring method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108109168A
CN108109168A CN201810136976.XA CN201810136976A CN108109168A CN 108109168 A CN108109168 A CN 108109168A CN 201810136976 A CN201810136976 A CN 201810136976A CN 108109168 A CN108109168 A CN 108109168A
Authority
CN
China
Prior art keywords
region
area
measured
sectional drawing
color
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
CN201810136976.XA
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.)
CENTURY DRAGON INFORMATION NETWORK Co Ltd
Original Assignee
CENTURY DRAGON INFORMATION NETWORK 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 CENTURY DRAGON INFORMATION NETWORK Co Ltd filed Critical CENTURY DRAGON INFORMATION NETWORK Co Ltd
Priority to CN201810136976.XA priority Critical patent/CN108109168A/en
Publication of CN108109168A publication Critical patent/CN108109168A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

This application involves a kind of region area measuring method, device, computer equipment and storage mediums.The described method includes:With pre-set color fill rule in each region to be measured identified Fill Color, obtain corresponding to each color region in each region to be measured, and obtain the colored pixels point quantity of each color region;It obtains covering the screenshot area of each color region by sectional drawing, and obtains the sectional drawing area of screenshot area and sectional drawing pixel quantity;Obtain the ratio that each colored pixels point quantity accounts for sectional drawing pixel quantity respectively;By ratio and the product of sectional drawing area, confirm as the area in region to be measured, the area in the region to be measured of any shape can be fast and accurately measured using the present invention, also the area in each region to be measured in region combination how to be measured can be measured simultaneously, the present invention can be applicable in various actual measurement situations, improve the measurement efficiency in measured zone area.

Description

Region area measuring method, device, computer equipment and storage medium
Technical field
This application involves technical field of image processing, more particularly to a kind of region area measuring method, device, computer Equipment and storage medium.
Background technology
In many technical fields, for example, technical field of image processing, house ornamentation design field etc., can all be related to figure As the calculating of region area, but most of calculated using traditional mathematical way, and traditional mathematical method often needs Substantial amounts of parameter, such as apex coordinate, intersecting point coordinate, boundary function etc. are wanted, can just calculate region area.
During realization, inventor has found that at least there are the following problems in traditional technology:It is needing to calculate complexity not During the region of rule, conventional method is since the data volume of processing is big, calculating process very complicated, causes in measured zone area Process inefficient.
The content of the invention
Based on this, it is necessary to which for above-mentioned technical problem, providing a kind of can quickly measure irregular area area Region area measuring method method, apparatus, computer equipment and storage medium.
A kind of region area measuring method, comprises the following steps:
With pre-set color fill rule in each region to be measured identified Fill Color, obtain correspond to each area to be measured Each color region in domain, and obtain the colored pixels point quantity of each color region;
It obtains covering the screenshot area of each color region by sectional drawing, and obtains the sectional drawing area and sectional drawing of screenshot area Pixel quantity;
Colored pixels point quantity is accounted for into the ratio of sectional drawing pixel quantity and the product of sectional drawing area, confirms as area to be measured The area in domain.
In one of the embodiments, face is being filled in each region to be measured identified with pre-set color fill rule Color, obtain correspond to each region to be measured each color region the step of in, including:
With it is different and without repeat each region to be measured of color filling, obtain each color region.
In one of the embodiments, the step of obtaining the sectional drawing area of screenshot area and sectional drawing pixel quantity is wrapped It includes:
The height and width of screenshot area are read, using the product of height and the width as sectional drawing area;
The resolution ratio of screenshot area is read, and according to resolution ratio and sectional drawing area, obtains sectional drawing pixel quantity.
In one of the embodiments, face is being filled in each region to be measured identified with pre-set color fill rule Color, obtain correspond to each region to be measured each color region the step of before, further include step:
Obtain the view image of object to be measured;
The outer profile of object to be measured in view image is identified, using the region that outer profile surrounds as region to be measured.
In one of the embodiments, view image is included with any one or any combination in hypograph:It is to be measured The front view picture of object, the left view image of object to be measured, the right view image of object to be measured and object to be measured Top view image.
A kind of region area surveys device, including:
Color filling module, for pre-set color fill rule in each region to be measured identified Fill Color, It obtains corresponding to each color region in each region to be measured, and obtains the colored pixels point quantity of each color region;
Screen capture module obtains covering the screenshot area of each color region for passing through sectional drawing, and obtains cutting for screenshot area The area of pictural surface and sectional drawing pixel quantity;
Area acquisition module, for colored pixels point quantity to be accounted for the ratio of sectional drawing pixel quantity and multiplying for sectional drawing area Product confirms as the area in region to be measured.
In one of the embodiments, image collection module and image processing module are further included;
Image collection module, for obtaining the view image of object to be measured;
Image processing module, for identifying the outer profile of object to be measured in view image, by the region in outer profile besieged city As region to be measured.
In one of the embodiments, identification module includes sectional drawing area acquiring unit, sectional drawing pixel quantity obtains list Member;
Sectional drawing area acquiring unit, for reading the height of screenshot area and width, using the product of height and the width as Sectional drawing area;
Sectional drawing pixel quantity acquiring unit, for reading the resolution ratio of screenshot area, and according to resolution ratio and sectional drawing face Product, obtains sectional drawing pixel quantity.
A kind of computer equipment, including memory and processor, the memory storage has computer program, the processing Device realizes following steps when performing the computer program:
With pre-set color fill rule in each region to be measured identified Fill Color, obtain correspond to each area to be measured Each color region in domain, and obtain the colored pixels point quantity of each color region;
It obtains covering the screenshot area of each color region by sectional drawing, and obtains the sectional drawing area and sectional drawing of screenshot area Pixel quantity;
Colored pixels point quantity is accounted for into the ratio of sectional drawing pixel quantity and the product of sectional drawing area, confirms as area to be measured The area in domain.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Following steps are realized during row:
With pre-set color fill rule in each region to be measured identified Fill Color, obtain correspond to each area to be measured Each color region in domain, and obtain the colored pixels point quantity of each color region;
It obtains covering the screenshot area of each color region by sectional drawing, and obtains the sectional drawing area and sectional drawing of screenshot area Pixel quantity;
Colored pixels point quantity is accounted for into the ratio of sectional drawing pixel quantity and the product of sectional drawing area, confirms as area to be measured The area in domain.
A technical solution in above-mentioned technical proposal has the following advantages that and advantageous effect:
With pre-set color fill rule in each region to be measured identified Fill Color, obtain correspond to each area to be measured Each color region in domain, and the colored pixels point quantity of each color region is obtained, it then obtains covering each color area by sectional drawing The screenshot area in domain obtains the sectional drawing area of screenshot area and sectional drawing pixel quantity, and calculating colored pixels point quantity, which accounts for, cuts The ratio of figure pixel quantity obtains the area in region to be measured according to ratio and sectional drawing area, can be quick using the present invention The accurately area in the region to be measured of measurement any shape can also be measured each to be measured in region combination how to be measured simultaneously The area in region is measured, the present invention can be applicable in various actual measurement situations, improve the measurement efficiency in measured zone area.
Description of the drawings
Fig. 1 is the flow diagram of region area measuring method of the present invention in one embodiment;
Fig. 2 is the flow diagram of region area measuring method of the present invention in another embodiment;
Fig. 3 is the flow signal for obtaining sectional drawing area and sectional drawing pixel quantity step in one embodiment in the present invention Figure;
Fig. 4 is the flow diagram for obtaining region step to be measured in one embodiment in the present invention;
Fig. 5 is the structure diagram of region area measuring device of the present invention in one embodiment;
Fig. 6 is the structure diagram of region area measuring device of the present invention in another embodiment;
Fig. 7 is the structure diagram of identification module in the present invention in one embodiment;
Fig. 8 is the cut-away view of one embodiment Computer equipment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the object, technical solution and advantage for making the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
In one embodiment, as shown in Figure 1, providing a kind of region area measuring method, comprise the following steps:
Step S110, with pre-set color fill rule in each region to be measured identified Fill Color, corresponded to Each color region in each region to be measured, and obtain the colored pixels point quantity of each color region.
Wherein, pre-set color fill rule can need to set according to actual measurement, classified according to fill order, preset face Color fill rule can be to be sequentially filled each region to be measured from top to bottom, be sequentially filled each region to be measured from bottom to up, from a left side To each region to be measured of right filling, fill from right to left each region to be measured, from outside to inside fill each region to be measured or from In to each region to be measured of outer filling;According to Fill Color status classification, pre-set color fill rule can be to select a kind of color Fill each region to be measured of each region to be measured, the different color filling of selection, adjacent area filling different colours to be measured.
Below with specifically illustrating, according to Fill Color situation, pre-set color fill rule classification situation:
When the region to be measured arranged from left to right successively including four, the first color filling situation selects a kind of face Color, such as green, fill four regions to be measured;Second of color filling situation, four kinds of different colours of selection, such as red, Yellow, blueness, black fill four regions to be measured respectively;The third color filling situation selects two kinds of different colours, example Such as purple, grey, from left to right, first and the 3rd filling purple, second and the 4th is filled grey, wherein, it can be Color is arbitrarily selected in the range of color chart 0~255.
Step S120, obtains covering the screenshot area of each color region by sectional drawing, and obtains the sectional drawing face of screenshot area Product and sectional drawing pixel quantity.
Wherein, color region is to be obtained in region to be measured after Fill Color.Region to be measured is arbitrary for a shape The region that surrounds of closed figure.Optionally, the colored pixels point quantity for obtaining each color region can have by scan mode Body, can scan region to be measured or scanning display screen, obtain for display color region colored pixels point quantity or The colored pixels point quantity step for obtaining each color region is placed on the sectional drawing for obtaining covering each color region by sectional drawing by person Region, and after obtaining the sectional drawing area of screenshot area and sectional drawing pixel quantity step, used by scanning screenshot area Colored pixels point quantity in display color region.
Screenshot area can be the region of arbitrary shape, be inside by each region overlay to be measured as long as above-mentioned zone meets It can.And in sectional drawing, you can while identify the sectional drawing area of screenshot area and sectional drawing pixel quantity, and store sectional drawing area and Sectional drawing pixel quantity, for calculating area to be measured.
Colored pixels point quantity is accounted for the ratio of sectional drawing pixel quantity and the product of sectional drawing area by step S130, is confirmed For the area in region to be measured.
Specifically, in the applicable one kind of the present invention, a kind of color is filled in each region to be measured so that each The color filled in region to be measured is different, obtains corresponding to each color region in each region to be measured, is obtained by scanning For showing the colored pixels of each color region point quantity, obtain covering the screenshot area of each color region by sectional drawing, and obtain The sectional drawing area of screenshot area and sectional drawing pixel quantity are taken, each colored pixels point quantity is calculated and accounts for sectional drawing pixel number respectively The ratio of amount, each ratio are multiplied by sectional drawing area, you can obtain the corresponding area in each region to be measured.
Each embodiment of region area measuring method of the present invention, fills a kind of color in region to be measured, and interception is included and treated The screenshot area of measured zone, while the sectional drawing area of screenshot area and sectional drawing pixel quantity are obtained, scanning obtains to show Show the colored pixels point quantity in region to be measured, obtain the ratio that colored pixels point quantity accounts for sectional drawing pixel quantity, ratio multiplies It is the area that can obtain region to be measured with sectional drawing area, avoids traditional technology measured zone area, especially region of disorder Cumbersome processing procedure during the region area in domain so that the present invention can quickly measure the area of arbitrary region.
Optionally, as shown in Fig. 2, the elder generation of the color filling step and sectional drawing step in region area measuring method of the present invention It order and is not fixed afterwards, optionally, method and step of the invention is alternatively:
Step S210, obtains covering the screenshot area of each color region by sectional drawing, and obtains the sectional drawing face of screenshot area Product and sectional drawing pixel quantity;
Step S220, with pre-set color fill rule in each region to be measured identified Fill Color, corresponded to Each color region in each region to be measured, and obtain the colored pixels point quantity of each color region;
Colored pixels point quantity is accounted for the ratio of sectional drawing pixel quantity and the product of sectional drawing area by step S230, is confirmed For the area in region to be measured.
It should be noted that involved in the embodiment to data processing with identical in above-described embodiment, no Same to be, specific steps precedence is different.
Specifically, when region to be measured is a region, choose any one color filling region to be measured and obtain Color region obtains corresponding to the color region in region to be measured, and interception includes the screenshot area in region to be measured, while identifies simultaneously The sectional drawing area of screenshot area and sectional drawing pixel quantity are recorded, scanning screenshot area obtains the color for display color region Pixel quantity calculates the ratio that colored pixels point quantity accounts for sectional drawing pixel quantity, and ratio is multiplied by sectional drawing area to obtain To the area in region to be measured.
When region to be measured is multiple separated regions, and measures the individual area in each region to be measured respectively, interception The screenshot area in each region to be measured is included, while identifies and records the sectional drawing area of screenshot area and sectional drawing pixel quantity, It chooses arbitrary different color and fills each region to be measured respectively so that the color of each area filling to be measured differs, and obtains To each color region in each region to be measured of correspondence, color is corresponding in each color region for showing for the acquisition of scanning screenshot area Colored pixels point quantity calculates the ratio that each colored pixels point quantity accounts for sectional drawing pixel quantity, each ratio is multiplied by sectional drawing face Product can obtain the area in each region to be measured.
When region to be measured is multiple overlapped regions, and each region to be measured is measured respectively, area is individually presented When (not including the area that part is covered by other regions), interception includes the screenshot area in each region to be measured, identifies simultaneously And the sectional drawing area of screenshot area and sectional drawing pixel quantity are recorded, it chooses arbitrary different color and fills each area to be measured respectively Domain so that the color of each area filling to be measured differs, and obtains corresponding to each color region in each region to be measured, and scanning is cut Graph region obtains to show the colored pixels point quantity that part is presented in each color region, calculates each colored pixels point quantity and accounts for and cuts Each ratio is multiplied by the presentation area that sectional drawing area can obtain each region to be measured by the ratio of figure pixel quantity.
Each embodiment of region area measuring method of the present invention, method and step can flexibly change, applicable various region areas Measure scene, meet the needs of actual area area so that the present invention it is easy to operate flexibly, but also the present invention possess it is very strong Practicability and applicability.
In one embodiment, with pre-set color fill rule in each region to be measured identified Fill Color, In the step of obtaining corresponding to each color region in each region to be measured, including:
With it is different and without repeat each region to be measured of color filling, obtain each color region.
It should be noted that pre-set color fill rule can be formulated according to actual areas case to be measured.Region to be measured For the region surrounded by the closed image of an arbitrary shape.When region to be measured is one, pre-set color fill rule A kind of color filling region to be measured is as randomly selected in the range of color chart 0~255, obtains color region;When To be multiple, and when measuring the gross area in all regions to be measured, pre-set color fill rule is in color pair in region to be measured The to be measured region all according to a kind of color filling is randomly selected in the range of table 0~255, obtains each color region;When to be measured When measuring region to be multiple, and measuring the individual area in each region to be measured respectively, pre-set color fill rule is in color pair According to random different color in the range of table 0~255, with different and without each region to be measured of color filling repeated, obtain To each color region;When region to be measured is multiple, and measures the wherein common area in certain several region to be measured, preset Color filling rule is a kind of color filling to be randomly selected in the range of color chart 0~255 above-mentioned certain is several to be measured Region is measured, and ensures the color of other area fillings to be measured and certain above-mentioned several region difference to be measured, is obtained each Color region.
It will be illustrated by way of example below:When region to be measured is multiple, and each individual face in region to be measured is measured respectively During product, (different colors is randomly selected in the range of color chart 0~255, with mutually not according to pre-set color fill rule It is identical and without repeat each region to be measured of color filling, obtain each color region) Fill Color in region to be measured, when need When measuring some region to be measured, interception includes the screenshot area of the measured zone, obtains the sectional drawing area of screenshot area With sectional drawing pixel quantity, scanning obtains to show the colored pixels point quantity of the corresponding color region in the region to be measured, The colored pixels point quantity for calculating the corresponding color region in the region to be measured accounts for the ratio of sectional drawing pixel quantity, according to ratio The area in the region to be measured is obtained with sectional drawing area, equally when needing to calculate the area in other regions to be measured, according to upper Step is stated to be operated.
Each embodiment of region area measuring method of the present invention, disclosure satisfy that various regions area and multizone combination The requirement of the measurement of area, it is applied widely, the work efficiency that relevant technical field is measured with region area can be improved.
In one embodiment, as shown in figure 3, obtaining the sectional drawing area of screenshot area and the step of sectional drawing pixel quantity Suddenly include:
Step S310 reads the height and width of screenshot area, using the product of height and the width as sectional drawing area;
Step S320 reads the resolution ratio of screenshot area, and according to resolution ratio and sectional drawing area, obtains sectional drawing pixel number Amount.
Specifically, intercept rectangle screenshot area, the height and width of screenshot area can be obtained in sectional drawing, highly with The product of width is the sectional drawing area of screenshot area.Resolution ratio represents the pixel quantity that unit area includes, screenshot area Sectional drawing area be multiplied by the sectional drawing pixel quantity that resolution ratio can obtain screenshot area.
Each embodiment of region area measuring method of the present invention, obtains the screenshot area of screenshot area and sectional drawing pixel quantity During data processing it is simple, it is easy to operate, during so as to improve region area measuring method measured zone area of the present invention Measurement rate.
In one embodiment, as shown in figure 4, with pre-set color fill rule in each region to be measured identified Fill Color, obtain correspond to each region to be measured each color region the step of before, further include step:
Step S410 obtains the view image of object to be measured;
Step S420 identifies the outer profile of object to be measured in view image, using the region in outer profile besieged city as to be measured Measure region.
Further, view image is included with any one or any combination in hypograph:Object to be measured is faced Figure image, the left view image of object to be measured, the top view figure of the right view image of object to be measured and object to be measured Picture.
Specifically, not only measurement by the area of the arbitrary region of computer equipment drafting, may further be used to survey the present invention Measure the area of plane in various actual objects.When needing to measure the area of plane in actual object, regarding for actual object is gathered Figure image is come out the contours extract of objects in images by image processing techniques, you can obtain region to be measured, then choose Any one color filling region to be measured, obtains color region, and the color picture for display color region is obtained by scanning Vegetarian refreshments quantity, interception include the screenshot area in region to be measured, while identify and record the sectional drawing area and sectional drawing of screenshot area Pixel quantity calculates the ratio that colored pixels point quantity accounts for sectional drawing pixel quantity, and ratio is multiplied by sectional drawing area to obtain To the area in region to be measured, you can measure the area of plane of some plane in actual object.
Pass through the view image obtained from different perspectives, you can observed the flat of the plane of actual object with different view Face area.View image is included with any one or any combination in hypograph:It is the front view picture of object to be measured, to be measured Measure left view image, the right view image of object to be measured and the top view image of object to be measured of object, wherein view The visual angle of Image Acquisition can be combined according to the demand actually measured.
Each embodiment of region area measuring method of the present invention, available for the area of plane for measuring various actual objects so that The present invention has a wide range of application, for example, dress design field of being in, more carrys out about complexity very much to design of material figure, at this point, can profit It is used for the area of plane of the various fitment material for family such as sheet material measurement, ceramic tile with the present invention.
It should be understood that although each step in the flow chart of Fig. 1-4 is shown successively according to the instruction of arrow, These steps are not that the inevitable order according to arrow instruction performs successively.Unless it expressly states otherwise herein, these steps Execution there is no stringent orders to limit, these steps can perform in other order.Moreover, at least one in Fig. 1-4 Part steps can include multiple sub-steps, and either these sub-steps of multiple stages or stage are not necessarily in synchronization Completion is performed, but can be performed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can either the sub-step of other steps or at least a portion in stage be in turn or alternately with other steps It performs.
In one embodiment, as shown in figure 5, providing a kind of region area measuring device, including:
Color filling module 510, for filling face in each region to be measured identified with pre-set color fill rule Color, obtains corresponding to each color region in each region to be measured, and obtains the colored pixels point quantity of each color region;
Screen capture module 520 obtains covering the screenshot area of each color region for passing through sectional drawing, and obtains screenshot area Sectional drawing area and sectional drawing pixel quantity;
Area acquisition module 530, for colored pixels point quantity to be accounted for the ratio of sectional drawing pixel quantity and sectional drawing area Product, confirm as the area in region to be measured.
In one embodiment, as shown in fig. 6, further including image collection module and image processing module;Wherein,
Image collection module 610, for obtaining the view image of object to be measured;
Image processing module 620, for identifying the outer profile of object to be measured in view image, by the area in outer profile besieged city Domain is as region to be measured.
In one of the embodiments, as shown in fig. 7, identification module includes sectional drawing area acquiring unit, sectional drawing pixel Number obtainment unit;
For reading the height of screenshot area and width, the product of height and the width is made for sectional drawing area acquiring unit 710 For sectional drawing area;
Sectional drawing pixel quantity acquiring unit 720, for sectional drawing pixel quantity acquiring unit, for reading screenshot area Resolution ratio, and according to resolution ratio and sectional drawing area, obtain sectional drawing pixel quantity.
Specific restriction on region area measuring device may refer to the limit above for region area measuring method Fixed, details are not described herein.Modules in above-mentioned zone area measuring device can fully or partially through software, hardware and its It combines to realize.Above-mentioned each module can be embedded in or in the form of hardware independently of in the processor in computer equipment, can also It is stored in a software form in the memory in computer equipment, in order to which processor calls execution more than modules corresponding Operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 8.The computer equipment include by system bus connection processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for offer calculating and control ability.The memory bag of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Storehouse.The built-in storage provides environment for the operating system in non-volatile memory medium and the operation of computer program.The calculating The database of machine equipment is used to store the data such as sectional drawing area, sectional drawing pixel quantity.The network interface of the computer equipment is used It is communicated in external terminal by network connection.To realize that a kind of region area is surveyed when the computer program is executed by processor Amount method.
It will be understood by those skilled in the art that the structure shown in Fig. 8, only part knot relevant with application scheme The block diagram of structure does not form the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It can include either combining some components than more or fewer components shown in figure or be arranged with different components.
In one embodiment, a kind of computer equipment is provided, including memory and processor, is stored in memory Computer program, the processor realize following steps when performing computer program:
With pre-set color fill rule in each region to be measured identified Fill Color, obtain correspond to each area to be measured Each color region in domain, and obtain the colored pixels point quantity of each color region;
It obtains covering the screenshot area of each color region by sectional drawing, and obtains the sectional drawing area and sectional drawing of screenshot area Pixel quantity;
Colored pixels point quantity is accounted for into the ratio of sectional drawing pixel quantity and the product of sectional drawing area, confirms as area to be measured The area in domain.
In one embodiment, following steps are also realized when processor performs computer program:
The height and width of screenshot area are read, using the product of height and the width as sectional drawing area;
The resolution ratio of screenshot area is read, and according to resolution ratio and sectional drawing area, obtains sectional drawing pixel quantity.
In one embodiment, following steps are also realized when processor performs computer program:
Obtain the view image of object to be measured;
The outer profile of object to be measured in view image is identified, using the region that outer profile surrounds as region to be measured.
In one embodiment, a kind of computer readable storage medium is provided, is stored thereon with computer program, is calculated Machine program realizes following steps when being executed by processor:
With pre-set color fill rule in each region to be measured identified Fill Color, obtain correspond to each area to be measured Each color region in domain, and obtain the colored pixels point quantity of each color region;
It obtains covering the screenshot area of each color region by sectional drawing, and obtains the sectional drawing area and sectional drawing of screenshot area Pixel quantity;
Colored pixels point quantity is accounted for into the ratio of sectional drawing pixel quantity and the product of sectional drawing area, confirms as area to be measured The area in domain.
In one embodiment, following steps are also realized when computer program is executed by processor:
The height and width of screenshot area are read, using the product of height and the width as sectional drawing area;
The resolution ratio of screenshot area is read, and according to resolution ratio and sectional drawing area, obtains sectional drawing pixel quantity.
In one embodiment, following steps are also realized when computer program is executed by processor:
Obtain the view image of object to be measured;
The outer profile of object to be measured in view image is identified, using the region that outer profile surrounds as region to be measured.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, Any reference to memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield is all considered to be the scope of this specification record.
Embodiment described above only expresses the several embodiments of the application, and description is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that come for those of ordinary skill in the art It says, on the premise of the application design is not departed from, various modifications and improvements can be made, these belong to the protection of the application Scope.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

1. a kind of region area measuring method, which is characterized in that comprise the following steps:
With pre-set color fill rule in each region to be measured identified Fill Color, obtain correspond to each area to be measured Each color region in domain, and obtain the colored pixels point quantity of each color region;
Obtain covering the screenshot area of each color region by sectional drawing, and obtain the screenshot area sectional drawing area and Sectional drawing pixel quantity;
The colored pixels point quantity is accounted for the ratio of the sectional drawing pixel quantity and the product of the sectional drawing area, is confirmed as The area in the region to be measured.
2. region area measuring method according to claim 1, which is characterized in that identified with pre-set color fill rule Fill Color in each region to be measured gone out, obtain correspond to each region to be measured each color region the step of in, including:
With it is different and without repeat each region to be measured of color filling, obtain each color region.
3. region area measuring method according to claim 1, which is characterized in that obtain the sectional drawing area of the screenshot area And the step of sectional drawing pixel quantity, includes:
The height and width of the screenshot area are read, using the product of the height and the width as the sectional drawing area;
The resolution ratio of the screenshot area is read, and according to the resolution ratio and the sectional drawing area, obtains the sectional drawing pixel Point quantity.
4. according to region area measuring method described in claims 1 to 3 any one, which is characterized in that filled out with pre-set color Rule Fill Color in each region to be measured identified is filled, obtains corresponding to each color region in each region to be measured Before step, step is further included:
Obtain the view image of object to be measured;
Identify the outer profile of object to be measured described in the view image, the region that the outer profile is surrounded is treated as described in Measured zone.
5. region area measuring method according to claim 4, which is characterized in that the view image is included in hypograph Any one or any combination:The front view picture of the object to be measured, the left view image of the object to be measured, institute State the right view image of object to be measured and the top view image of the object to be measured.
6. a kind of region area surveys device, which is characterized in that including:
Color filling module, for pre-set color fill rule in each region to be measured identified Fill Color, obtain Each color region in corresponding each region to be measured, and obtain the colored pixels point quantity of each color region;
Screen capture module obtains covering the screenshot area of each color region for passing through sectional drawing, and obtains the screenshot area Sectional drawing area and sectional drawing pixel quantity;
Area acquisition module, for the colored pixels point quantity to be accounted for the ratio of the sectional drawing pixel quantity and the sectional drawing The product of area confirms as the area in the region to be measured.
7. region area according to claim 7 surveys device, which is characterized in that further includes image collection module, Yi Jitu As processing module;
Described image acquisition module, for obtaining the view image of object to be measured;
Described image processing module, for identifying the outer profile of object to be measured described in the view image, by the foreign steamer The region in exterior feature besieged city is as the region to be measured.
8. the region area according to claim 6 or 7 surveys device, which is characterized in that the identification module includes sectional drawing face Product acquiring unit, sectional drawing pixel quantity acquiring unit;
The sectional drawing area acquiring unit, for reading the height of the screenshot area and width, by the height and the width The product of degree is as the sectional drawing area;
The sectional drawing pixel quantity acquiring unit, for reading the resolution ratio of the screenshot area, and according to the resolution ratio With the sectional drawing area, the sectional drawing pixel quantity is obtained.
9. a kind of computer equipment, including memory and processor, the memory storage has computer program, and feature exists In when the processor performs the computer program any one of realization claim 1 to 5 the step of method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method any one of claim 1 to 5 is realized when being executed by processor.
CN201810136976.XA 2018-02-09 2018-02-09 Region area measuring method, device, computer equipment and storage medium Pending CN108109168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810136976.XA CN108109168A (en) 2018-02-09 2018-02-09 Region area measuring method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810136976.XA CN108109168A (en) 2018-02-09 2018-02-09 Region area measuring method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN108109168A true CN108109168A (en) 2018-06-01

Family

ID=62205478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810136976.XA Pending CN108109168A (en) 2018-02-09 2018-02-09 Region area measuring method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108109168A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109738437A (en) * 2018-12-29 2019-05-10 西安西电电力电容器有限责任公司 A kind of metallic film capacitor self-healing point measuring device and method
CN110361385A (en) * 2019-07-08 2019-10-22 武汉科技大学 A kind of method and system of crystal grain data acquisition
CN110702041A (en) * 2019-09-24 2020-01-17 湖南省城乡建设勘测院 Method and device for measuring area of rural land homestead and storage medium
CN110717939A (en) * 2019-09-10 2020-01-21 广东华远国土工程有限公司 Rapid assessment method for land area
CN110956604A (en) * 2018-09-27 2020-04-03 上海蔚来汽车有限公司 Method and system for counting effective bonding area of bonding glue
CN111538658A (en) * 2020-04-20 2020-08-14 卓望数码技术(深圳)有限公司 Automatic testing method for interface loading duration
CN112229349A (en) * 2020-09-23 2021-01-15 中科云谷科技有限公司 Method and device for determining working area of agricultural machine and agricultural machine
CN112734687A (en) * 2020-10-21 2021-04-30 重庆中国三峡博物馆 Cultural relic disease graph drawing method and device, storage medium and electronic equipment
CN112936553A (en) * 2021-03-30 2021-06-11 清远市简一陶瓷有限公司 Method for calculating material proportion of each color of multi-design whole-body ceramic tile
CN114046748A (en) * 2021-09-27 2022-02-15 广州超音速自动化科技股份有限公司 Particle detection method, device and system for lithium battery diaphragm
US20220215570A1 (en) * 2021-01-04 2022-07-07 Kabushiki Kaisha Toshiba Progress determination system, progress determination method, and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289823A (en) * 2011-06-14 2011-12-21 汉王科技股份有限公司 Method and device for obtaining area of graph on display device
CN107230228A (en) * 2017-06-06 2017-10-03 深圳天珑无线科技有限公司 Graphics area computational methods, terminal and computer-readable recording medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289823A (en) * 2011-06-14 2011-12-21 汉王科技股份有限公司 Method and device for obtaining area of graph on display device
CN107230228A (en) * 2017-06-06 2017-10-03 深圳天珑无线科技有限公司 Graphics area computational methods, terminal and computer-readable recording medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110956604B (en) * 2018-09-27 2022-12-16 上海蔚来汽车有限公司 Method and system for counting effective bonding area of bonding glue
CN110956604A (en) * 2018-09-27 2020-04-03 上海蔚来汽车有限公司 Method and system for counting effective bonding area of bonding glue
CN109738437B (en) * 2018-12-29 2021-07-06 西安西电电力电容器有限责任公司 Self-healing point measuring device and method for metalized film capacitor
CN109738437A (en) * 2018-12-29 2019-05-10 西安西电电力电容器有限责任公司 A kind of metallic film capacitor self-healing point measuring device and method
CN110361385A (en) * 2019-07-08 2019-10-22 武汉科技大学 A kind of method and system of crystal grain data acquisition
CN110717939A (en) * 2019-09-10 2020-01-21 广东华远国土工程有限公司 Rapid assessment method for land area
CN110702041A (en) * 2019-09-24 2020-01-17 湖南省城乡建设勘测院 Method and device for measuring area of rural land homestead and storage medium
CN111538658A (en) * 2020-04-20 2020-08-14 卓望数码技术(深圳)有限公司 Automatic testing method for interface loading duration
CN112229349A (en) * 2020-09-23 2021-01-15 中科云谷科技有限公司 Method and device for determining working area of agricultural machine and agricultural machine
CN112229349B (en) * 2020-09-23 2022-05-06 中科云谷科技有限公司 Method and device for determining working area of agricultural machine and agricultural machine
CN112734687A (en) * 2020-10-21 2021-04-30 重庆中国三峡博物馆 Cultural relic disease graph drawing method and device, storage medium and electronic equipment
US20220215570A1 (en) * 2021-01-04 2022-07-07 Kabushiki Kaisha Toshiba Progress determination system, progress determination method, and storage medium
CN112936553A (en) * 2021-03-30 2021-06-11 清远市简一陶瓷有限公司 Method for calculating material proportion of each color of multi-design whole-body ceramic tile
CN112936553B (en) * 2021-03-30 2022-08-02 清远市简一陶瓷有限公司 Method for calculating material proportion of each color of multi-design whole-body ceramic tile
CN114046748A (en) * 2021-09-27 2022-02-15 广州超音速自动化科技股份有限公司 Particle detection method, device and system for lithium battery diaphragm

Similar Documents

Publication Publication Date Title
CN108109168A (en) Region area measuring method, device, computer equipment and storage medium
US9773302B2 (en) Three-dimensional object model tagging
US9841277B2 (en) Graphical feedback during 3D scanning operations for obtaining optimal scan resolution
DE112018002314T5 (en) METHOD AND DEVICE FOR DETECTING AN OBJECT STATUS
CN106598846B (en) Application interface method of testing and device
DE102017001010A1 (en) Image measuring device and program
JP6750183B2 (en) Image distance calculating device, image distance calculating method, and image distance calculating program
CN104636726A (en) Method and device for identifying image colors and terminal
CN109766915A (en) Test method, device, computer equipment and storage medium based on image recognition
CN103828345A (en) Apparatus, method, and program for image processing, storage medium, and image pickup apparatus
JPWO2019150799A1 (en) Repair length determination method and repair length determination device
CN112950789A (en) Method, device and storage medium for displaying object through virtual augmented reality
JP3483108B2 (en) Multispectral image processing apparatus and recording medium storing program for the same
JP2024040370A (en) Information processing device, information processing method, and program
JP6291189B2 (en) Method for controlling the resolution of a hyperspectral image
JP7154786B2 (en) Image processing device, image processing method and program
US20220366673A1 (en) Point cloud data processing apparatus, point cloud data processing method, and program
CA2674104A1 (en) Method and graphical user interface for modifying depth maps
EP2975850A1 (en) Method for correcting motion estimation between at least two frames of a video sequence, corresponding device, computer program and non-transitory computer-readable medium
US7330589B2 (en) Image partitioning apparatus and method
Eichinski et al. Heat maps for aggregating bioacoustic annotations
CN110288662A (en) Display detection method and system
US11756281B1 (en) Systems and methods for splat filling a three-dimensional image using semi-measured data
US11562464B1 (en) Systems and methods for image postprocessing via viewport demosaicing
CN116320346B (en) Method for converting RGB color data of image into multidimensional data for comprehensive analysis

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180601