Disclosure of Invention
The invention has at least the following two important points:
(1) on the basis of targeted image processing, the thickness of the residual bag-making set of the beverage shop is detected with high precision, and when the thickness of the residual bag-making set of the beverage shop cannot meet the requirement of the current takeout order, a bag-making ordering request is sent to a manager of the beverage shop in a wireless mode, so that the automatic management capability of the shop is improved;
(2) the number of pixel points occupied by the target with the largest area in the image is used as an area reference value to determine the image complexity in direct proportion to the area reference value, so that when the image complexity is too high, the data processing rate of subsequent dynamic range adjusting equipment is improved, and the compatibility of data bandwidth among the equipment is realized.
According to an aspect of the present invention, there is provided a blockchain data acquisition platform, the platform comprising:
the block chain acquisition equipment acquires the current residual quantity of the takeout orders of the beverage shop as the current order quantity through a network;
the pixel analysis equipment is connected with the dynamic range adjustment equipment and is used for taking pixel points of gray values in the field adjustment image between the upper limit gray threshold value and the lower limit gray threshold value of the packaging bag as packaging bag pixel points;
the thickness identification device is connected with the pixel analysis device and is used for combining all packing pixel points in the field adjustment image into a packing bag side pattern and carrying out average calculation on the number of all constituting pixel points of all pixel rows in the packing bag side pattern to obtain a width reference value;
the thickness identification device also determines the current thickness of the packing bag set based on the proportion of the width reference value occupying the number of pixel points of each row group of the field adjustment image and the horizontal distance from the wired capturing device to the transverse packing bag set;
the request triggering equipment is respectively connected with the thickness identification equipment and the block chain acquisition equipment and is used for determining the corresponding required thickness of the packaging bag based on the current order number and sending a packaging bag ordering request when the current thickness is smaller than the required thickness of the packaging bag, otherwise, sending a packaging bag surplus signal
The WIFI communication interface is connected with the request triggering device and used for wirelessly forwarding the bag ordering request to a mobile terminal of a drink shop manager when the bag ordering request is received;
the wired capturing device is arranged in the beverage shop and used for laterally acquiring image data of a transversely placed bag set in the beverage shop so as to obtain and output a corresponding laterally captured image;
the gamma correction device is connected with the wired capture device and used for receiving the side captured image and executing gamma correction processing on the side captured image so as to obtain and output a corresponding gamma correction image;
the area acquisition equipment is used for receiving the gamma correction image, carrying out area acquisition on each target in the gamma correction image and outputting the number of pixel points occupied by the target with the largest area as an area reference value;
the command triggering device is connected with the area acquisition device and used for receiving the area reference value and sending a first control command when the area reference value is larger than or equal to a preset number threshold;
the MMC memory chip is connected with the command trigger equipment and used for storing the preset quantity threshold value;
and the command triggering equipment is also used for sending a second control command when the area reference value is smaller than the preset number threshold.
The block chain data acquisition platform is wide in application and reliable in data. The thickness of the residual bag-making set of the beverage shop is effectively detected, and when the thickness of the residual bag-making set of the beverage shop cannot meet the requirement of the current takeout order, a bag-making ordering request is sent to a manager of the beverage shop, so that the automatic management capability of the shop is improved.
Detailed Description
Embodiments of the blockchain data acquisition platform of the present invention will be described in detail below with reference to the accompanying drawings.
The plastic brings convenience to the life of people and brings difficult-to-collect aftertroubles to the environment, and the disaster of the plastic to the environment is called as 'white pollution'.
Many countries adopt methods of incineration (thermal energy regeneration) or reprocessing manufacturing (product regeneration) to treat waste plastics. The two methods can recycle the waste plastics, thereby achieving the purpose of saving resources. However, the waste plastics can generate gases harmful to human bodies when being incinerated or reprocessed, so that the environment is polluted, and the treatment of the waste plastics is still a great problem which is very painful in environmental protection work.
The packing bag is generally of a Plastic bag structure, and Plastic bags (Plastic bags) are bags made of plastics (common plastics include polypropylene, polyester, nylon and the like) as main raw materials, are essential articles in daily life of people, and are often used for containing other articles. The plastic bag has the advantages of low price, extremely light weight, large capacity and convenient storage, but is prohibited from production and use by some countries due to the defects of extremely long degradation period and difficult processing of the plastic bag.
At present, in the drink shop that the street is common, the packing bag is one of the most common consumptive material, because the development of block chain technique and the popularization of network equipment, people generally arrange the order through the network, if present order volume is too much, and the quantity of packing bag can't satisfy the requirement, probably will break the normal operation of drink shop.
In order to overcome the defects, the invention builds a block chain data acquisition platform, and can effectively solve the corresponding technical problem.
Fig. 1 is a schematic external view of a single packing bag referenced by a blockchain data acquisition platform according to an embodiment of the present invention.
The block chain data acquisition platform shown according to the embodiment of the invention comprises:
the block chain acquisition equipment acquires the current residual quantity of the takeout orders of the beverage shop as the current order quantity through a network;
the pixel analysis equipment is connected with the dynamic range adjustment equipment and is used for taking pixel points of gray values in the field adjustment image between the upper limit gray threshold value and the lower limit gray threshold value of the packaging bag as packaging bag pixel points;
the thickness identification device is connected with the pixel analysis device and is used for combining all packing pixel points in the field adjustment image into a packing bag side pattern and carrying out average calculation on the number of all constituting pixel points of all pixel rows in the packing bag side pattern to obtain a width reference value;
the thickness identification device also determines the current thickness of the packing bag set based on the proportion of the width reference value occupying the number of pixel points of each row group of the field adjustment image and the horizontal distance from the wired capturing device to the transverse packing bag set;
the request triggering equipment is respectively connected with the thickness identification equipment and the block chain acquisition equipment and is used for determining the corresponding required thickness of the packaging bag based on the current order number and sending a packaging bag ordering request when the current thickness is smaller than the required thickness of the packaging bag, otherwise, sending a packaging bag surplus signal
The WIFI communication interface is connected with the request triggering device and used for wirelessly forwarding the bag ordering request to a mobile terminal of a drink shop manager when the bag ordering request is received;
the wired capturing device is arranged in the beverage shop and used for laterally acquiring image data of a transversely placed bag set in the beverage shop so as to obtain and output a corresponding laterally captured image;
the gamma correction device is connected with the wired capture device and used for receiving the side captured image and executing gamma correction processing on the side captured image so as to obtain and output a corresponding gamma correction image;
the area acquisition equipment is used for receiving the gamma correction image, carrying out area acquisition on each target in the gamma correction image and outputting the number of pixel points occupied by the target with the largest area as an area reference value;
the command triggering device is connected with the area acquisition device and used for receiving the area reference value and sending a first control command when the area reference value is larger than or equal to a preset number threshold;
the MMC memory chip is connected with the command trigger equipment and used for storing the preset quantity threshold value;
the command triggering device is further used for sending a second control command when the area reference value is smaller than the preset number threshold;
the rate control equipment is respectively connected with the dynamic range adjusting equipment and the command triggering equipment and is used for increasing the data processing rate of the dynamic range adjusting equipment to be higher than the default processing rate when the first control command is received;
the rate control device is further configured to maintain the data processing rate of the dynamic range adjustment device as a default processing rate when receiving the second control command;
and the dynamic range adjusting device is respectively connected with the gamma correction device and the rate control device and is used for executing dynamic range adjustment on the received gamma correction image so as to obtain a field adjustment image.
Next, the specific structure of the blockchain data acquisition platform of the present invention will be further described.
In the blockchain data acquisition platform:
the rate control device, the dynamic range adjustment device and the command trigger device share the same power supply.
In the blockchain data acquisition platform:
the rate control device, the dynamic range adjustment device and the command trigger device are respectively realized by adopting programmable logic devices of different models.
In the blockchain data acquisition platform:
the MMC memory chip is also connected with the rate control equipment and is used for pre-storing the default processing rate.
In the block chain data acquisition platform, further comprising:
and the radial radius acquisition equipment is connected with the dynamic range adjustment equipment and is used for receiving the field adjustment image, carrying out spot identification on the field adjustment image to obtain each spot area in the field adjustment image, measuring the radial radius of each spot area, and sorting the radial radius of each spot area to obtain the maximum radial radius in the spot areas.
In the block chain data acquisition platform, further comprising:
and the window defining equipment is connected with the radial radius acquisition equipment and is used for acquiring the shape of the spot area corresponding to the maximum radial radius and determining a corresponding mean value filtering window based on the shape of the spot area corresponding to the maximum radial radius.
In the block chain data acquisition platform, further comprising:
the signal replacement equipment is respectively connected with the radial radius acquisition equipment and the window definition equipment and is used for receiving the mean value filtering window and executing the following filtering processing operation on pixel points of the field adjustment image: in the field adjustment image, acquiring each pixel value of each pixel point in a mean filtering window taking the pixel point of the field adjustment image as a center to be used as a target pixel value, wherein the closer the pixel point of the field adjustment image is to the pixel point of the field adjustment image in the mean filtering window taking the pixel point of the field adjustment image as the center, the larger the weight coefficient is, and the replacement pixel value of the pixel point of the field adjustment image is determined based on each target pixel value and the corresponding weight coefficient respectively to replace the original pixel value of the pixel point of the field adjustment image, so that a data replacement image corresponding to the field adjustment image is obtained; in the signal replacement device, determining replacement pixel values of the pixels of the field adjustment image based on the respective target pixel values and the respective corresponding weight coefficients to replace original pixel values of the pixels of the field adjustment image includes: and multiplying each target pixel value by the corresponding weight coefficient to obtain a product term corresponding to the target pixel value, adding the product terms of the target pixel values, and dividing the addition result by the sum of the weight coefficients of the target pixel values to obtain a replacement pixel value of a pixel point of the field adjustment image.
In the blockchain data acquisition platform:
the signal replacing device is also connected with the pixel analyzing device and used for sending the data replacing image to the pixel analyzing device instead of the field adjusting image;
the signal replacement device comprises a filtering window receiving unit, a distance detection unit, a weight coefficient determination unit and a filtering execution unit.
In the blockchain data acquisition platform:
the distance detection unit is respectively connected with the filtering window receiving unit and the weight coefficient determining unit;
wherein, the weight coefficient determining unit is respectively connected with the distance detecting unit and the filtering executing unit.
In the blockchain data acquisition platform:
in the window defining device, determining the respective mean filter window based on the shape of the spot region corresponding to the maximum radial radius comprises: the shape of the corresponding mean filtering window is matched with the shape of the spot area corresponding to the maximum radial radius;
wherein, in the window defining device, determining the corresponding mean filter window based on the shape of the spot region corresponding to the maximum radial radius comprises: the radial radius of the corresponding mean filter window matches the maximum radial radius.
Additionally, WIFI is a technology that allows an electronic device to connect to a Wireless Local Area Network (WLAN), typically using the 2.4G UHF or 5G SHF ISM radio frequency bands. Connecting to a wireless local area network is typically password protected; but may be open, allowing any device within range of the WLAN to connect. WIFI is a brand of wireless network communication technology, held by the WIFI alliance. The object is to improve the interoperability between wireless network products based on the IEEE 802.11 standard. Local area networks using the IEEE 802.11 family of protocols are known as wireless fidelity. Even WIFI is equated to the wireless internet (WIFI is an important component of WLAN).
The wireless network internet access can be simply understood as wireless internet access, almost all smart phones, tablet computers and notebook computers support WIFI internet access, and the wireless network transmission technology is the most widely used wireless network transmission technology at present. In effect, the wired network signal is converted to a wireless signal, as described at the outset, using a wireless router for reception by the relevant computer, cell phone, tablet, etc. supporting its technology. If the mobile phone has the WIFI function, the mobile phone can surf the internet without a mobile communication network when a WIFI wireless signal exists, and traffic cost is saved.
Wireless networking of wireless networks is commonly used in large cities, and although the wireless communication quality transmitted by the WIFI technology is not good, the data security performance is poorer than that of Bluetooth, the transmission quality needs to be improved, the transmission speed is very high, 54Mbps can be achieved, and the requirements of personal and social informatization are met. The main advantage of WIFI is that it does not need wiring, and it can not be limited by wiring conditions, so it is very suitable for the needs of mobile office users, and because the transmission signal power is lower than 100mw, and lower than the transmission power of mobile phone, it is relatively the safest and healthier to access the internet via WIFI.
It is to be understood that while the present invention has been described in conjunction with the preferred embodiments thereof, it is not intended to limit the invention to those embodiments. It will be apparent to those skilled in the art from this disclosure that many changes and modifications can be made, or equivalents modified, in the embodiments of the invention without departing from the scope of the invention. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention, unless the contents of the technical solution of the present invention are departed.