CN111951209A - Electronic equipment for counting number of sticks and using method - Google Patents

Electronic equipment for counting number of sticks and using method Download PDF

Info

Publication number
CN111951209A
CN111951209A CN201910397247.4A CN201910397247A CN111951209A CN 111951209 A CN111951209 A CN 111951209A CN 201910397247 A CN201910397247 A CN 201910397247A CN 111951209 A CN111951209 A CN 111951209A
Authority
CN
China
Prior art keywords
module
counting
sticks
central control
image
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
CN201910397247.4A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201910397247.4A priority Critical patent/CN111951209A/en
Publication of CN111951209A publication Critical patent/CN111951209A/en
Pending legal-status Critical Current

Links

Images

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
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/27Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum
    • G06M1/272Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum using photoelectric means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/01Details for indicating
    • G07G1/06Details for indicating with provision for the noting of the money to be paid
    • 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)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides electronic equipment for counting the number of sticks and a using method thereof, wherein the electronic equipment comprises the following steps: a storage module and a host module; the storage module is used for collecting the sticks and assisting the host module in collecting images of the ends of the sticks; the host module is used for collecting images of the end parts of the sticks, counting the number of the sticks through the collected images and outputting a counting result; the electronic equipment of the invention solves many common problems of the affair of counting the tags: the system has the advantages that the system has the advantages of speed, accuracy, volume, safety, power consumption, cleanness, threshold operation and the like of counting sticks, particularly, in terms of efficiency, the time for counting 100 sticks manually is about sixty-seventy seconds, the equipment only needs several milliseconds to dozens of milliseconds under ideal conditions, the efficiency of the system is thousands of times faster than the manual efficiency, the accuracy can reach more than 99 percent, and the traditional means of counting sticks manually and weighing by an electronic scale are difficult to achieve.

Description

Electronic equipment for counting number of sticks and using method
Technical Field
The invention belongs to the technical field of catering equipment, and particularly relates to electronic equipment for counting the number of prods and a using method of the electronic equipment.
Background
The shish kebab is one of typical representatives of Chinese gourmets, and is popular with nationwide nationalities due to simple and convenient eating mode and delicious and unique taste. Various food materials on bamboo product sticks, wooden product sticks or metal product sticks are usually put into a heated pot bottom for being boiled. After the meal is used, the service staff needs to count the number of the used labels and settle the total consumption amount.
The 'postprandial charging' mode represented by the string incense occupies an important place in the catering consumption mode of China, along with the increasing abundance of national material culture life and the acceleration of life rhythm, the 'string incense', 'cold pot string', 'guandong boiling', 'self-service kebab' and the like take the 'string' as main expression forms, and various foods taking frying, burning, roasting, boiling, steaming, stewing and the like as main cooking forms are supplemented, so that the trend of flexible, multiple, delicious and efficient appeal of eaters to food is better met.
The food material unit of the food in the series is the series (label) as the main quantization unit, so the food is favorable for the postprandial charging mode of 'eating first and calculating later'. In the catering mode of the type taking the number tags as the charging means, the technology of the number tags becomes an important factor influencing the turnover rate, the dining efficiency of the diners and the satisfaction degree.
At present, the mainstream stick counting means is manual stick counting, and the quantity or the weight of the sticks is estimated by using a stick weighing method in some areas.
The manual counting mode has the advantages of low cost and large workload, and needs workers to process one by one; the time consumption is long, and the labor efficiency is low; the credibility is low, the consumer can not effectively observe the counting process, and the calculation result is not credible. The weighing and counting method has the advantages of high speed and low accuracy due to weighing factors, and the counting result is unstable due to the influence of the elements of the sticks.
Some designers provide mechanical type number equipment for shop owners, however, mechanical type products are not high in efficiency, complex in devices, heavy in volume and large in potential safety hazard, and are not suitable for use and popularization.
The existing number signing mode or number signing equipment has obvious defects, the requirements of ' rapidness, accuracy, low cost ' and the like cannot be effectively met, more specifically, people seek a solution for solving the number signing problem in an all-round way, wherein the solution is high in number signing speed, high in accuracy, small in size, high in safety, low in power consumption, clean and low in operation threshold ', and the novel equipment combined with the novel technology is required to be used for overcoming the defects. While the simple mechanical equipment is difficult to play an advantage in the field of real life tags, and the electronic equipment combined with the intelligent technology provides more possibilities for solving the pain point.
Disclosure of Invention
Based on the technical defects, the invention provides electronic equipment for counting the number of the sticks and a using method thereof, wherein the electronic equipment for counting the number of the sticks specifically comprises the following steps: a storage module and a host module;
the storage module is connected with the host module;
the storage module is used for collecting the sticks and assisting the host module in collecting images of the ends of the sticks;
the host module is used for collecting images of the end parts of the sticks, counting the number of the sticks through the collected images and outputting a counting result;
the host module includes: the system comprises an image acquisition module, a central control and processing module, an operation memory module, a program storage module, a display module, a power supply module, an interaction module and a switch;
the interaction module comprises: a counting start button and a parameter adjusting button;
the image acquisition module, the operation memory module, the program storage module, the interaction module, the display module and the power supply module are respectively connected with the central control and processing module;
the image acquisition module, the central control and processing module, the operation memory module and the program storage module are arranged in the host module; the counting starting button, the switch and the parameter adjusting button are arranged on the outer surface of the host module;
the image acquisition module acquires images of the ends of the sticks through an image acquisition window connected with the storage module and transmits the acquired images to the central control and processing module;
the central control and processing module processes the acquired images of the ends of the sticks by using an embedded chip, counts the number of the sticks and sends the counted result to the display module;
the operation memory module uses a storage element to store temporary variable data generated during program operation;
the program storage module stores an operating program and parameters of the operating program by using a data storage element without losing information in case of power failure;
the display module uses an electronic display screen to display the statistical result of the prods transmitted from the central control and processing module, and the display screen is arranged on the surface of the host module;
the power supply module is used for supplying power to the whole electronic equipment;
the parameter adjusting button is used for adjusting counting parameters and counting modes and displaying the adjusting result on the electronic display screen;
the adjusting the counting parameter comprises: a binarization threshold value, a distance transformation filtering threshold value, a connected domain filtering threshold value and a price coefficient;
the price coefficient is the price of each prod;
the counting mode comprises: a single counting display mode, an accumulation counting time limit mode and a checkout mode;
the single counting display mode is used for refreshing the result for each counting;
the accumulation counting time-limit mode is used for displaying an accumulation counting result;
the checkout mode is a result obtained by multiplying the number of the tags by a price coefficient;
the counting starting button is used for starting a counting function;
the image acquisition module includes: the device comprises a light transmitting sheet, an image sensor and a light supplementing module; the image sensor collects images through the light-transmitting sheet;
the light-transmitting sheet can play a role in supporting the visuals, and the end parts of the visuals form images to be acquired on the light-transmitting sheet;
the image sensor collects an image to be collected formed on the light-transmitting sheet and transmits the collected image to the central control and processing module;
the light supplementing module adopts a controllable light source element to perform light source balance on the acquired image environment;
the receiving module is a hollow cylinder;
the host module is a cuboid or a cylinder, and the bottom surface of the hollow cylinder of the storage module is connected with the image acquisition window surface of the host module; the storage module and the host module are fixedly installed; the image acquisition window surface of the host module is provided with a circle of physical auxiliary connecting structures matched with the containing module;
the running program realizes the cooperative work of all modules of the electronic equipment and completes the statistics of the number of the sticks, and the specific flow is as follows:
step 1: putting the prod-shaped object into the containing module, connecting the electronic equipment to a power supply, and starting a power supply module switch of the electronic equipment;
step 2: electronic device initialization, comprising: initializing a central control and processing module, a display module, an image acquisition module and an interaction module; the image acquisition module initialization comprises: initializing an image sensor and a light supplementing module;
and step 3: the image sensor collects images of the ends of the sticks;
and 4, step 4: the central control and processing module detects whether a parameter adjusting button or a counting starting button is pressed down, if the parameter adjusting button is pressed down, the central control and processing module starts a counting parameter adjusting function, and displays a counting adjusting parameter and a selectable value thereof in the display module, a user presses the parameter adjusting button as required to select parameters, if the counting starting button is pressed down, the central control and processing module starts the counting function to start counting processing of the end part of the stick-shaped object, and the step 5 is switched to; if the central control and processing module detects that the parameter adjusting button or the counting starting button is not pressed, continuing waiting;
and 5: the central control and processing module calls the image data of the image acquisition module into the operation memory module;
step 6: in a central control and processing module, binarizing the image of the end part of the stick-shaped object according to a set binarization threshold value to obtain a binarized image of the end part of the stick-shaped object;
and 7: in a central control and processing module, distance conversion processing is carried out on the binarized image of the end part of the prod shape object to obtain a distance conversion image;
and 8: in the central control and processing module, filtering the distance conversion image according to a set distance conversion filtering threshold value to generate a filtered image;
and step 9: in the central control and processing module, performing connected domain calculation on the filtered image to generate a connected domain topological graph;
step 10: filtering the connected domain topological graph in a central control and processing module according to a connected domain filtering threshold value to generate a connected topological graph and the number n of the filtered connected domains;
step 11: in the central control and processing module, calculating to obtain the number x of the sticks as n, and transmitting the number of the sticks to the operation memory module for storage;
step 12: detecting the set counting mode in the central control and processing module, if the set counting mode is set as the single counting display mode, directly outputting the stick-shaped object number x to the display module, and displaying the stick-shaped object number x by the display module; if the accumulation count time limit mode is set, adding the accumulated quantity of the prods stored in the operation memory module and the prods data at this time, transmitting the added result to the operation memory module to be stored as the accumulated data of the prods, and simultaneously transmitting the accumulated data to the display module to be displayed; if the settlement mode is set, multiplying the number of the sticks by the set price system to obtain a settlement result, and transmitting the settlement result to a display module for displaying;
step 13: if the mode is set as the accumulation counting time limit mode, keeping the accumulated data of the prod-shaped objects in the running memory module, clearing other data, turning to the step 4, and waiting for starting the counting function next time; if the single counting display mode or the checkout mode is set, all data in the running memory are cleared, and the step 4 is carried out to wait for the next counting start button to be pressed.
The beneficial technical effects are as follows:
the invention can break through the thinking of mechanical design and adopts the principles of electronic scanning and image processing, which is rarely considered by the design of the conventional invention. The equipment of the invention adopts an embedded design, and solves many common problems of the work of counting the tags: the speed, accuracy, volume, safety, power consumption, cleaning, operating thresholds, etc. of the tags are counted, in particular in terms of efficiency, the time for counting 100 tags manually is about sixty-seventy seconds, whereas the device ideally requires only a few milliseconds to a few tens of milliseconds. The efficiency of the invention is thousands of times faster than manual efficiency. The accuracy can reach more than 99 percent, which is difficult to achieve by the traditional means of manual number of sticks and electronic scale weighing. In the aspect of practicability, the invention is a complete solution based on equipment, so that the invention can be directly put into production and use without being placed on paper. The biggest pain point in the field of several sticks solved by the invention is as follows: the system has the advantages that the system has the efficiency of counting tags, the time of counting tags in minutes can be saved on average per table, and the basis of the rate of turning the table is increased. If the restaurant is supposed to run in full, if 20 tables can be saved every day, theoretically, 20 tables can be saved for 3 minutes every day by increasing the efficiency of the tags for about 1 hour, and the saved 1 hour can completely provide a new guest; in addition, the equipment of the invention has the advantages of no space occupation, no danger, cleanness, silence, credible result, firmness and durability, and the comprehensive practicability tightly surrounds the core requirements of the store, thereby saving time, trouble and labor. Checkout is faster than before, has not only increased the rate of overturning, has still adapted to chinese's visitor custom: the purchase order is convenient. The traditional mode is troublesome in payment settlement and not friendly to the behavior of robbing a purchase order, the payment settlement is more efficient, and the counting is objective, accurate and reliable; in conclusion, the equipment provided by the invention not only improves the direct profit efficiency of merchants, but also improves the comprehensive satisfaction degree of customers.
Drawings
FIG. 1 is an external view of an electronic device for counting the number of sticks according to an embodiment of the present invention;
FIG. 2 is a schematic circuit diagram of a host module according to an embodiment of the present invention;
FIG. 3 is an external view of a rectangular parallelepiped module according to an embodiment of the present invention;
FIG. 4 is an external view of an electronic device with a cylindrical host module according to an embodiment of the present invention
FIG. 5 is an external view of a cylinder of the host module according to the embodiment of the present invention; (ii) a
FIG. 6 is a flowchart illustrating operation of an electronic device according to an embodiment of the present invention;
FIG. 7 is a timing diagram of a bus start signal and a stop signal according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an exemplary operational memory device interface;
FIG. 9 is a general interface schematic of a peripheral memory element;
FIG. 10 is a schematic diagram of the connection of the interaction module and the central control and processing module of an embodiment of the present invention;
FIG. 11 is a schematic diagram of a connection diagram of a display module and a central control and processing module according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of the connection between the power module and the central control and processing module according to the embodiment of the present invention
Wherein: 1-a storage module; 2-a host module; 3-a display module; 4-counting starting button, 5-switch and 6-parameter adjusting button; 7-a light-transmitting sheet; 8-an upper opening of the receiving module; 9-lower opening of receiving module.
Detailed Description
The invention will be further described with reference to the accompanying drawings and specific examples: the invention provides an electronic device for counting the number of sticks and a using method thereof, and the electronic device for counting the number of sticks as shown in fig. 1 specifically comprises: a receiving module 1 and a host module 2;
the storage module 1 is connected with the host module 2;
the storage module 1 is used for collecting the sticks and assisting the host module 2 in collecting images of the ends of the sticks;
the host module 2 is used for collecting images of the end parts of the sticks, counting the number of the sticks through the collected images and outputting a counting result;
the host module 2 includes: an image acquisition module, a central control and processing module, an operation memory module, a program storage module, a display module 3, a power supply module, an interaction module and a switch, as shown in fig. 2;
the interaction module comprises: a counting start button 4 and a parameter adjusting button 6;
the image acquisition module, the operation memory module, the program storage module, the interaction module, the display module and the power supply module are respectively connected with the central control and processing module;
the image acquisition module, the central control and processing module, the operation memory module and the program storage module are arranged in the host module 1; the counting starting button 4, the switch 5 and the parameter adjusting button 6 are arranged on the outer surface of the host module 1;
the image acquisition module acquires images of the ends of the sticks through an image acquisition window connected with the storage module and transmits the acquired images to the central control and processing module;
the central control and processing module processes the acquired images of the ends of the sticks by using an embedded chip, counts the number of the sticks and sends the counted result to the display module;
the operation memory module uses a storage element to store temporary variable data generated during program operation;
the program storage module stores an operating program and parameters of the operating program by using a data storage element without losing information in case of power failure;
the display module 3 displays the statistical result of the sticks transmitted from the central control and processing module by using an electronic display screen, and the display screen is arranged on the surface of the host module;
the power supply module is used for supplying power to the whole electronic equipment;
the power module can be realized by a plug, a lead and a voltage transformation and stabilization device, and can also be directly powered by a battery; the power supply module is connected with a power supply through a plug, the plug is connected with one end of a wire, the other end of the wire is connected with a switch, the switch is connected with a voltage transformation and stabilization device, and the voltage stabilization device is connected with a power supply port of the central control and processing module;
the parameter adjusting button is used for adjusting counting parameters and counting modes and displaying the adjusting result on the electronic display screen;
the adjusting the counting parameter comprises: a binarization threshold value, a distance transformation filtering threshold value, a connected domain filtering threshold value and a price coefficient;
the price coefficient is the price of each prod;
the counting mode comprises: a single counting display mode, an accumulation counting time limit mode and a checkout mode;
the single counting display mode is used for refreshing the result for each counting;
the accumulation counting time-limit mode is used for displaying an accumulation counting result;
the checkout mode is a result obtained by multiplying the number of the tags by a price coefficient;
the counting starting button is used for starting a counting function;
the image acquisition module includes: the device comprises a light transmitting sheet, an image sensor and a light supplementing module; the image sensor collects images through the light-transmitting sheet;
the light-transmitting sheet 7 can play a role of supporting the visuals, and the end parts of the visuals form images to be acquired on the light-transmitting sheet; the light-transmitting sheet can be a glass sheet or a plastic sheet and the like, and is a wear-resistant and easy-to-clean glass sheet.
The image sensor collects an image to be collected formed on the light-transmitting sheet and transmits the collected image to the central control and processing module;
the light supplementing module adopts a controllable light source element to perform light source balance on the acquired image environment;
the receiving module is a hollow cylinder and comprises a receiving module upper opening 8 and a receiving module lower opening 9;
the host module is a cuboid or a cylinder, and as shown in fig. 3, 4 and 5, the circular surface of the hollow cylinder of the storage module is connected with the image acquisition window surface of the host module; the storage module and the host module are fixedly installed and can be flexibly separated according to requirements; the image acquisition window surface of the host module is provided with a circle of convex grooves or clamping grooves matched with the containing module;
the following modules of the invention are described in detail, but the implementation is not exclusive:
1, an image acquisition module:
in the image acquisition module designed by the invention, the core element is a sensor capable of realizing the optical information acquisition function. Commonly used image sensing devices include CMOS devices and CCD devices. In addition, the image acquisition module also comprises a light supplement module and a window module, the light supplement module is composed of a controllable light source element, the window module is composed of a light transmitting sheet and the like, and the specific content of the light supplement module is described in main application materials.
Taking a typical CMOS type digital image sensor as an example, the functional blocks thereof generally include: control registers, communication and control signals and clocks, photosensitive matrices, data output signals, etc.
The control register controls interface data through a transmission bus and sets the functions of the elements;
in the communication, control signals and clock module, the pixel synchronization clock, row/column synchronization signal, frame synchronization signal, sensor clock signal, external clock signal, etc. and timing related information are controlled by the module.
In the photosensitive matrix, the optical signals are converted into electrical signals here, which are stored as digital images represented by pixel points, after various processes.
In the data output signal module, the photosensitive element usually performs some basic image processing operations according to the configuration of the control register. The part also comprises an image format conversion unit and a compression unit, and the converted data is finally output through a data transmission pin.
The working mode of the image acquisition module is as follows:
the central control and processing module in the device provided by the invention can realize the configuration parameters of the registers of the image acquisition element through bus transmission, common bus modes comprise SCCB, I2C and the like, the principle of the SCCB bus is very similar to that of the I2C, and the difference on the configuration mode is not large. The SCCB bus is used as an example to describe the general bus configuration in the device provided by the present invention.
The bus configuration process in the device of the present invention mainly focuses on 3 states: start signal state, stop signal state, and data validity. When SCL (or SIO _ C) is high, SDA (or SIO _ D) has a falling edge, and SCCB begins transmitting (start signal state). When SCL is high, a rising edge occurs in SDA, and SCCB stops transmitting (signal stop state), as shown in fig. 7.
In the data transmission process, when the SCL is at a high level, it is necessary to ensure that the data on the SDA is stable, that is, the level transition on the SDA can only occur when the SCL is at a low level, and the signal of the SDA is collected when the SCL is at a high level, so that the validity of the bus transmission data can be confirmed in the above situation.
It should be noted that different types of bus communication modes may have certain differences in operation details, but the basic principle is consistent, different bus modes need to be configured according to actual hardware conditions and requirements of specific devices, and are implemented by default bus configuration or analog bus configuration, and selection of an appropriate bus mode may make communication of each element in a device system more efficient.
According to the foregoing, the data acquisition process of the image acquisition module in the apparatus of the present invention is substantially as follows:
(1) writing initialization configuration into a register of the image sensor by using a bus clock line and a bus data line pin through a bus protocol;
(2) after initialization is completed, the image sensor outputs image data by using a time sequence of a specific image format;
(3) as the image sensor continues to output image data in a timing sequence of a specific image format, the image sensor transfers the image data to the data storage area through its clock signal line and data signal line;
(4) when the image sensor finishes outputting one frame of data, the sensor can generate an identification signal which indicates that one frame of image is completely output
(5) After the central controller detects the signal, it can know that the image data of one frame is stored in the storage area, and at the moment, it can output the corresponding control signal to prevent the formed image data from being covered by new data or wasting storage space.
(6) The central controller reads out the whole frame of image data of the storage area. During this time, the image sensor continues to output the image data it has acquired, but since a complete image of a frame has been acquired, the data does not need to be stored in the storage area.
(7) After the central controller reads the image data of the whole frame, the writing authority of the image sensor to the data storage area can be restored, and the process can be repeated according to the operation requirement.
2. The central control and processing module:
in the equipment provided by the invention, the central processing and control module is a control and processing center of the equipment and is responsible for activating key functions of each module component, calling data, executing a program algorithm, calculating a number signature result and the like. The equipment provided by the invention is embedded equipment, and a core chip applied by a central processing and control module of the equipment can be composed of chips such as a single chip Microcomputer (MCU) or a Digital Signal Processor (DSP) chip or a Central Processing Unit (CPU) chip similar to the MCU chip in principle. Theoretically, the bit structure of the core processor can be 8 bits, 16 bits, 32 bits, 64 bits, and a higher processing bit number generally means higher processing performance and potential for memory performance. The dominant frequency of the core processor may be different from KHZ level to GHZ level, and a higher dominant frequency means a higher operation control speed. In view of the field of use of the invention, main processor frequencies above 100MHZ and processing bits above 32 bits are suitable.
Taking a 32-bit MCU processor as an example, when a central control and processing module applied by the device provided by the invention adopts a 32-bit MCU processor chip, the basic interface structure layout of the module is as follows: a power supply interface, a crystal oscillator interface, a program downloading interface, a BOOT interface, a reset interface and a GPIO (General-purpose input/output) interface. The central control and processing module can be divided into a kernel part and a kernel peripheral part, the kernel part mainly refers to the MCU processor, the kernel peripheral part can be provided with an external crystal vibration source, an external power supply, a voltage stabilizing circuit, a downloading circuit and the like according to specific conditions, and the kernel part and the kernel peripheral part jointly form the central control and processing module main body. When the selected main processor is other digit or main frequency, the layout principle of the central control and processing module is basically unchanged.
In the work flow, the central control and processing module is used as a main control module of the whole equipment, and the functions of control and processing are realized according to the scheduled work according to the established program. After the power supply is started, the central control and processing module activates all related modules according to the process, controls image acquisition, controls data transmission and storage, processes acquired data, calculates the number of the tags and displays the number in the display module.
3. Operating the memory module:
the equipment system provided by the invention needs enough running memory space to dynamically process data such as variables formed in the running process of the program in working. In an embedded device, a Static Random Access Memory (SRAM) is a component that is commonly used to store data generated when a program is run, such as a dynamic variable. Generally, the SRAM in the cpu/controller chip is called "RAM", and if one SRAM is externally provided, the operation memory of the device may be increased. The SRAM has the characteristics of quick access and direct address selection, but power-fail data is lost, so the SRAM is suitable for being used as a dynamic variable memory for program operation and is not suitable for storing data needing to be stored.
The device provided by the invention needs to process the image data in real time during operation, so the requirement of operating the memory is higher than that of a common embedded device.
If a central processing/controller element with higher performance and higher cost is used, because the chip can be internally and automatically integrated with enough on-chip SRAM space, the dynamic variable storage task in the working process of the equipment can be completed by the on-chip SRAM without additionally operating a memory module. Therefore, if the performance of the central processing unit is enough to maintain the self-running of the program, the running memory module does not need to be added.
If the performance of the used central processing unit/controller is weak and the built-in on-chip SRAM of the central processing unit/controller cannot be sufficient for operating the memory, the operating memory module provided by the invention needs to be applied. The operation memory module can be composed of SRAM, SDRAM and other memory elements with operation memory characteristics, and addressing and data transmission between elements are carried out through proper communication protocols. The structures and interface forms of the memory elements and communication modes of different peripheral operation may be different, but the basic working principles are communicated.
In the schematic diagram shown in fig. 8, VCC is an operating power supply, GND is a ground terminal, D1-Dn are data IO terminals, the specific values are different in different memory devices, the number of data IO terminals is greater than or equal to 1, and n is used herein for the generality of the present invention. C1-Cn are control interfaces through which the central controller can configure the functions of the connected elements. The number of control interfaces, here denoted by n, varies for different types of components. A1-An are address decoding interfaces, through which the fast addressing of the central controller is realized. The number of address decoding interfaces differs for different types of elements, here denoted by n.
The program storage module provided by the invention is expanded on the basic structure of the peripheral storage element, and a filter circuit, a pull-up resistor and the like are added, so that the element works more stably. For external observation, a typical IO interface form of the program storage module according to the present invention is shown in fig. 1.
4. A program storage module:
in the device system provided by the invention, enough storage space which is not lost when power is off is needed to store the algorithm program in the working process, and in the embedded device system, the commonly used storage modules for storing the program content comprise an on-chip flash, an off-chip flash, an EEPROM, an SD card and the like.
In the equipment system provided by the invention, the used central controller can select various processors, and the operating performance and the storage performance of the processors of different manufacturers and different models are different. If a central processing/controller element with higher performance and higher cost is used, because the chip can be internally and automatically integrated with enough on-chip data storage space, the data storage task in the working process of the equipment can be completed by the on-chip storage unit without additionally arranging a program storage module. Therefore, if the performance of the central processing unit is enough to maintain the self-running of the program, the program storage module does not need to be added.
If the performance of the used central processing unit/controller is weak and the on-chip memory unit of the central processing unit/controller is not enough for program storage and operation, the program storage module provided by the invention needs to be applied. The program storage module of the invention can be composed of peripheral data storage elements such as flash memories, EEPROMs, SD cards and the like which are not lost when power is off, and data transmission among the elements is carried out through a proper bus mode or a communication protocol. The structures and interface forms of different peripheral memory elements and communication modes may be different, but the basic working principles are communicated. As shown in fig. 9.
The program storage module provided by the invention is expanded on the basic structure of the peripheral storage element, and a filter circuit, a pull-up resistor and the like are added, so that the element works more stably. For external observation, the typical IO interface form of the program storage module according to the present invention is shown in fig. 1:
VCC is a working power supply, GND is a ground terminal, D1-Dn are data IO terminals, specific values are different in different memory devices, the number of the data IO terminals is greater than or equal to 1, and the number is represented by n for the universality without limiting the invention. C1-Cn are control interfaces through which the central controller can configure the functions of the connected elements. The number of control interfaces, here denoted by n, varies for different types of components.
5. An interaction module:
the counting starting button and the parameter adjusting button are collectively called as an interactive module, and the interactive module has the main function of transmitting manual instructions of an operator to the central control and processing module so as to further control the running state of the equipment. Through the interaction module, an operator can achieve the purposes of starting a program, debugging working parameters, closing the program, changing a display mode and the like. The physical form of the interaction module can be a solid key layout, or a touch screen interaction layout or a pulley and knob layout, and the like, and the different layouts have certain differences in expression forms, but the basic principles are communicated. The basic principle is to operate the interaction module, realize the mapping from the physical space to the interface space, and further to the program flow. Different physical space touch controls are realized, different interface level states are realized, and then the central control and processing module is activated to execute different operations.
In the use of the device provided by the invention, an operator can realize the related functions of the device by operating the interaction module. As shown in fig. 10.
6. A display module:
the display module has the main function of displaying the working state and the number result of the equipment to an operator through a display screen. The display module can be composed of various typical display screen elements, including various LED, LCD, nixie tube and other devices capable of displaying information. The display module is connected with the central control and processing module, and the main interfaces are a data IO interface, a control interface, a power supply interface and a ground wire interface.
When the device provided by the invention works, if the working state and the tag counting result need to be displayed, the central control and processing module configures the display module through the connected port and transmits related data, as shown in fig. 11.
7. A power supply module:
the main function of the power supply module is to provide power supply for the equipment. Under normal conditions, in order to keep the device stable and operating for a long time, the external voltage of the device may be 5 vdc, or may be 9 vdc, or may be 12 vdc, or other voltages. In different specific component models and specific working environments, the total external power supply voltage of the applicable equipment may be different, the rated voltage directly connected to the central control and processing module through the power supply module may also be different (usually 3V-5V, or higher), the specific application condition may be configured according to each component data manual, the basic principle of the work is consistent under different voltage conditions, and there is no obvious difference in hardware layout.
The hardware layout structure of the power module mainly comprises an external power supply and a voltage stabilizing and reducing circuit, and a typical layout structure is shown in fig. 12; fig. 12 illustrates a 5V power supply, and the source power supply forms a stable 3.3V power supply through a voltage stabilizing and reducing circuit, and is directly connected to the central control and processing module, so as to provide a working power supply for the whole device.
The external power supply can be a battery device, or a 220V alternating current or other power supplies which meet input conditions after voltage reduction and voltage stabilization or voltage increase and voltage stabilization.
An electronic device using method for counting the number of sticks is implemented by the electronic device for counting the number of sticks, so that all modules of the electronic device can cooperatively work to complete the counting of the number of sticks, and a person skilled in the art can easily use programs to implement various functions according to the description of the electronic device, as shown in fig. 6, the specific flow is as follows:
step 1: putting the prod-shaped object into the containing module 1, connecting the electronic equipment to a power supply, and starting a power supply module switch of the electronic equipment;
step 2: electronic device initialization, comprising: initializing a central control and processing module, a display module, an image acquisition module and an interaction module; the image acquisition module initialization comprises: initializing an image sensor and a light supplementing module;
and step 3: the image sensor collects images of the ends of the sticks;
and 4, step 4: the central control and processing module detects whether the parameter adjusting button or the counting starting button is pressed, if the parameter adjusting button is pressed, the central control and processing module starts a function of adjusting the counting parameter and displays the adjusting counting parameter and a selectable value thereof in the display module, a user presses the parameter adjusting button as required to select the parameter, and the step 5 is carried out after the parameter setting is finished; if the counting start button is pressed, the central control and processing module starts the counting function, starts the counting processing of the end part of the stick-shaped object and goes to the step 5; if the central control and processing module detects that the parameter adjusting button or the counting starting button is not pressed, continuing waiting;
and 5: the central control and processing module calls the image data of the image acquisition module into the operation memory module;
step 6: in a central control and processing module, binarizing the image of the end part of the stick-shaped object according to a set binarization threshold value to obtain a binarized image of the end part of the stick-shaped object;
and 7: in a central control and processing module, distance conversion processing is carried out on the binarized image of the end part of the prod shape object to obtain a distance conversion image;
and 8: in the central control and processing module, filtering the distance conversion image according to a set distance conversion filtering threshold value to generate a filtered image;
and step 9: in the central control and processing module, performing connected domain calculation on the filtered image to generate a connected domain topological graph;
step 10: filtering the connected domain topological graph in a central control and processing module according to a connected domain filtering threshold value to generate a connected topological graph and the number n of the filtered connected domains;
step 11: in the central control and processing module, calculating to obtain the number x of the sticks as n, and transmitting the number of the sticks to the operation memory module for storage;
step 12: detecting the set counting mode in the central control and processing module, if the set counting mode is set as the single counting display mode, directly outputting the stick-shaped object number x to the display module, and displaying the stick-shaped object number x by the display module; if the accumulation count time limit mode is set, adding the accumulated quantity of the prods stored in the operation memory module and the prods data at this time, transmitting the added result to the operation memory module to be stored as the accumulated data of the prods, and simultaneously transmitting the accumulated data to the display module to be displayed; if the settlement mode is set, multiplying the number of the sticks by the set price system to obtain a settlement result, and transmitting the settlement result to a display module for displaying;
step 13: if the mode is set as the accumulation counting time limit mode, keeping the accumulated data of the prod-shaped objects in the running memory module, clearing other data, turning to the step 4, and waiting for starting the counting function next time; if the single counting display mode or the checkout mode is set, all data in the running memory are cleared, and the step 4 is carried out to wait for the next counting start button to be pressed.
In summary, the practical effects of the invention are as follows:
in the design of the equipment for counting the tags, the first reflection of most people starts from the mechanical principle, and the tags are counted by combining an active or passive transmission structure with a certain photoelectric or mechanical technology sensing and counting device. However, in practical practice, it is not easy to find that such a design not only occupies a large space, but also has obvious defects in the aspects of counting speed, accuracy, power consumption, safety, comfort and the like, and it can only be said that such a design only theoretically replaces a part of manual work of an operator, but is not suitable in practical application. For decades, the work of counting sticks has not been well automated substitute products, but the weighing mode is only a 'method without way'. The device provided by the invention develops a new way, bypasses the trap of a counting structure with mechanical transmission, adopts the principle of optical image scanning and is embodied in the form of the device, finds out the unique optical characteristics of the label class objects, and well solves the problem of difficulty in counting labels by means of design and research.
The invention provides a whole set of comprehensive solution based on equipment for the log-signature method, and the existing solution in the market does not have good products which can comprehensively solve the contradictions of efficiency, accuracy, volume, safety, power consumption, reliability, threshold and the like. In general, an invention can only focus on resolving one or a few of the composite conflicts, but not all. The device provided by the invention solves most of contradictions existing in the technical field of digital signatures at one stroke, and has the advantages of high recognition speed, accurate result, flexibility, small size, safety, electricity saving, cleanness, quietness, reliability, durability, rapid application, strong adaptability and low cost.
In the aspect of efficiency, the maximum pain point of a multi-label market, under the ideal condition, the equipment number-label rate of the invention can reach hundreds of times of the manual number-label rate, batch counting can be completed within 1 second, the specific rate is determined by the main frequency of a processor in a host module, if a high-grade processing chip is matched, the counting rate can reach thousands of times of the manual speed, and the revolutionary advantage of the multi-label efficiency is achieved. In other attributes, the recognition accuracy rate is more than 99% in combination with the optimization algorithm used by the invention under an ideal condition; the power consumption of ma milliampere level is lower than that of the mobile phone; the noise is low, and is quieter than manual operation; the electric shock risk is low, and the working voltage is lower than 9V; no decoration cost is caused, and any environment layout is not required to be changed; the threshold is zero, and the user can start the device without any special training; the novel table is small in occupied area and small in size, can replace a common traditional cartridge on a table and can also be placed in a bar counter or a hand, and therefore, any table top space does not need to be additionally occupied; no pollution, convenient cleaning and no dirt.

Claims (5)

1. An electronic device for counting the number of sticks, comprising: a storage module and a host module;
the storage module is connected with the host module;
the storage module is used for collecting the sticks and assisting the host module in collecting images of the ends of the sticks;
the host module is used for collecting images of the ends of the sticks, counting the number of the sticks through the collected images and outputting a counting result.
2. The electronic device for counting the number of sticks according to claim 1, wherein the host module comprises: the system comprises an image acquisition module, a central control and processing module, an operation memory module, a program storage module, a display module, a power supply module, an interaction module and a switch;
the interaction module comprises: a counting start button and a parameter adjusting button;
the image acquisition module, the operation memory module, the program storage module, the interaction module, the display module and the power supply module are respectively connected with the central control and processing module;
the image acquisition module, the central control and processing module, the operation memory module and the program storage module are arranged in the host module; the counting starting button, the switch and the parameter adjusting button are arranged on the outer surface of the host module;
the image acquisition module acquires images of the ends of the sticks through an image acquisition window connected with the storage module and transmits the acquired images to the central control and processing module;
the central control and processing module processes the acquired images of the ends of the sticks by using an embedded chip, counts the number of the sticks and sends the counted result to the display module;
the operation memory module uses a storage element to store temporary variable data generated during program operation;
the program storage module stores an operating program and parameters of the operating program by using a data storage element without losing information in case of power failure;
the display module uses an electronic display screen to display the statistical result of the prods transmitted from the central control and processing module, and the display screen is arranged on the surface of the host module;
the power supply module is used for supplying power to the whole electronic equipment;
the parameter adjusting button is used for adjusting counting parameters and counting modes and displaying the adjusting result on the electronic display screen;
the adjusting the counting parameter comprises: a binarization threshold value, a distance transformation filtering threshold value, a connected domain filtering threshold value and a price coefficient;
the price data is the price of each prod;
the counting mode comprises: a single counting display mode, an accumulation counting time limit mode and a checkout mode;
the single counting display mode is used for refreshing the result for each counting;
the accumulation counting time-limit mode is used for displaying an accumulation counting result;
the checkout mode is a result obtained by multiplying the number of the tags by a price coefficient;
and the counting starting button is used for starting a counting function.
3. The electronic device for counting the number of sticks according to claim 2, wherein the receiving module is a hollow cylinder;
the host module is a cuboid or a cylinder, and the bottom surface of the hollow cylinder of the storage module is connected with the image acquisition window surface of the host module; the storage module and the host module are fixedly installed; the image acquisition window surface of the host module is provided with a circle of physical auxiliary connecting structure matched with the containing module.
4. The electronic device for counting the number of sticks according to claim 2, wherein the image acquisition module comprises: the device comprises a light transmitting sheet, an image sensor and a light supplementing module; the end part of the stick-shaped object is contacted with the light-transmitting sheet, and the image sensor acquires an image through the light-transmitting sheet;
the light-transmitting sheet can play a role in supporting the visuals, and the end parts of the visuals form images to be acquired on the light-transmitting sheet;
the image sensor collects an image to be collected formed on the light-transmitting sheet and transmits the collected image to the central control and processing module;
the light supplementing module adopts a controllable light source element to perform light source balance on the acquired image environment.
5. An electronic device using method for counting the number of sticks is realized by the electronic device for counting the number of sticks according to claim 1, and is characterized by comprising the following specific steps: step 1: putting the prod-shaped object into the containing module, connecting the electronic equipment to a power supply, and starting a power supply module switch of the electronic equipment;
step 2: electronic device initialization, comprising: initializing a central control and processing module, a display module, an image acquisition module and an interaction module; the image acquisition module initialization comprises: initializing an image sensor and a light supplementing module;
and step 3: the image sensor collects images of the ends of the sticks;
and 4, step 4: the central control and processing module detects whether a parameter adjusting button or a counting starting button is pressed down, if the parameter adjusting button is pressed down, the central control and processing module starts a counting parameter adjusting function, and displays a counting adjusting parameter and a selectable value thereof in the display module, a user presses the parameter adjusting button as required to select parameters, if the counting starting button is pressed down, the central control and processing module starts the counting function to start counting processing of the end part of the stick-shaped object, and the step 5 is switched to; if the central control and processing module detects that the parameter adjusting button or the counting starting button is not pressed, continuing waiting;
and 5: the central control and processing module calls the image data of the image acquisition module into the operation memory module;
step 6: in a central control and processing module, binarizing the image of the end part of the stick-shaped object according to a set binarization threshold value to obtain a binarized image of the end part of the stick-shaped object;
and 7: in a central control and processing module, distance conversion processing is carried out on the binarized image of the end part of the prod shape object to obtain a distance conversion image;
and 8: in the central control and processing module, filtering the distance conversion image according to a set distance conversion filtering threshold value to generate a filtered image;
and step 9: in the central control and processing module, performing connected domain calculation on the filtered image to generate a connected domain topological graph;
step 10: filtering the connected domain topological graph in a central control and processing module according to a connected domain filtering threshold value to generate a connected topological graph and the number n of the filtered connected domains;
step 11: in the central control and processing module, calculating to obtain the number x of the sticks as n, and transmitting the number of the sticks to the operation memory module for storage;
step 12: detecting the set counting mode in the central control and processing module, if the set counting mode is set as the single counting display mode, directly outputting the stick-shaped object number x to the display module, and displaying the stick-shaped object number x by the display module; if the accumulation count time limit mode is set, adding the accumulated quantity of the prods stored in the operation memory module and the prods data at this time, transmitting the added result to the operation memory module to be stored as the accumulated data of the prods, and simultaneously transmitting the accumulated data to the display module to be displayed; if the settlement mode is set, multiplying the number of the sticks by the set price system to obtain a settlement result, and transmitting the settlement result to a display module for displaying;
step 13: if the mode is set as the accumulation counting time limit mode, keeping the accumulated data of the prod-shaped objects in the running memory module, clearing other data, turning to the step 4, and waiting for starting the counting function next time; if the single counting display mode or the checkout mode is set, all data in the running memory are cleared, and the step 4 is carried out to wait for the next counting start button to be pressed.
CN201910397247.4A 2019-05-14 2019-05-14 Electronic equipment for counting number of sticks and using method Pending CN111951209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910397247.4A CN111951209A (en) 2019-05-14 2019-05-14 Electronic equipment for counting number of sticks and using method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910397247.4A CN111951209A (en) 2019-05-14 2019-05-14 Electronic equipment for counting number of sticks and using method

Publications (1)

Publication Number Publication Date
CN111951209A true CN111951209A (en) 2020-11-17

Family

ID=73335412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910397247.4A Pending CN111951209A (en) 2019-05-14 2019-05-14 Electronic equipment for counting number of sticks and using method

Country Status (1)

Country Link
CN (1) CN111951209A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2626990A1 (en) * 1988-02-08 1989-08-11 Cerisy Sa Method and system for counting discrete manufactured objects
CN101221631A (en) * 2008-01-24 2008-07-16 宁波盛光包装印刷有限公司 High speed paper counter based on image sensor
JP2011039872A (en) * 2009-08-13 2011-02-24 Komatsu Denshi Kk Device and method for counting article
US20110114029A1 (en) * 2009-11-17 2011-05-19 Chu Chien-Hung Aquatic-animal counting system, aquatic-animal counting method, and recording medium
CN106384357A (en) * 2016-10-25 2017-02-08 张志能 Stick counting method and stick counting device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2626990A1 (en) * 1988-02-08 1989-08-11 Cerisy Sa Method and system for counting discrete manufactured objects
CN101221631A (en) * 2008-01-24 2008-07-16 宁波盛光包装印刷有限公司 High speed paper counter based on image sensor
JP2011039872A (en) * 2009-08-13 2011-02-24 Komatsu Denshi Kk Device and method for counting article
US20110114029A1 (en) * 2009-11-17 2011-05-19 Chu Chien-Hung Aquatic-animal counting system, aquatic-animal counting method, and recording medium
CN106384357A (en) * 2016-10-25 2017-02-08 张志能 Stick counting method and stick counting device

Similar Documents

Publication Publication Date Title
CN109741519B (en) Unmanned supermarket shelf monitoring system and control method thereof
CN103645804A (en) Method and device for identifying human body gestures as well as watch using device
CN102868392B (en) Portability key circuit
CN109523691B (en) Unmanned supermarket shelf monitoring device
CN109932039A (en) A kind of intelligent scale based on image recognition
CN109740579A (en) A kind of fast food cash register system based on dish intelligent recognition
CN111951209A (en) Electronic equipment for counting number of sticks and using method
CN109598877A (en) A kind of cash register system of the intelligent tableware of barcode scanning payment
CN107315981A (en) Portable bar code scanning device and data high-efficient treatment method
CN205281683U (en) Device is sold to double screen extreme point
CN212160823U (en) Metering and selling control system for wine dispenser
CN204926185U (en) A client positioning system for dining room
CN210605969U (en) Dish self-service settlement equipment and system
CN212779533U (en) Electronic scale with automatic dish identification function and control circuit thereof
CN104764515A (en) Intelligent electronic scale based on ZigBee and RFID
CN209560658U (en) A kind of cash register system of the intelligent tableware of barcode scanning payment
CN209605921U (en) A kind of intelligent scale based on image recognition
CN203606898U (en) Intelligent self-selection type consumption management instrument of hot-pot restaurants
CN205880973U (en) Various all -in -one of silver
CN106667152A (en) Intelligent dressing mirror
CN213545457U (en) Business handling response circuit, wearable response device and bank response equipment
CN210295261U (en) Vending machine control system based on 2G honeycomb module
CN213659549U (en) Client terminal equipment and banking business processing system
CN210324159U (en) Intelligent dining plate installed on dining table
CN214410189U (en) Novel meal article intelligence sells POS machine by oneself

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201117

RJ01 Rejection of invention patent application after publication