CN108230320A - Number of staircases statistical method and system - Google Patents

Number of staircases statistical method and system Download PDF

Info

Publication number
CN108230320A
CN108230320A CN201810050658.1A CN201810050658A CN108230320A CN 108230320 A CN108230320 A CN 108230320A CN 201810050658 A CN201810050658 A CN 201810050658A CN 108230320 A CN108230320 A CN 108230320A
Authority
CN
China
Prior art keywords
numbers
picture
steps
staircases
unit
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
CN201810050658.1A
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.)
Shanghai Aiyouwei Software Development Co Ltd
Original Assignee
Shanghai Aiyouwei Software Development 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 Shanghai Aiyouwei Software Development Co Ltd filed Critical Shanghai Aiyouwei Software Development Co Ltd
Priority to CN201810050658.1A priority Critical patent/CN108230320A/en
Publication of CN108230320A publication Critical patent/CN108230320A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • 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/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30242Counting objects in image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Geometry (AREA)
  • Image Processing (AREA)

Abstract

This application provides a kind of number of staircases statistical method and systems, are related to intelligent terminal technical field, and this method includes:It obtains comprising the picture including bench information;Picture is divided into several units according to bench information;Bench information in each unit is handled, it is different according to the brightness of step horizontal plane and vertical plane, count the numbers of steps of each unit;According to the numbers of steps of each unit, numbers of steps in entire picture is calculated.Compared to the prior art, the number of staircases statistical method that the application provides, several units will be divided into comprising the picture including bench information, the bench information in each unit is handled by image analysis technology again, it is i.e. different according to the brightness of step horizontal plane and vertical plane, count the numbers of steps of each unit;And then numbers of steps is counted, there is the advantages of easy to operate, statistical efficiency is high.

Description

Number of staircases statistical method and system
Technical field
This application involves field of terminal technology, more particularly, to a kind of number of staircases statistical method and system.
Background technology
In some cases, it is desirable to count the quantity of step, in the prior art and there is no efficient methods.If with There are statistical demands at family, are only capable of measuring by setting an example by personally taking part, from the top for climbing to stair of the bottom of stair step by step, often climb one Step all counts, and the sum that stair are counted after having climbed is exactly the total step number of stair.Alternatively, the total height of tape measure stair is first used, so Measure the height of one layer of step again afterwards, with the total height of stair divided by the height of one layer of step, the result calculated is exactly stair Step sum.
Above-mentioned measurement method, is respectively provided with complicated for operation, and difficulty is very big, and easily error the shortcomings that, therefore, in the prior art Lack a kind of method that can quickly, efficiently measure numbers of steps.
Invention content
The application's is designed to provide a kind of number of staircases statistical method and system, by image analysis, rapidly and efficiently Measurement numbers of steps.
To achieve the above object, the number of staircases statistical method that the application provides, including:
It obtains comprising the picture including bench information;
Picture is divided into several units according to bench information;
Bench information in each unit is handled, statistics different according to the brightness of step horizontal plane and vertical plane The numbers of steps of each unit;
According to the numbers of steps of each unit, numbers of steps in entire picture is calculated.
In the above-mentioned technical solutions, obtaining the method comprising the picture including bench information is:
Video camera application is transferred, shows view-finder,
The view direction of the view-finder provides prompting of taking pictures perpendicular to step, and when step is entirely located in view-finder;
After obtaining photographing instruction, action of taking pictures is performed, obtains picture.
In the above-mentioned technical solutions, it is further included before picture is divided into several units according to bench information:
Picture pre-processes, the removal other factors unrelated with bench information.
In the above-mentioned technical solutions, it further includes:
Ashing processing is carried out to picture;
Identify the pixel value variation of step horizontal plane and vertical plane;
When changing value reaches preset value, record is primary, records number, that is, numbers of steps.
In the above-mentioned technical solutions, it further includes:
Changed according to pixel value and picture is divided into alternatively distributed area pellucida and dark space;
Area pellucida is substituted for conspicuous color;
Identify that area pellucida quantity is numbers of steps.
In the above-mentioned technical solutions, the edge pattern of step is obtained, edge pattern is resolved into several ledgements and vertical line Item;Count the quantity of ledgement or vertical moulding quantity.
In the above-mentioned technical solutions, the quantity of ledgement and vertical moulding quantity are counted while, using the average value of the two as Numbers of steps.
In the above-mentioned technical solutions, according to the size relationship of adjacent step image, infer the list with identical numbers of steps The relationship of elemental area divides different units according to cellar area relationship;Numbers of steps is identical in each unit.
In the above-mentioned technical solutions, it obtains in picture in a first direction, the changing rule of step width;It is advised according to variation Rule, cuts picture, to divide different units at different pitches in a first direction;Numbers of steps is identical in each unit.
In addition, the application also provides a kind of number of staircases statistical system, including:
One memory is configured as storage data and instruction;
One processor to communicate with memory foundation, wherein, when performing the instruction in memory, the processor quilt It is configured to:
It obtains comprising the picture including bench information;
Picture is divided into several units according to bench information;
Bench information in each unit is handled, statistics different according to the brightness of step horizontal plane and vertical plane The numbers of steps of each unit;
According to the numbers of steps of each unit, numbers of steps in entire picture is calculated.
Compared to the number of staircases statistical method that the prior art, the application provide, the picture including bench information will be included It is divided into several units, then the bench information in each unit is handled by image analysis technology, i.e., according to step level The brightness of face and vertical plane is different, counts the numbers of steps of each unit;And then count numbers of steps.With easy to operate, system Count the advantages of efficient.
The additional aspect and advantage of the application will become practice that is apparent or passing through the application in following description section Recognize.
Description of the drawings
It, below will be to specific in order to illustrate more clearly of the application specific embodiment or technical solution of the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in being described below Attached drawing is some embodiments of the application, for those of ordinary skill in the art, before not making the creative labor It puts, can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the illustrative diagram of the Environment System provided according to some embodiments of the present application.
Fig. 2 is the exemplary cell schematic diagram of electronic functionalities configuration shown in FIG. 1.
Fig. 3 is the exemplary process diagram of number of staircases statistical method provided according to some embodiments of the present application.
Fig. 4 is the exemplary stream for including the picture including bench information according to the acquisition that some embodiments of the present application provide Cheng Tu.
Fig. 5 is the exemplary flow of the numbers of steps of each unit of statistics provided according to some embodiments of the present application Figure.
Fig. 6 is that the schematic diagram for including the picture including bench information is obtained according to some embodiments of the present application.
Fig. 7 is the schematic diagram after Fig. 6 ashing processing;
Fig. 8 is the schematic diagram after simplifying to the bench information in Fig. 7.
Specific embodiment
It is described as having the right the application defined in requirement and its equivalent convenient for Integrated Understanding below with reference to attached drawing Various embodiments.These embodiments include various specific details in order to understand, but these are considered only as illustratively.Cause This, it will be appreciated by those skilled in the art that carrying out variations and modifications without departing from this to various embodiments described here The scope and spirit of application.In addition, briefly and to be explicitly described the application, the application will be omitted to known function and structure Description.
The term and phrase used in description below and claims is not limited to literal meaning, and be merely can Understand and consistently understand the application.Therefore, for those skilled in the art, it will be understood that provide the various implementations to the application It is the purpose rather than limitation appended claims and its application of Equivalent definitions illustrated that the description of example, which is only,.
Below in conjunction with the attached drawing in the application some embodiments, the technical solution in the embodiment of the present application is carried out clear Chu is fully described by, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments. Based on the embodiment in the application, what those of ordinary skill in the art were obtained without making creative work is all Other embodiment shall fall in the protection scope of this application.
It should be noted that the term used in the embodiment of the present application is the mesh for being only in description specific embodiment , and it is not intended to be limiting the application." one " of the embodiment of the present application and singulative used in the attached claims, "one", " one kind ", " described " and "the" be also intended to including most forms, unless context clearly shows that other meanings.Also It should be appreciated that term "and/or" used herein refer to and list items purposes comprising one or more mutually bindings it is any or All possible combinations.Express " first ", " second ", " first " and " second " is for modifying respective element without examining Worry sequence or importance, are used only for distinguishing a kind of element and another element, without limiting respective element.
Terminal according to the application some embodiments can be electronic equipment, the electronic equipment can include smart mobile phone, PC (PC, such as tablet computer, desktop computer, notebook, net book, palm PC PDA), mobile phone, e-book Reader, portable media player (PMP), audio/video player (MP3/MP4), video camera, virtual reality device (VR) and the combination of one or more of wearable device etc..According to some embodiments of the present application, the wearable device Including type of attachment (such as wrist-watch, ring, bracelet, eyes or wear-type device (HMD)), integrated type (such as electronics clothes Dress), decorated type (such as pad skin, tatoo or built in electronic device) etc. one or more of combination.The application's In some embodiments, the electronic equipment can be flexible, be not limited to above equipment or can be in above-mentioned various equipment One or more of combinations.In this application, term " user " may indicate that using the people of electronic equipment or using electronic equipment Equipment (such as artificial intelligence electronic equipment).
The embodiment of the present application provides a kind of number of staircases statistical method.For the ease of understanding the embodiment of the present application, below The embodiment of the present application is described in detail in refer to the attached drawing.
Fig. 1 is the illustrative diagram of Environment System 100 provided according to some embodiments of the present application.Such as Fig. 1 Shown, Environment System 100 can include electronic equipment 110, network 120 and server 130 etc..Electronic equipment 110 can be with Including bus 111, processor 112, memory 113, input/output module 114, display 115, communication module 116 and physics Key 117 etc..In some embodiments of the present application, electronic equipment 110 can be omitted one or more elements or can be into one Step includes one or more other elements.
Bus 111 can include circuit.The circuit can be with one or more element (examples in interconnection electronics 110 Such as, bus 111, processor 112, memory 113, input/output module 114, display 115 and communication module 116).It is described Circuit can also realize communication (for example, obtaining and/or sending number between one or more elements in electronic equipment 110 According to).
Processor 112 can include one or more coprocessors (Co-processor), application processor (AP, Application Processor) and communication processor (Communication Processor).As an example, processor 112 can perform the control and/or data processing with one or more elements of electronic equipment 110.
Memory 113 can store data.The data can include other with one or more of electronic equipment 110 The relevant instruction of element or data.For example, the data can include the initial data of 112 before processing of processor, intermediate data And/or treated data.Specifically, memory 113 can store photo, image, iris information etc..Memory 113 can To include impermanent memory memory and/or permanent memory memory.
According to some embodiments of the present application, memory 113 can store software and/or program.Described program can wrap Include kernel, middleware, Application Programming Interface (API, Application Programming Interface) and/or using journey Sequence.At least part of the kernel, the middleware or the Application Programming Interface can include operating system (OS, Operating System).As an example, the kernel can control or manage to perform other programs (for example, intermediate Part, Application Programming Interface and application program) in realize operation or function system resource (for example, bus 111, processor 112nd, memory 113 etc.).In addition, the kernel can provide interface.The interface can by the middleware, it is described should One or more elements of electronic equipment 110 are accessed with programming interface or the application program to control or manage system resource.
The middleware can be as the middle layer of data transmission.The data transmission can allow Application Programming Interface or Application program is with the kernel communication exchanging data.As an example, the middleware can be handled from the application program One or more task requests of acquisition.For example, the middleware can distribute electronic equipment to one or more application program The priority of 110 system resource (for example, bus 111, processor 112, memory 113 etc.) and processing it is one or Multiple tasks are asked.The Application Programming Interface can be that the application program is used to control from the kernel or the middleware The interface of function is provided.The Application Programming Interface can also include one or more interfaces or function.The function can be used In security control, communication control, document control, window control, text control, image procossing, signal processing etc..
Input/output module 114 can send what is inputted from user or external equipment to the other elements of electronic equipment 110 Instruction or data.Input/output module 114 can also be defeated by the instruction or data that are obtained from the other elements of electronic equipment 110 Go out to user or external equipment.
Display 115 can show content.The content can to user show various types (for example, text, image, Video, icon and/or symbol).Display 115 can include liquid crystal display (LCD, Liquid Crystal Display), Light emitting diode (LED, Light-Emitting Diode) display, Organic Light Emitting Diode (OLED, Organic Light Emitting Diode) display, Micro Electro Mechanical System (MEMS, Micro Electro Mechanical Systems) display Device or electric paper display etc. or several combinations.Display 115 can include touch screen.In some embodiments, display 115 can show virtual key.The touch screen can obtain the input of the virtual key.Display 115 can be touched by described It touches screen and obtains input.The input can include touch input, gesture input, action input, close input, electronic pen or user The input of body part.
The communication between equipment can be configured in communication module 116.In some embodiments, network environment 100 can be into one Step includes electronic equipment 140.As an example, the communication between the equipment can include electronic equipment 110 and other equipment (example Such as, server 130 or electronic equipment 140) between communication.For example, communication module 116 can by radio communication or cable modem Letter is connected to network 120, communicates with other equipment (for example, server 130 or electronic equipment 140) realization.
The wireless communication can include microwave communication and/or satellite communication etc..The wireless communication can include honeycomb Communication is (for example, global mobile communication (GSM, Global System for Mobile Communications), CDMA (CDMA, Code Division Multiple Access), 3G (Third Generation) Moblie (3G, The 3rd Generation Telecommunication), forth generation mobile communication (4G), the 5th third-generation mobile communication (5G)), Long Term Evolution (LTE, Long Term Evolution), Long Term Evolution upgrade version (LTE-A, LTE-Advanced), wideband code division multiple access (WCDMA, Wideband Code Division Multiple Access), Universal Mobile Communication System (UMTS, Universal Mobile Telecommunications System), WiMAX (WiBro, Wireless ) etc. or several combinations Broadband.According to some embodiments of the present application, the wireless communication can include wireless local Net (WiFi, Wireless Fidelity), bluetooth, low-power consumption bluetooth (BLE, Bluetooth Low Energy), ZigBee protocol (ZigBee), near-field communication (NFC, Near Field Communication), magnetic safe transmission, radio frequency and body area network (BAN, Body Area Network) etc. or several combinations.According to some embodiments of the present application, the wire communication can include Global Navigation Satellite System (Glonass/GNSS, Global Navigation Satellite System), global positioning system System (GPS, Global Position System), Beidou navigation satellite system or Galileo (European Global Satellite Navigation System) Deng.The wire communication can include universal serial bus (USB, Universal Serial Bus), high-definition media interface (HDMI, High-Definition Multimedia Interface), proposed standard 232 (RS-232, Recommend Standard 232), and/or plain old telephone service (POTS, Plain Old Telephone Service) etc. in one Kind or several combinations.
Secondary or physical bond 117 can be used for user's interaction.Secondary or physical bond 117 can include one or more entity keys.In some realities It applies in example, user can be with the function of self-defined secondary or physical bond 117.
Network 120 can include communication network.The communication network can include computer network (for example, LAN (LAN, Local Area Network) or wide area network (WAN, Wide Area Network)), internet and/or telephone network Deng or several combinations.Network 120 can be to the other equipment in Environment System 100 (for example, electronic equipment 110, clothes Business device 130, electronic equipment 140 etc.) send information.
Server 130 can be by the other equipment in the connection Environment System 100 of network 120 (for example, electronic equipment 110th, electronic equipment 140 etc.).
Electronic equipment 140 can be identical or different with electronic equipment 110 type.According to some embodiments of the present application, The part or all of operation performed in electronic equipment 110 can be in another equipment or multiple equipment (for example, electronic equipment 140 And/or server 130) in perform.In some embodiments, when electronic equipment 110 be automatically or in response to request perform it is a kind of or When multiple functions and/or service, electronic equipment 110 can ask other equipment (for example, electronic equipment 140 and/or server 130) it substitutes and performs function and/or service.In some embodiments, electronic equipment 110 is in addition to function or service is performed, further Perform relative one or more functions.In some embodiments, other equipment is (for example, electronic equipment 140 and/or clothes Business device 130) requested function or other relevant one or more functions can be performed, implementing result can be sent to electricity Sub- equipment 110.Electronic equipment 110 can repeat result or be further processed implementing result, to provide requested function Or service.
It should be noted that the description for Environment System 100 above, it only for convenience of description, can not be this Shen It please be limited within the scope of illustrated embodiment.It is appreciated that for those skilled in the art, the principle based on this system can Arbitrary combination can be carried out to each element or forms subsystem connecting with other elements under the premise of without departing substantially from the principle, To implementing the various modifications and variations of the above method and the progress of systematic difference field in form and details.For example, network environment System 100 may further include database.Suchlike deformation, within the protection domain of the application.
Fig. 2 is the exemplary cell block diagram being configured according to the electronic functionalities that some embodiments of the present application provide.Such as Shown in Fig. 2, processor 112 can include processing module 200, and the processing module 200 can include acquiring unit 210, analysis Unit 220, control unit 230.
According to some embodiments of the present application, acquiring unit 210 can obtain information.Described information can include but unlimited In word, picture, audio, video, action, gesture etc. or several combinations.In some embodiments, acquiring unit 210 can be with Input information is obtained by input/output module 114, the touch screen of display 115 and/or secondary or physical bond 117.
As an example, acquiring unit 210 can obtain monitoring video information, specifically, acquiring unit 210 is by with taking the photograph Video information is obtained as head connection.
According to some embodiments of the present application, analytic unit 220 at least can to information that acquiring unit 210 obtains and The information stored in electronic equipment is analyzed.In some embodiments, analytic unit 220 can to the video information of acquisition into Row analysis, such as whether can analyze wherein in mobile object.In some embodiments, analytic unit 220 also is able to further It is commented according to analysis result carrying out danger in video clip.
According to some embodiments of the present application, control unit 230 can according to the analysis result of analytic unit 220 or The information control electronics that acquiring unit 210 obtains.The control electronics can be performed including control electronics 110 Action.
In some embodiments, control unit 230 grades to different danger according to the analysis result of analytic unit 220 Video clip uses different downloads and storage scheme.
It should be noted that the unit in processing module 200 is described above, it only for convenience of description, can not be this Application is limited within the scope of illustrated embodiment.It is appreciated that for those skilled in the art, the principle based on this system, Arbitrary combination may be carried out to each unit or forms submodule and other units company under the premise of without departing substantially from the principle It connects, various modifications and variations in form and details is carried out to the function of implementing above-mentioned module and unit.For example, electronic equipment 110 may further include sensor etc., and acquiring unit 210 can obtain information by sensor.In another example processing unit 220 may further include division subelement etc..Suchlike deformation, within the protection domain of the application.
Fig. 3 is the exemplary process diagram of number of staircases statistical method provided according to some embodiments of the present application.Such as Fig. 3 Shown, flow 300 can be realized by processing module 200.
In the step 310, it obtains comprising the picture including bench information.
Bench information is the pattern for including step shape.
The method for obtaining picture can be direct shooting or be obtained from local picture library or from internet Middle acquisition.
Specifically, when directly shooting, flow is as shown in Figure 4.Fig. 4 is provided according to some embodiments of the present application Acquisition include the exemplary process diagram of the picture including bench information;Flow 400 can be realized by processing module 200.
In 410, video camera application is transferred, shows view-finder;
In 420, the view direction of the view-finder provides bat perpendicular to step, and when step is entirely located in view-finder According to prompting;
When view direction is perpendicular to step, the horizontal plane of step and the brightness difference of vertical plane are maximum, after ashing processing, Pixel value variation is most apparent, is convenient for numerical statistic.In addition, step is entirely located in view-finder, step edge can be identified, just In carrying out numerical statistic by edge pattern.
In 430, after obtaining photographing instruction, action of taking pictures is performed, obtains picture.
As shown in figure 3, in step 320, picture is divided into several units according to bench information.
In general, the numbers of steps in picture can be very big, otherwise by visually i.e. countable.Therefore, it is transported to improve Efficiency is calculated, picture is divided into several units, only counts the numbers of steps in one of unit, in prediction on such basis in other units Numbers of steps.
Due to there are near big and far smaller phenomenon, if picture is divided into the identical several units of area, the platform in each unit Exponent number amount simultaneously differs.Therefore, in some embodiments, according to the size relationship of adjacent step image, inferring has mutually on the same stage The relationship of the cellar area of exponent number amount divides different units according to cellar area relationship;Make numbers of steps phase in each unit Together.
In some embodiments, it obtains in picture in a first direction, the changing rule of step width;It is advised according to variation Rule, cuts picture, to divide different units at different pitches in a first direction;Make numbers of steps in each unit identical.
In some embodiments, picture can be pre-processed, the removal other factors unrelated with bench information.
As shown in figure 3, in a step 330, handle the bench information in each unit, according to step horizontal plane and The brightness of vertical plane is different, counts the numbers of steps of each unit.
There are significant differences for the brightness of step horizontal plane and vertical plane, and numbers of steps is can determine whether by the variation of light and shade value. Concrete methods of realizing can be the variation of Direct Recognition pixel value, and when changing value reaches preset value, record is primary, records number That is numbers of steps.
Specifically, it can realize in the following way, Fig. 5 is that the statistics provided according to some embodiments of the present application is each The exemplary process diagram of the numbers of steps of unit, flow 500 can be realized by processing module 200.As shown in Figure 5:
In 510, ashing processing is carried out to picture;
In 520, changed according to pixel value and picture is divided into alternatively distributed area pellucida and dark space;
In 530, simplify bench information;
It can be one bar-shaped zone of interception to simplify bench information, the area pellucida and dark space in region it is of same size;It or will Area pellucida is substituted for conspicuous color.
In 540, identification area pellucida quantity is numbers of steps.
Its image processing process sees Fig. 6, Fig. 7 and Fig. 8.
In addition, counting the numbers of steps of each unit, can also be accomplished in the following manner:
The edge pattern of step is obtained, edge pattern is resolved into several ledgements and vertical moulding;Count the number of ledgement Amount or vertical moulding quantity.
When in face of numbers of steps huge picture, in order to further improve accuracy, while the quantity of ledgement is counted With vertical moulding quantity, using the average value of the two as numbers of steps.
As shown in figure 3, in step 340, according to the numbers of steps of each unit, calculate numbers of steps in entire picture.
The number of staircases statistical method that the application provides, will be divided into several units comprising the picture including bench information, then The bench information in each unit is handled by image analysis technology, i.e., according to the brightness of step horizontal plane and vertical plane Difference counts the numbers of steps of each unit;And then count numbers of steps.Compared with prior art, there is easy to operate, statistics The advantages of efficient.
It should be noted that the above embodiments are intended merely as example, the application is not limited to such example, but can To carry out various change.
It should be noted that in the present specification, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
Finally, it is to be noted that, a series of above-mentioned processing are not only included with sequence described here in temporal sequence The processing of execution, and the processing including performing parallel or respectively rather than in chronological order.
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 It is completed by the relevant hardware of computer program instructions, the program can be stored in a computer readable storage medium, The program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) Deng.
Above disclosed is only some preferred embodiments of the application, it is impossible to the right model of the application is limited with this It encloses, one of ordinary skill in the art will appreciate that realizing all or part of flow of above-described embodiment, and will according to the application right Made equivalent variations are sought, still falls within and invents covered range.

Claims (10)

1. a kind of number of staircases statistical method, which is characterized in that including:
It obtains comprising the picture including bench information;
Picture is divided into several units according to bench information;
Bench information in each unit is handled, different according to the brightness of step horizontal plane and vertical plane, statistics is each The numbers of steps of unit;
According to the numbers of steps of each unit, numbers of steps in entire picture is calculated.
2. number of staircases statistical method according to claim 1, which is characterized in that obtain comprising the figure including bench information The method of piece is:
Video camera application is transferred, shows view-finder,
The view direction of the view-finder provides prompting of taking pictures perpendicular to step, and when step is entirely located in view-finder;
After obtaining photographing instruction, action of taking pictures is performed, obtains picture.
3. number of staircases statistical method according to claim 1, which is characterized in that be divided into picture according to bench information It is further included before several units:
Picture pre-processes, the removal other factors unrelated with bench information.
4. number of staircases statistical method according to claim 3, which is characterized in that further include:
Ashing processing is carried out to picture;
Identify the pixel value variation of step horizontal plane and vertical plane;
When changing value reaches preset value, record is primary, records number, that is, numbers of steps.
5. number of staircases statistical method according to claim 4, which is characterized in that further include:
Changed according to pixel value and picture is divided into alternatively distributed area pellucida and dark space;
Area pellucida is substituted for conspicuous color;
Identify that area pellucida quantity is numbers of steps.
6. number of staircases statistical method according to claim 2, which is characterized in that the edge pattern of step is obtained, by side Edge graphics decomposition is into several ledgements and vertical moulding;Count the quantity of ledgement or vertical moulding quantity.
7. number of staircases statistical method according to claim 6, which is characterized in that while count the quantity of ledgement and erect Lines quantity, using the average value of the two as numbers of steps.
8. number of staircases statistical method according to claim 1, which is characterized in that closed according to the size of adjacent step image System infers the relationship of the cellar area with identical numbers of steps, and different units is divided according to cellar area relationship;It is each single Numbers of steps is identical in member.
9. number of staircases statistical method according to claim 1, which is characterized in that it obtains in picture in a first direction, The changing rule of step width;According to changing rule, picture is cut at different pitches in a first direction, to divide different lists Member;Numbers of steps is identical in each unit.
10. a kind of number of staircases statistical system, which is characterized in that including:
One memory is configured as storage data and instruction;
One processor to communicate with memory foundation, wherein, when performing the instruction in memory, the processor is configured For:
It obtains comprising the picture including bench information;
Picture is divided into several units according to bench information;
Bench information in each unit is handled, different according to the brightness of step horizontal plane and vertical plane, statistics is each The numbers of steps of unit;
According to the numbers of steps of each unit, numbers of steps in entire picture is calculated.
CN201810050658.1A 2018-01-18 2018-01-18 Number of staircases statistical method and system Pending CN108230320A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810050658.1A CN108230320A (en) 2018-01-18 2018-01-18 Number of staircases statistical method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810050658.1A CN108230320A (en) 2018-01-18 2018-01-18 Number of staircases statistical method and system

Publications (1)

Publication Number Publication Date
CN108230320A true CN108230320A (en) 2018-06-29

Family

ID=62667754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810050658.1A Pending CN108230320A (en) 2018-01-18 2018-01-18 Number of staircases statistical method and system

Country Status (1)

Country Link
CN (1) CN108230320A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110782454A (en) * 2019-11-12 2020-02-11 上海电气集团股份有限公司 Identification method and identification device for stator core lamination of generator

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102324099A (en) * 2011-09-05 2012-01-18 广东工业大学 Step edge detection method oriented to humanoid robot
CN102538684A (en) * 2011-12-30 2012-07-04 苏州临点三维科技有限公司 Stair measuring method based on three-dimensional photographic technology
CN102818523A (en) * 2012-07-26 2012-12-12 北京信息科技大学 Vision measurement method and measurement system of small workpiece
JP2013072813A (en) * 2011-09-28 2013-04-22 Honda Motor Co Ltd Level difference part recognition device
JP2016206624A (en) * 2015-04-23 2016-12-08 鈴木 英雄 Processing method to make plane images recognized three-dimensionally, and products created by the same
CN106821692A (en) * 2016-11-23 2017-06-13 杭州视氪科技有限公司 One kind is based on RGB D cameras and stereosonic visually impaired people's stair detecting system and method
CN106940789A (en) * 2017-03-10 2017-07-11 广东数相智能科技有限公司 A kind of method, system and device of the quantity statistics based on video identification

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102324099A (en) * 2011-09-05 2012-01-18 广东工业大学 Step edge detection method oriented to humanoid robot
JP2013072813A (en) * 2011-09-28 2013-04-22 Honda Motor Co Ltd Level difference part recognition device
CN102538684A (en) * 2011-12-30 2012-07-04 苏州临点三维科技有限公司 Stair measuring method based on three-dimensional photographic technology
CN102818523A (en) * 2012-07-26 2012-12-12 北京信息科技大学 Vision measurement method and measurement system of small workpiece
JP2016206624A (en) * 2015-04-23 2016-12-08 鈴木 英雄 Processing method to make plane images recognized three-dimensionally, and products created by the same
CN106821692A (en) * 2016-11-23 2017-06-13 杭州视氪科技有限公司 One kind is based on RGB D cameras and stereosonic visually impaired people's stair detecting system and method
CN106940789A (en) * 2017-03-10 2017-07-11 广东数相智能科技有限公司 A kind of method, system and device of the quantity statistics based on video identification

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110782454A (en) * 2019-11-12 2020-02-11 上海电气集团股份有限公司 Identification method and identification device for stator core lamination of generator
CN110782454B (en) * 2019-11-12 2022-04-26 上海电气集团股份有限公司 Identification method and identification device for stator core lamination of generator

Similar Documents

Publication Publication Date Title
CN107609914A (en) A kind of intelligent menu design method and system
CN108228811A (en) Information recommendation method and system
CN109492412A (en) The encryption storage method and system of file
CN108040167A (en) The method that limiting terminal uses
CN108319408A (en) Stereogram target operating method and system
CN107704849A (en) The face identification method and system of double verification function
CN107315681A (en) Application program self-starting test system, medium and method
CN107358179A (en) A kind of living management system, medium and method based on iris verification
CN107341378A (en) For the method for the access right for setting application
CN107590276A (en) A kind of article map-indication method and system
CN107846508A (en) For the assisted memory method and system of forgetful crowd
CN107368793A (en) A kind of colored method for collecting iris and system
CN109379431A (en) A kind of contact person information updating method, cloud server and terminal
CN109582888A (en) Web page bookmark method for sorting and system
CN108230320A (en) Number of staircases statistical method and system
CN108009961A (en) For the trip householder method and system of physical disabilities
CN107862518A (en) A kind of method of payment and system based on terminal location
CN107220531A (en) A kind of information processing method of convenient login
CN107613106A (en) Similar APP automatic selecting method and system
CN206908680U (en) Intelligent terminal with secure log function
CN108293175A (en) Device and for provide its switching method
CN108040088A (en) Event arrangement method and system based on stroke route
CN108897479A (en) A kind of terminal touch control method and system
CN107623736A (en) A kind of equipment connection method and system
CN108093312A (en) Interactive approach and system based on barrage technology

Legal Events

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

Application publication date: 20180629