CN109447194A - A kind of capsule data identification method of beverage machine - Google Patents

A kind of capsule data identification method of beverage machine Download PDF

Info

Publication number
CN109447194A
CN109447194A CN201811078938.XA CN201811078938A CN109447194A CN 109447194 A CN109447194 A CN 109447194A CN 201811078938 A CN201811078938 A CN 201811078938A CN 109447194 A CN109447194 A CN 109447194A
Authority
CN
China
Prior art keywords
data
identification
acquisition system
capsule
data acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811078938.XA
Other languages
Chinese (zh)
Other versions
CN109447194B (en
Inventor
王旭宁
周升铭
詹永权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Jiuchuang Home Appliances Co ltd
Original Assignee
Hangzhou Easy Food Technology 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 Hangzhou Easy Food Technology Co Ltd filed Critical Hangzhou Easy Food Technology Co Ltd
Priority to CN201811078938.XA priority Critical patent/CN109447194B/en
Publication of CN109447194A publication Critical patent/CN109447194A/en
Application granted granted Critical
Publication of CN109447194B publication Critical patent/CN109447194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0029Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F13/00Coin-freed apparatus for controlling dispensing or fluids, semiliquids or granular material from reservoirs
    • G07F13/06Coin-freed apparatus for controlling dispensing or fluids, semiliquids or granular material from reservoirs with selective dispensing of different fluids or materials or mixtures thereof
    • G07F13/065Coin-freed apparatus for controlling dispensing or fluids, semiliquids or granular material from reservoirs with selective dispensing of different fluids or materials or mixtures thereof for drink preparation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Apparatus For Making Beverages (AREA)

Abstract

The invention discloses a kind of capsule data identification methods of beverage machine.The capsule data identification method of the beverage machine includes: the data for receiving identification camera lens identification capsule identification code and obtaining;When the data are continuously to receive, the data that identification condition is met in the multiple data received are stored in data acquisition system;The frequency of occurrence of data in the data acquisition system is counted, the final recognition result of the capsule identification code is determined according to statistical result.Technical solution of the present invention can be improved the discrimination of capsule data.

Description

A kind of capsule data identification method of beverage machine
Technical field
The present invention relates to beverage machine technical field more particularly to a kind of capsule data identification methods of beverage machine.
Background technique
With the improvement of people ' s living standards with the adjustment of eating habit, beverage machine is reconstituted increasingly by everybody joyous It meets.Reconstitute beverage machine and pass through OID(Optical Identification, optical identification code) identification camera lens identification drink capsule table The OID in face obtains capsule data.
OID identification camera lens used at present can transmit data to main control chip when recognizing capsule data.But data exist Vulnerable to distorted due to interference in transmission process, thus the identification data of error of transmission.
Relevant capsule data identification method generally uses continuous recognizer, when continuously receiving n times (such as 3-20 It is secondary) identical data when, it is believed that have received valid data.The discrimination of this judgment method is lower.
Summary of the invention
The embodiment of the present invention provides a kind of capsule data identification method of beverage machine, can be improved the identification of capsule data Rate.
The embodiment of the present invention provides a kind of capsule data identification method of beverage machine, comprising:
Receive the data that identification camera lens identification capsule identification code obtains;
When the data are continuously to receive, the data that identification condition is met in the multiple data received are stored in data set In conjunction;
The frequency of occurrence of data in the data acquisition system is counted, the capsule identification code is determined according to statistical result Final recognition result.
Compared with the relevant technologies, a kind of capsule data identification method of beverage machine provided in an embodiment of the present invention identifies mould Block identifies that capsule identification code obtains Data Concurrent and gives main control module by identification camera lens, and main control module is continuous in the data When reception, the data that identification condition is met in the multiple data received are stored in data acquisition system, to the data acquisition system In the frequency of occurrence of data counted, the final recognition result of the capsule identification code is determined according to statistical result.This hair The technical solution of bright embodiment filters out the identification condition that is unsatisfactory for (in vain) data, and (frequency of occurrence is few with wrong data Data), can be improved the discrimination of capsule data.
Detailed description of the invention
Fig. 1 is a kind of capsule data identification method flow chart of beverage machine of the embodiment of the present invention 1;
Fig. 2 is a kind of beverage machine schematic diagram of the embodiment of the present invention 2;
Fig. 3 is the method flow diagram that the data in a kind of pair of data acquisition system of example 1 of the present invention are identified;
Fig. 4 is the method flow diagram that the data in a kind of pair of data acquisition system of example 2 of the present invention are identified.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Embodiment 1
As shown in Figure 1, the embodiment of the invention provides a kind of capsule data identification methods of beverage machine, comprising:
Step S110 receives the data that identification camera lens identification capsule identification code obtains;
Step S120 protects the data for meeting identification condition in the multiple data received when the data are continuously to receive There are in data acquisition system;
Step S130 counts the frequency of occurrence of the data in the data acquisition system, determines the glue according to statistical result The final recognition result of capsule identification code.
In one embodiment, the capsule identification code is OID(Optical Identification, optical identification Code) data;
In one embodiment, the method also includes:
When the data are that single receives, using the individual data received as the most termination for identifying the capsule identification code Fruit.
In one embodiment, the interval that identification camera lens sends data can be set as needed, for example send in 1 second M data.
The identification camera lens can be configured to continuously transmit mode or single sending mode, recognize glue under single sending mode A data are only sent after capsule identification code (piece film), continuously transmits and continuously transmits data after recognizing capsule identification code under mode. It is configured to the identification camera lens to continuously transmit mode and discrimination can be improved.
The identification distance of the identification camera lens is 0-5mm, and preferred distance is 2mm.Identify camera lens identification frame number per second Can by software configuration, preferably 5,20,30,40,50 etc..For example, will identify camera lens identification frame number per second be configured to 20 frames/ Second, then identify that camera lens can transmit 20 data each second.
In one embodiment, the data for identification condition being met in the multiple data that will be received are stored in data In set, comprising:
Identification brews the closure of switch, will brew before closing the switch first time period T1 and it is described brew close the switch after second when Between the data that receive in section T2 be stored in data acquisition system;
Wherein, 0s < T1≤5s, 0s < T2≤5s.
Optionally, first time period T1 is less than second time period T2.For example, T1 is equal to 2 seconds, T2 is equal to 3 seconds;
In one embodiment, the data for identification condition being met in the multiple data that will be received are stored in data acquisition system In, further includes:
Identification brews the disconnection of switch, will brew the data that receive in the third period T3 after switch disconnects from data acquisition system Middle removing;
Wherein, 0s < T3≤2s, and T3 < T1.
Optionally, third period T3 is equal to 500ms;
In one embodiment, the data for identification condition being met in the multiple data that will be received are stored in data acquisition system In, further includes:
Whether the time interval T4 brewed between this closure of switch and last disconnection described in judgement is less than or equal to third Period T3 is will to brew the total data received before this closure of switch to remove from data acquisition system;Otherwise under entering State judgement:
Whether the time interval T4 brewed between this closure of switch and last disconnection described in judgement is less than or equal to first Period T1 is, the data before closed the switch in T4-T3 that brew is stored in data acquisition system, otherwise by the punching Data before bubble closes the switch in first time period T1 are stored in data acquisition system.
Wherein, microswitch (brewing switch) is housed outside beverage making cavity, when user screws on spiral cover, microswitch can be by breaking Opening becomes being closed.Main control module MCU can save first 0-5 seconds (T1, preferably 2 seconds) data of microswitch closure and fine motion is opened The data for closing 0-5 seconds (T2, preferably 3 seconds) after closing, both can be improved discrimination in this way, will not be the case where not being put into capsule The lower waste too many time.
User opens spiral cover and takes out the logic that the data recognized when capsule execute function to machine next time in order to prevent Judgement has interference, that is, should in time prevent from zeros data influencing next operation when user opens spiral cover, machine can not Save the data in a period of time (T3, preferably 500ms) that fine motion has just turned off.This logic can exclude user and quickly remove capsule And spiral cover is screwed on, whole process is in the case where completing in 2 seconds kinds (chip is saving always the data recognized at this time).Assuming that The data saved when not removing preceding 500ms after fine motion disconnects, when user takes out capsule, then closure spiral cover executes cleaning or production When, it may occur that the case where misrecognition.
That is, being to determine stake time point to brew the time point of the closing or opening of switch, recognizer is to determine stake time point For scale, carry out determining the data identification before and after stake time point.
In one embodiment, the final recognition result that the capsule identification code is determined according to statistical result, packet It includes:
The capsule identification code is identified most for the most data of frequency of occurrence in the data acquisition system as the identification camera lens Whole recognition result.
In one embodiment, the final recognition result that the capsule identification code is determined according to statistical result, packet It includes:
Frequency of occurrence in the data acquisition system is identified that the capsule is known as the identification camera lens equal to or more than the data of N/2 The final recognition result of other code;N is the data count in the data acquisition system.
In one embodiment, the data for identification condition being met in the multiple data that will be received are stored in data In set, the frequency of occurrence of the data in the data acquisition system is counted, determines that the capsule identifies according to statistical result The final recognition result of code, comprising:
When the identification camera lens is multiple, identification condition will be met from multiple data that each identification camera lens receives Data are stored in the corresponding data acquisition system of the identification camera lens;To the data in each corresponding data acquisition system of identification camera lens Frequency of occurrence counted, determine that each identification camera lens identifies the result of the capsule identification code according to statistical result;
Each identification camera lens is identified that the result of the capsule identification code compares, determines that the capsule is known according to comparison result The final recognition result of other code:
If the result of each identification camera lens identification is all the same, using the result of any one identification camera lens identification as the glue The final recognition result of capsule identification code;
If the result of each identification camera lens identification exists different, will meet in multiple data that all identification camera lenses receive The data of identification condition are stored in a unified data acquisition system, again going out to the data in the unified data acquisition system Occurrence number is counted, using the most data of frequency of occurrence as the final recognition result of the capsule identification code;Alternatively, if The result of each identification camera lens identification exist it is different, then to the recognition result of each identification camera lens the identification camera lens data set Frequency of occurrence in conjunction is compared, using the recognition result of the most identification camera lens of frequency of occurrence as the capsule identification code Final recognition result.
In one embodiment, the frequency of occurrence to the data in the data acquisition system counts, according to system Meter result determines the final recognition result of the capsule identification code, comprising:
Step a: using the 1st data D0 in the data acquisition system as candidate host element, candidate host element counter c is set;
Step b: since the data acquisition system the 2nd element, ergodic data one by one, if i-th of data Di-1 with it is described Candidate host element is identical, then the candidate host element counter c, which increases, counts, if i-th of data Di-1 and the candidate master Element is not identical, then i-th of data Di-1 is individually counted;By the count value of the counter c of the candidate host element and its He is compared the count value of each data, if the count value of candidate's host element is maximum, keeps the candidate pivot Element is constant;It is if the count value of candidate's host element is not maximum, the maximum data of count value are main as new candidate The count value of element, candidate's host element counter c is updated to the count value of the new candidate host element;Wherein, 2≤i ≤ N, N are the data counts in the data acquisition system;
Step c: after all data traversals, using finally obtained candidate host element as the final of the capsule identification code Recognition result.
In one embodiment, the step c includes:
Judge whether the count value of finally obtained candidate host element is greater than or equal to N/2, being then will be finally obtained candidate main Final recognition result of the element as the capsule identification code.
In one embodiment, the frequency of occurrence to the data in the data acquisition system counts, according to system Meter result determines the final recognition result of the capsule identification code, comprising:
Step A: N number of data in data acquisition system are ranked up according to size;
Step B: using the 1st data D0 in the data acquisition system as candidate host element, candidate host element counter c is set;
Step C: since the data acquisition system the 2nd element, ergodic data one by one, if i-th of data Di-1 with it is described Candidate host element is identical, then the candidate host element counter c, which increases, counts, if i-th of data Di-1 and the candidate master Element is not identical, then using i-th of data Di-1 as new candidate host element, candidate host element counter c is counted again; Wherein, 2≤i≤N, N are the data counts in the data acquisition system;
Step D: after all data traversals, the count value of the candidate host element occurred being compared, selection Final recognition result of the most candidate host element of counts as the capsule identification code.
Embodiment 2
As shown in Fig. 2, the embodiment of the invention provides a kind of beverage machines, comprising:
Identification module 10, for identifying that capsule identification code obtains Data Concurrent and gives main control module by identification camera lens;
Main control module 20, for identification condition will to be met in the multiple data received when the data are continuously to receive Data are stored in data acquisition system;The frequency of occurrence of data in the data acquisition system is counted, it is true according to statistical result The final recognition result of the fixed capsule identification code.
The beverage machine further includes identification camera lens 30, and the identification camera lens is used for optical identification capsule identification code;
The beverage machine is equipped with and brews switch 40, the beverage machine triggered during the installation process with capsule described in brew switch, institute State the closing or opening that switch is brewed described in the data identification matching of beverage machine.
In one embodiment, the capsule identification code is OID(Optical Identification, optical identification Code) data;
In one embodiment, main control module 20 are also used to the single number that will be received when the data are that single receives According to as the final result for identifying the capsule identification code.
In one embodiment, the interval that identification camera lens sends data can be set as needed, for example send in 1 second M data.Therefore, main control module can receive multiple data in 1 second.
The identification camera lens can be configured to continuously transmit mode or single sending mode, recognize glue under single sending mode A data are only sent after capsule identification code (piece film), continuously transmits and continuously transmits data after recognizing capsule identification code under mode. It is configured to the identification camera lens to continuously transmit mode and discrimination can be improved.
In one embodiment, main control module 20, for will meet in the multiple data received in the following ways The data of identification condition are stored in data acquisition system:
Identification brews the closure of switch, will brew before closing the switch first time period T1 and it is described brew close the switch after second when Between the data that receive in section T2 be stored in data acquisition system;
Wherein, 0s < T1≤5s, 0s < T2≤5s.
Optionally, first time period T1 is less than second time period T2.For example, T1 is equal to 2 seconds, T2 is equal to 3 seconds;
In one embodiment, main control module 20 are also used to meet in the multiple data received in the following ways and know The data of other condition are stored in data acquisition system:
Identification brews the disconnection of switch, will brew the data that receive in the third period T3 after switch disconnects from data acquisition system Middle removing;
Wherein, 0s < T3≤2s, and T3 < T1.
Optionally, third period T3 is equal to 500ms;
In one embodiment, main control module 20 are also used to meet in the multiple data received in the following ways and know The data of other condition are stored in data acquisition system:
Whether the time interval T4 brewed between this closure of switch and last disconnection described in judgement is less than or equal to third Period T3 is will to brew the total data received before this closure of switch to remove from data acquisition system;Otherwise under entering State judgement:
Whether the time interval T4 brewed between this closure of switch and last disconnection described in judgement is less than or equal to first Period T1 is, the data before closed the switch in T4-T3 that brew are stored in data acquisition system, are otherwise brewed described Data before closing the switch in first time period T1 are stored in data acquisition system.
It is to determine stake time point that aforesaid way, which is with the time point for brewing the closing or opening of switch, when recognizer is to determine stake Between point be scale, determine the data before and after stake time point and identify.
In one embodiment, main control module 20, for determining the capsule according to statistical result in the following ways The final recognition result of identification code:
The capsule identification code is identified most for the most data of frequency of occurrence in the data acquisition system as the identification camera lens Whole recognition result.
In one embodiment, main control module 20, for determining the capsule according to statistical result in the following ways The final recognition result of identification code:
Frequency of occurrence in the data acquisition system is identified that the capsule is known as the identification camera lens equal to or more than the data of N/2 The final recognition result of other code;N is the data count in the data acquisition system.
In one embodiment, main control module 20, for will meet in the multiple data received in the following ways The data of identification condition are stored in data acquisition system, are counted to the frequency of occurrence of the data in the data acquisition system, according to Statistical result determines the final recognition result of the capsule identification code:
When the identification camera lens is multiple, identification condition will be met from multiple data that each identification camera lens receives Data are stored in the corresponding data acquisition system of the identification camera lens;To the data in each corresponding data acquisition system of identification camera lens Frequency of occurrence counted, determine that each identification camera lens identifies the result of the capsule identification code according to statistical result;
Each identification camera lens is identified that the result of the capsule identification code compares, determines that the capsule is known according to comparison result The final recognition result of other code:
If the result of each identification camera lens identification is all the same, using the result of any one identification camera lens identification as the glue The final recognition result of capsule identification code;
If the result of each identification camera lens identification exists different, will meet in multiple data that all identification camera lenses receive The data of identification condition are stored in a unified data acquisition system, again going out to the data in the unified data acquisition system Occurrence number is counted, using the most data of frequency of occurrence as the final recognition result of the capsule identification code;Alternatively, if The result of each identification camera lens identification exist it is different, then to the recognition result of each identification camera lens the identification camera lens data set Frequency of occurrence in conjunction is compared, using the recognition result of the most identification camera lens of frequency of occurrence as the capsule identification code Final recognition result.
In one embodiment, main control module 20, in the following ways to the data in the data acquisition system Frequency of occurrence is counted, and the final recognition result of the capsule identification code is determined according to statistical result:
Step a: using the 1st data D0 in the data acquisition system as candidate host element, candidate host element counter c is set;
Step b: since the data acquisition system the 2nd element, ergodic data one by one, if i-th of data Di-1 with it is described Candidate host element is identical, then the candidate host element counter c, which increases, counts, if i-th of data Di-1 and the candidate master Element is not identical, then i-th of data Di-1 is individually counted;By the count value of the counter c of the candidate host element and its He is compared the count value of each data, if the count value of candidate's host element is maximum, keeps the candidate pivot Element is constant;It is if the count value of candidate's host element is not maximum, the maximum data of count value are main as new candidate The count value of element, candidate's host element counter c is updated to the count value of the new candidate host element;Wherein, 2≤i ≤ N, N are the data counts in the data acquisition system;
Step c: after all data traversals, using finally obtained candidate host element as the final of the capsule identification code Recognition result.
In one embodiment, main control module 20, in the following ways making finally obtained candidate host element For the final recognition result of the capsule identification code: judging whether the count value of finally obtained candidate host element is greater than or equal to N/2 is then using finally obtained candidate host element as the final recognition result of the capsule identification code.
In one embodiment, main control module 20, in the following ways to the data in the data acquisition system Frequency of occurrence is counted, and the final recognition result of the capsule identification code is determined according to statistical result:
Step A: N number of data in data acquisition system are ranked up according to size;
Step B: using the 1st data D0 in the data acquisition system as candidate host element, candidate host element counter c is set;
Step C: since the data acquisition system the 2nd element, ergodic data one by one, if i-th of data Di-1 with it is described Candidate host element is identical, then the candidate host element counter c, which increases, counts, if i-th of data Di-1 and the candidate master Element is not identical, then using i-th of data Di-1 as new candidate host element, candidate host element counter c is counted again; Wherein, 2≤i≤N, N are the data counts in the data acquisition system;
Step D: after all data traversals, the count value of the candidate host element occurred being compared, selection Final recognition result of the most candidate host element of counts as the capsule identification code.
Embodiment 3
The embodiment of the invention provides a kind of beverage machine capsules, comprising:
The capsule identification code of the capsule data identification method identification for the beverage machine of above-described embodiment 1 is provided on the capsule, The capsule identification code is optical identification code (Optical Identification, abbreviation OID).
Illustrate the recognition methods of capsule data below by example 1 and example 2.
Example 1
OID(Optical Identification, optical identification code) code is possible to will receive interference in transmission process, cause Originally correctly data become wrong data, in addition, OID camera lens is when identifying data, since there are reflective existing for capsule tablets film As, it is also possible to there is a situation where image analysis mistake, the data at this time transmitted are also wrong data.
It is the array of N(such as 100) that a length is defined in this example, inside main control module, is known for saving to meet The data of other condition.For example, 40 data close the switch preceding 2 seconds data (assuming that 20 frame numbers of transmission per second for saving to brew According to), 60 data close the switch rear 3 seconds data for saving to brew.N number of data in data acquisition system are identified, it will The most data of frequency of occurrence can reduce influence of the error code to identification as final recognition result.
As shown in figure 3, being identified to the data in data acquisition system according to frequency of occurrence, may comprise steps of:
Step 301: N number of data in the data acquisition system are ranked up according to sequence from small to large;
Step 302: using the 1st data D0 in the data acquisition system as candidate host element v, candidate host element counter c is set, The initial value of c is set as 1, and the initial value of setting data traversal counter i, i are set as 2;
Step S303: judging whether i is less than or equal to N, is to then follow the steps S304, no to then follow the steps S308;
Step S304: judge whether i-th of data Di-1 and the candidate host element v are identical, are to then follow the steps S305, otherwise Execute step S306;
Step S305: candidate host element counter c increases by 1, executes step S307;
Step S306: 1 is set as using i-th of data Di-1 as new candidate host element v, candidate host element counter c;
Step S307: data traversal counter i increases by 1, return step S303;
Step S308: the count value of the candidate host element occurred is compared, the candidate for selecting counts most Final recognition result of the host element as the capsule identification code.
Example 2
The array that a length is N is defined in this example, inside main control module, for saving the data for meeting identification condition. N number of data in data acquisition system are identified, the data using frequency of occurrence more than or equal to N/2 are as final identification knot Fruit can reduce influence of the error code to identification.
As shown in figure 4, being identified to the data in data acquisition system according to frequency of occurrence, may comprise steps of:
Step 401: using the 1st data D0 in the data acquisition system as candidate host element v, candidate host element counter c is set, The initial value of c is set as 1, and the initial value of setting data traversal counter i, i are set as 2;
Step S402, judges whether i is less than or equal to N, is to then follow the steps S403, no to then follow the steps S411;
Step S403 judges whether i-th of data Di-1 and the candidate host element v are identical, are to then follow the steps S404, otherwise Execute step S405;
Step S404, candidate host element counter c increase by 1, execute step S406;
Step S405, i-th of data Di-1 are individually counted, and execute step S406;
Step S406: data traversal counter i increases by 1;
Step S407: the count value of the counter c of the candidate host element is compared with the count value of other each data;
Step S408: judge whether the count value c of the candidate host element is maximum, is to then follow the steps S409, otherwise executes Step S410;
Step S409: keep the candidate host element constant, return step S402;
Step S410: using the maximum data of count value as new candidate host element, the counting of candidate's host element counter c Value is updated to the count value of the new candidate host element, return step S402;
Step S411: judging whether the count value c of finally obtained candidate host element is greater than or equal to N/2, is to then follow the steps S412, it is no to then follow the steps S413;
Step S412: using finally obtained candidate host element as the final recognition result of the capsule identification code, terminate.
Step S413: recognition failures terminate.
It should be noted that the invention may also have other embodiments, without departing substantially from spirit of that invention and its essence In the case of, those skilled in the art can make various corresponding changes and modifications according to the present invention, but these are corresponding Change and modification all should fall within the scope of protection of the appended claims of the present invention.

Claims (10)

1. a kind of capsule data identification method of beverage machine, comprising:
Receive the data that identification camera lens identification capsule identification code obtains;
When the data are continuously to receive, the data that identification condition is met in the multiple data received are stored in data set In conjunction;
The frequency of occurrence of data in the data acquisition system is counted, the capsule identification code is determined according to statistical result Final recognition result.
2. the method as described in claim 1, it is characterised in that:
The data for meeting identification condition in the multiple data that will be received are stored in data acquisition system, comprising:
Identification brews the closure of switch, will brew before closing the switch first time period T1 and it is described brew close the switch after second when Between the data that receive in section T2 be stored in data acquisition system;
Wherein, 0s < T1≤5s, 0s < T2≤5s.
3. method according to claim 2, it is characterised in that:
The data for meeting identification condition in the multiple data that will be received are stored in data acquisition system, further includes:
Identification brews the disconnection of switch, will brew the data that receive in the third period T3 after switch disconnects from data acquisition system Middle removing;
Wherein, 0s < T3≤2s, and T3 < T1.
4. method as claimed in claim 3, it is characterised in that:
The data for meeting identification condition in the multiple data that will be received are stored in data acquisition system, further includes:
Whether the time interval T4 brewed between this closure of switch and last disconnection described in judgement is less than or equal to third Period T3 is will to brew the total data received before this closure of switch to remove from data acquisition system;Otherwise under entering State judgement:
Whether the time interval T4 brewed between this closure of switch and last disconnection described in judgement is less than or equal to first Period T1 is, the data before closed the switch in T4-T3 that brew are stored in data acquisition system, are otherwise brewed described Data before closing the switch in first time period T1 are stored in data acquisition system.
5. the method as described in claim 1, it is characterised in that:
The final recognition result that the capsule identification code is determined according to statistical result, comprising:
The capsule identification code is identified most for the most data of frequency of occurrence in the data acquisition system as the identification camera lens Whole recognition result.
6. method as claimed in claim 5, it is characterised in that:
The final recognition result that the capsule identification code is determined according to statistical result, comprising:
Frequency of occurrence in the data acquisition system is identified that the capsule is known as the identification camera lens equal to or more than the data of N/2 The final recognition result of other code;N is the data count in the data acquisition system.
7. the method as described in claim 1, it is characterised in that:
The data for meeting identification condition in the multiple data that will be received are stored in data acquisition system, to the data acquisition system In the frequency of occurrence of data counted, the final recognition result of the capsule identification code is determined according to statistical result, comprising:
When the identification camera lens is multiple, identification condition will be met from multiple data that each identification camera lens receives Data are stored in the corresponding data acquisition system of the identification camera lens;To the data in each corresponding data acquisition system of identification camera lens Frequency of occurrence counted, determine that each identification camera lens identifies the result of the capsule identification code according to statistical result;
Each identification camera lens is identified that the result of the capsule identification code compares, determines that the capsule is known according to comparison result The final recognition result of other code:
If the result of each identification camera lens identification is all the same, using the result of any one identification camera lens identification as the glue The final recognition result of capsule identification code;
If the result of each identification camera lens identification exists different, will meet in multiple data that all identification camera lenses receive The data of identification condition are stored in a unified data acquisition system, again going out to the data in the unified data acquisition system Occurrence number is counted, using the most data of frequency of occurrence as the final recognition result of the capsule identification code;Alternatively, if The result of each identification camera lens identification exist it is different, then to the recognition result of each identification camera lens the identification camera lens data set Frequency of occurrence in conjunction is compared, using the recognition result of the most identification camera lens of frequency of occurrence as the capsule identification code Final recognition result.
8. the method as described in claim 1, it is characterised in that:
The frequency of occurrence to the data in the data acquisition system counts, and determines that the capsule identifies according to statistical result The final recognition result of code, comprising:
Step a: using the 1st data D0 in the data acquisition system as candidate host element, candidate host element counter c is set;
Step b: since the data acquisition system the 2nd element, ergodic data one by one, if i-th of data Di-1 with it is described Candidate host element is identical, then the candidate host element counter c, which increases, counts, if i-th of data Di-1 and the candidate master Element is not identical, then i-th of data Di-1 is individually counted;By the count value of the counter c of the candidate host element and its He is compared the count value of each data, if the count value of candidate's host element is maximum, keeps the candidate pivot Element is constant;It is if the count value of candidate's host element is not maximum, the maximum data of count value are main as new candidate The count value of element, candidate's host element counter c is updated to the count value of the new candidate host element;Wherein, 2≤i ≤ N, N are the data counts in the data acquisition system;
Step c: after all data traversals, using finally obtained candidate host element as the final of the capsule identification code Recognition result.
9. method according to claim 8, it is characterised in that:
The step c includes:
Judge whether the count value of finally obtained candidate host element is greater than or equal to N/2, being then will be finally obtained candidate main Final recognition result of the element as the capsule identification code.
10. the method as described in claim 1, it is characterised in that:
The frequency of occurrence to the data in the data acquisition system counts, and determines that the capsule identifies according to statistical result The final recognition result of code, comprising:
Step A: N number of data in data acquisition system are ranked up according to size;
Step B: using the 1st data D0 in the data acquisition system as candidate host element, candidate host element counter c is set;
Step C: since the data acquisition system the 2nd element, ergodic data one by one, if i-th of data Di-1 with it is described Candidate host element is identical, then the candidate host element counter c, which increases, counts, if i-th of data Di-1 and the candidate master Element is not identical, then using i-th of data Di-1 as new candidate host element, candidate host element counter c is counted again; Wherein, 2≤i≤N, N are the data counts in the data acquisition system;
Step D: after all data traversals, the count value of the candidate host element occurred being compared, selection Final recognition result of the most candidate host element of counts as the capsule identification code.
CN201811078938.XA 2018-09-17 2018-09-17 Capsule data identification method of beverage machine Active CN109447194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811078938.XA CN109447194B (en) 2018-09-17 2018-09-17 Capsule data identification method of beverage machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811078938.XA CN109447194B (en) 2018-09-17 2018-09-17 Capsule data identification method of beverage machine

Publications (2)

Publication Number Publication Date
CN109447194A true CN109447194A (en) 2019-03-08
CN109447194B CN109447194B (en) 2022-02-01

Family

ID=65530896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811078938.XA Active CN109447194B (en) 2018-09-17 2018-09-17 Capsule data identification method of beverage machine

Country Status (1)

Country Link
CN (1) CN109447194B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101448387B1 (en) * 2013-05-24 2014-10-07 방정호 Espresso brewing monitor device in coffee machine
CN105996773A (en) * 2016-07-11 2016-10-12 九阳股份有限公司 Method for identifying capsule by drink preparation device
CN107108114A (en) * 2014-12-11 2017-08-29 Qbo咖啡有限责任公司 Drink capsule, beverage preparation system and drink capsule recognition methods
CN108125563A (en) * 2017-12-01 2018-06-08 杭州易杯食品科技有限公司 A kind of beverage machine capsule identifies control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101448387B1 (en) * 2013-05-24 2014-10-07 방정호 Espresso brewing monitor device in coffee machine
CN107108114A (en) * 2014-12-11 2017-08-29 Qbo咖啡有限责任公司 Drink capsule, beverage preparation system and drink capsule recognition methods
CN105996773A (en) * 2016-07-11 2016-10-12 九阳股份有限公司 Method for identifying capsule by drink preparation device
CN108125563A (en) * 2017-12-01 2018-06-08 杭州易杯食品科技有限公司 A kind of beverage machine capsule identifies control method

Also Published As

Publication number Publication date
CN109447194B (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN108416909B (en) Intelligent sales counter and intelligent vending method
CN108230553B (en) Mirror image visual identification self-service vending machine system
CN108780505B (en) Intelligent sales counter, article identification method, device, server and storage medium
WO2019237243A1 (en) Article identification method and apparatus, and server and readable storage medium
US20170372144A1 (en) Terminal surveillance device, automatic teller machine, decision method, and program on a storage medium
CN102014198A (en) Mobile terminal having photographing control function and photographing control system
US20180268634A1 (en) Folded bill identification method and device
CN102509369A (en) Embedded intelligent entrance guard system
CN110855934A (en) Fatigue driving identification method, device and system, vehicle-mounted terminal and server
CN108536380A (en) Screen control method, device and mobile terminal
CN109447194A (en) A kind of capsule data identification method of beverage machine
CN105956534A (en) Intelligent prompting system and intelligent prompting method based on face identification, and wearable device
CN104796652B (en) A kind of data transmission method and device that frame of video is transmitted based on SRIO
CN100377131C (en) Asynchronous serial data interface
CN203947945U (en) A kind of intelligent safe that possesses iris identifying function
CN207440930U (en) A kind of ATM based on iris recognition
CN112700312A (en) Method, server, client and system for settling account of object
CN110249340A (en) Face registration method, face identification device, identification equipment and can storage medium
CN202306668U (en) Embedded intelligent door control system
CN105224957B (en) A kind of method and system of the image recognition based on single sample
EP1096418A2 (en) Error derived scores for detection systems
CN112348610B (en) E-commerce trial evaluation and recommendation system based on user requirements
CN106230688B (en) CAN communication interchannel communication Design method based on DSP2812
CN115240304A (en) Door lock awakening method and device, electronic equipment and storage medium
CN213582413U (en) Dining room automatic charging dining system based on face recognition

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230506

Address after: Building 2, No. 52, 22nd Street, Baiyang Street, Qiantang New District, Hangzhou City, Zhejiang Province, 310000

Patentee after: Hangzhou Jiuchuang Home Appliances Co.,Ltd.

Address before: 310018 No. 760 Yinhai Street, Xiasha Street, Hangzhou Economic and Technological Development Zone, Zhejiang Province

Patentee before: HANGZHOU YIBEI FOOD TECHNOLOGY CO.,LTD.