Traditional Chinese medicine weighing system control method and traditional Chinese medicine weighing system

文档序号:1404572 发布日期:2020-03-06 浏览:31次 中文

阅读说明:本技术 一种中药称量系统控制方法及中药称量系统 (Traditional Chinese medicine weighing system control method and traditional Chinese medicine weighing system ) 是由 刘安逸 刘怀广 于 2019-11-27 设计创作,主要内容包括:本发明公开了一种中药称量系统控制方法及中药称量系统,所述中药称量系统包括:秤盘、摄像头及处理器,所述秤盘的上表面设有多个呈阵列设置的称重传感器,所述摄像头、多个所述称重传感器均与所述处理器电连接,其特征在于,所述控制方法包括如下步骤:获取所述摄像头采集的所述秤盘的中药放置照片;根据所述中药放置照片获取中药的类型及各类中药对应的位置信息;根据所述位置信息获取每种中药对应的重量信息;根据各所述位置信息和对应的重量信息输出称量提示信息。(The invention discloses a control method of a traditional Chinese medicine weighing system and the traditional Chinese medicine weighing system, wherein the traditional Chinese medicine weighing system comprises: the scale comprises a scale pan, a camera and a processor, wherein a plurality of weighing sensors arranged in an array are arranged on the upper surface of the scale pan, and the camera and the weighing sensors are electrically connected with the processor, and the control method comprises the following steps: acquiring a traditional Chinese medicine placing picture of the scale collected by the camera; acquiring the types of the traditional Chinese medicines and the position information corresponding to various traditional Chinese medicines according to the traditional Chinese medicine placing picture; acquiring weight information corresponding to each traditional Chinese medicine according to the position information; and outputting weighing prompt information according to the position information and the corresponding weight information.)

1. A control method of a traditional Chinese medicine weighing system is characterized in that the traditional Chinese medicine weighing system comprises: the scale comprises a scale pan, a camera and a processor, wherein a plurality of weighing sensors arranged in an array are arranged on the upper surface of the scale pan, and the camera and the weighing sensors are electrically connected with the processor, and the control method comprises the following steps:

acquiring a traditional Chinese medicine placing picture of the scale collected by the camera;

acquiring the types of the traditional Chinese medicines and the position information corresponding to various traditional Chinese medicines according to the traditional Chinese medicine placing picture;

acquiring the weight information of each traditional Chinese medicine collected by the corresponding weighing sensor according to the position information;

and outputting weighing prompt information according to the position information and the corresponding weight information.

2. The control method of the traditional Chinese medicine weighing system of claim 1, wherein the step of obtaining the traditional Chinese medicine placing picture of the scale collected by the camera further comprises the following steps:

acquiring stress parameters of each weighing sensor in real time;

and when at least one weighing sensor is identified to be in a stress state, controlling to start the camera.

3. The control method of the traditional Chinese medicine weighing system according to claim 2, wherein the step of obtaining the type of traditional Chinese medicine and the position information corresponding to each type of traditional Chinese medicine according to the traditional Chinese medicine placing picture specifically comprises the following steps:

acquiring coordinate range information of each weighing sensor in a stressed state;

acquiring a subimage corresponding to each weighing sensor in a stressed state according to the coordinate range information of each weighing sensor in the stressed state;

identifying each subimage through an artificial neural network algorithm to obtain a corresponding traditional Chinese medicine category;

and acquiring the sum of the weighing counts of the weighing sensors belonging to the same category of traditional Chinese medicines as the weight information corresponding to the category of traditional Chinese medicines.

4. The control method of the traditional Chinese medicine weighing system according to claim 3, wherein the outputting of the weighing prompt information according to each of the position information and the corresponding weight information specifically comprises the steps of:

acquiring unit price information of various types of medicines;

acquiring total price information of the traditional Chinese medicine according to the unit price information and the corresponding weight information of various medicines;

and displaying the total price information of the traditional Chinese medicines through media equipment.

5. The method of claim 4, wherein the displaying the total price information of the traditional Chinese medicine through a media device comprises printing a detailed price sheet of the traditional Chinese medicine through a printer.

6. A traditional chinese medicine weighing system, its characterized in that, traditional chinese medicine weighing system includes: scale, camera and treater, the upper surface of scale is equipped with a plurality of weighing sensor that are the array setting, camera, a plurality of weighing sensor all with the treater electricity is connected, traditional chinese medicine weighing system still includes:

the photo acquisition module is used for acquiring the traditional Chinese medicine placing photos of the scale acquired by the camera;

the position information acquisition module is used for acquiring the types of the traditional Chinese medicines and the position information corresponding to various traditional Chinese medicines according to the traditional Chinese medicine placing picture;

the weight information acquisition module is used for acquiring weight information corresponding to each traditional Chinese medicine according to the position information;

and the information output module is used for outputting weighing prompt information according to the position information and the corresponding weight information.

7. The traditional Chinese medicine weighing system of claim 6, further comprising:

the acceptance parameter acquisition module is used for acquiring the stress parameters of the weighing sensors in real time;

and the camera control module is used for controlling and starting the camera when recognizing that at least one weighing sensor is in a stress state.

8. The control method of the traditional Chinese medicine weighing system of claim 7, wherein the position information obtaining module comprises:

the coordinate range acquisition submodule is used for acquiring coordinate range information of each weighing sensor in a stressed state;

the image segmentation submodule is used for acquiring sub-images corresponding to the weighing sensors in the stress state according to the coordinate range information of the weighing sensors in the stress state;

the image identification submodule is used for identifying each subimage through an artificial neural network algorithm to acquire a corresponding traditional Chinese medicine category;

and the weight summation submodule is used for acquiring the sum of the weighing counts of the weighing sensors belonging to the same category of traditional Chinese medicines as weight information corresponding to the category of traditional Chinese medicines.

9. The control method of the traditional Chinese medicine weighing system of claim 8, wherein the information output module comprises:

the drug unit price acquisition submodule is used for acquiring unit price information of various types of drugs;

the medicine total price calculating submodule is used for acquiring the total price information of the traditional Chinese medicine according to the unit price information and the corresponding weight information of various medicines;

and the media display control submodule is used for displaying the total price information of the traditional Chinese medicines through media equipment.

10. The control method of the traditional Chinese medicine weighing system of claim 9, wherein the media display control submodule comprises a printer control module for controlling a printer to print the traditional Chinese medicine detail price list.

Technical Field

The invention relates to the field of weighing equipment, in particular to a control method of a traditional Chinese medicine weighing system and the traditional Chinese medicine weighing system.

Background

The traditional Chinese medicine prescription is composed of a plurality of different medicaments, when a pharmacy takes the medicine, different traditional Chinese medicines need to be weighed for a plurality of times to form a final medicine bag, and the problem of inconvenient weighing exists.

Disclosure of Invention

The invention mainly aims to provide a control method of a traditional Chinese medicine weighing system and the traditional Chinese medicine weighing system, and aims to improve the convenience of weighing traditional Chinese medicines.

In order to achieve the above object, the present invention provides a control method for a traditional Chinese medicine weighing system, which comprises: the scale comprises a scale pan, a camera and a processor, wherein a plurality of weighing sensors arranged in an array are arranged on the upper surface of the scale pan, and the camera and the weighing sensors are electrically connected with the processor, and the control method comprises the following steps:

acquiring a traditional Chinese medicine placing picture of the scale collected by the camera;

acquiring the types of the traditional Chinese medicines and the position information corresponding to various traditional Chinese medicines according to the traditional Chinese medicine placing picture;

acquiring the weight information of each traditional Chinese medicine collected by the corresponding weighing sensor according to the position information;

and outputting weighing prompt information according to the position information and the corresponding weight information.

Preferably, the step of obtaining the traditional Chinese medicine placing picture of the scale collected by the camera further comprises the following steps:

acquiring stress parameters of each weighing sensor in real time;

and when at least one weighing sensor is identified to be in a stress state, controlling to start the camera.

Preferably, the step of obtaining the type of the traditional Chinese medicine and the position information corresponding to each type of traditional Chinese medicine according to the traditional Chinese medicine placing picture specifically comprises the following steps:

acquiring coordinate range information of each weighing sensor in a stressed state;

acquiring a subimage corresponding to each weighing sensor in a stressed state according to the coordinate range information of each weighing sensor in the stressed state;

identifying each subimage through an artificial neural network algorithm to obtain a corresponding traditional Chinese medicine category;

and acquiring the sum of the weighing counts of the weighing sensors belonging to the same category of traditional Chinese medicines as the weight information corresponding to the category of traditional Chinese medicines.

Preferably, the outputting of the weighing prompt information according to the position information and the corresponding weight information specifically includes the following steps:

acquiring unit price information of various types of medicines;

acquiring total price information of the traditional Chinese medicine according to the unit price information and the corresponding weight information of various medicines;

and displaying the total price information of the traditional Chinese medicines through media equipment.

Preferably, the displaying of the total price information of the traditional Chinese medicines through the media device comprises printing a detailed price list of the traditional Chinese medicines through a printer.

In order to solve the technical problems, the invention also provides a traditional Chinese medicine weighing system, which comprises: scale, camera and treater, the upper surface of scale is equipped with a plurality of weighing sensor that are the array setting, camera, a plurality of weighing sensor all with the treater electricity is connected, traditional chinese medicine weighing system still includes:

the photo acquisition module is used for acquiring the traditional Chinese medicine placing photos of the scale acquired by the camera;

the position information acquisition module is used for acquiring the types of the traditional Chinese medicines and the position information corresponding to various traditional Chinese medicines according to the traditional Chinese medicine placing picture;

the weight information acquisition module is used for acquiring weight information corresponding to each traditional Chinese medicine according to the position information;

and the information output module is used for outputting weighing prompt information according to the position information and the corresponding weight information.

Preferably, the traditional Chinese medicine weighing system further comprises:

the acceptance parameter acquisition module is used for acquiring the stress parameters of the weighing sensors in real time;

and the camera control module is used for controlling and starting the camera when recognizing that at least one weighing sensor is in a stress state.

Preferably, the location information acquiring module includes:

the coordinate range acquisition submodule is used for acquiring coordinate range information of each weighing sensor in a stressed state;

the image segmentation submodule is used for acquiring sub-images corresponding to the weighing sensors in the stress state according to the coordinate range information of the weighing sensors in the stress state;

the image identification submodule is used for identifying each subimage through an artificial neural network algorithm to acquire a corresponding traditional Chinese medicine category;

and the weight summation submodule is used for acquiring the sum of the weighing counts of the weighing sensors belonging to the same category of traditional Chinese medicines as weight information corresponding to the category of traditional Chinese medicines.

Preferably, the information output module includes:

the drug unit price acquisition submodule is used for acquiring unit price information of various types of drugs;

the medicine total price calculating submodule is used for acquiring the total price information of the traditional Chinese medicine according to the unit price information and the corresponding weight information of various medicines;

and the media display control submodule is used for displaying the total price information of the traditional Chinese medicines through media equipment.

Preferably, the media display control sub-module comprises a printer control module for controlling the printer to print the Chinese medicine detail price list.

The technical scheme of the invention comprises the following steps of arranging a traditional Chinese medicine weighing system: scale, camera and treater, the upper surface of scale is equipped with a plurality of weighing sensor that are the array setting, camera, a plurality of weighing sensor all with the treater electricity is connected, through the image of placing traditional chinese medicine on the camera collection scale, exports the weighing information of traditional chinese medicine behind the kind information of the image acquisition traditional chinese medicine of gathering and the weight information that the weighing sensor who corresponds gathered through gathering, can once weigh multiple traditional chinese medicine, has improved the weighing efficiency that the drugstore snatched traditional chinese medicine effectively.

Drawings

FIG. 1 is a schematic flow chart of a control method of a traditional Chinese medicine weighing system according to a first embodiment of the present invention;

FIG. 2 is a schematic flow chart of a control method of the weighing system for traditional Chinese medicines according to a second embodiment of the present invention;

FIG. 3 is a schematic flow chart of a control method of the weighing system for traditional Chinese medicines according to a third embodiment of the present invention;

FIG. 4 is a flowchart illustrating a fourth embodiment of the method for controlling a weighing system for traditional Chinese medicines according to the present invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, interfaces, techniques, etc., in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

In a first aspect, the embodiment of the invention provides a control method for a traditional Chinese medicine weighing system.

FIG. 1 is a schematic flow chart of a first embodiment of a control method of a traditional Chinese medicine weighing system according to the present invention. In a first embodiment, the traditional chinese medicine weighing system includes: the scale comprises a scale pan, a camera and a processor, wherein a plurality of weighing sensors arranged in an array are arranged on the upper surface of the scale pan, and the camera and the weighing sensors are electrically connected with the processor, and the control method comprises the following steps:

s10, acquiring the picture of the scale for placing the traditional Chinese medicine collected by the camera.

It should be noted that the main execution body of the method is a controller, the controller can be used for online control of a server or offline control of a computer, and the weighing sensors can be arranged in a rectangular array. The camera is arranged above the scale pan and can collect photos of traditional Chinese medicines placed on the scale pan.

And S20, acquiring the types of the traditional Chinese medicines and the position information corresponding to each type of traditional Chinese medicines according to the traditional Chinese medicine placing pictures. It should be noted that the traditional Chinese medicine placing picture records the image information of the traditional Chinese medicine when being collected, and the position information of the traditional Chinese medicine correspondingly placed on the scale can be obtained through the image information of the traditional Chinese medicine, and the position information is passed through. The position information includes coordinate information of the picture.

And S30, acquiring the weight information of each traditional Chinese medicine collected by the corresponding weighing sensor according to the position information.

The traditional Chinese medicine pictures collected by the camera can correspond to the coordinate information of the sensors on the scale, and the weighing value of the sensor corresponding to each type of traditional Chinese medicine is the weight of the corresponding type of traditional Chinese medicine.

And S40, outputting weighing prompt information according to the position information and the corresponding weight information.

The weighing prompt information in the step comprises total price information of the traditional Chinese medicine.

The scheme that this embodiment provided includes through setting up traditional chinese medicine weighing system: scale, camera and treater, the upper surface of scale is equipped with a plurality of weighing sensor that are the array setting, camera, a plurality of weighing sensor all with the treater electricity is connected, through the image of placing traditional chinese medicine on the camera collection scale, exports the weighing information of traditional chinese medicine behind the kind information of the image acquisition traditional chinese medicine of gathering and the weight information that the weighing sensor who corresponds gathered through gathering, can once weigh multiple traditional chinese medicine, has improved the weighing efficiency that the drugstore snatched traditional chinese medicine effectively.

FIG. 2 is a flowchart illustrating a second embodiment of the method for controlling a weighing system for traditional Chinese medicines according to the present invention. In the second embodiment of the present invention,

the step S10 of obtaining the traditional Chinese medicine placing picture of the scale collected by the camera further comprises the following steps:

and S01, acquiring the stress parameters of each weighing sensor in real time.

In this step, the acquiring of the stress parameter of each sensor in real time includes acquiring the weighing information of each sensor at preset time intervals.

And S02, when recognizing that at least one weighing sensor is in a stress state, controlling to start the camera.

This step is when discerning promptly that at least one weighing sensor is in the pressurized state, when having traditional chinese medicine to place on the scale dish of constituteing by a plurality of weighing module promptly, starts the camera.

The camera does not need to acquire images of the scale due to the arrangement, and the power consumption is effectively reduced.

FIG. 3 is a flow chart illustrating a third embodiment of the method for controlling a weighing system for traditional Chinese medicines according to the present invention. In the third embodiment of the present invention,

the step of S30 obtaining the type of the traditional Chinese medicine and the position information corresponding to each type of traditional Chinese medicine according to the traditional Chinese medicine placing picture specifically comprises the following steps:

s301, acquiring coordinate range information of each weighing sensor in a stressed state.

In this step, the corresponding coordinate range of each weighing sensor on the image collected by the camera may be obtained according to a preset ratio of scale size to photo size, for example, when the weighing sensor is rectangular, the corresponding coordinate range information on the image is the corresponding rectangular coordinate range.

S302, acquiring sub-images corresponding to each weighing sensor in the stress state according to the coordinate range information of each weighing sensor in the stress state.

In the step, the coordinate range information of each weighing module information in a stress state is utilized to divide the picture collected by the camera, each divided subimage corresponds to one traditional Chinese medicine, different traditional Chinese medicines are placed at different positions of the scale when the traditional Chinese medicines are grabbed, and the different traditional Chinese medicines are kept not mixed together.

S303, identifying each subimage through an artificial neural network algorithm to acquire the corresponding traditional Chinese medicine category.

In this step, the method for identifying the sub-image through the artificial neural network algorithm may refer to a method for identifying the image type through the artificial neural network in the prior art, which is not repeated herein.

S304, acquiring the sum of the weighing counts of the weighing sensors belonging to the same category of traditional Chinese medicines as weight information corresponding to the category of traditional Chinese medicines.

In this step, there may be a plurality of sub-images corresponding to each kind of Chinese medicine, and the weighing data of the plurality of weighing modules corresponding to each kind of Chinese medicine is summed up to obtain the weight information of the Chinese medicine.

FIG. 4 is a flowchart illustrating a fourth embodiment of the method for controlling a weighing system for traditional Chinese medicines according to the present invention. In the fourth embodiment of the present invention,

the step of outputting the weighing prompt information according to the position information and the corresponding weight information by the step of S40 specifically includes the steps of:

s401, unit price information of various types of medicines is acquired.

The unit price information can be obtained according to preset unit price information or can be obtained after being networked with a database.

S402, acquiring total price information of the traditional Chinese medicine according to the unit price information and the corresponding weight information of various medicines;

and S403, displaying the total price information of the traditional Chinese medicines through media equipment.

Specifically, the displaying of the total price information of the traditional Chinese medicines through the media device comprises printing a detailed price list of the traditional Chinese medicines through a printer.

In a second aspect, to achieve the above object, an embodiment of the present invention further provides a traditional Chinese medicine weighing system, where the traditional Chinese medicine weighing system includes: scale, camera and treater, the upper surface of scale is equipped with a plurality of weighing sensor that are the array setting, camera, a plurality of weighing sensor all with the treater electricity is connected, traditional chinese medicine weighing system still includes:

and the photo acquisition module is used for acquiring the traditional Chinese medicine placing photos of the scale acquired by the camera.

It should be noted that the load cells may be arranged in a rectangular array. The camera is arranged above the scale pan and can collect photos of traditional Chinese medicines placed on the scale pan.

And the position acquisition module is used for acquiring the types of the traditional Chinese medicines and the position information corresponding to various traditional Chinese medicines according to the traditional Chinese medicine placing pictures.

It should be noted that the traditional Chinese medicine placing picture records the image information of the traditional Chinese medicine when being collected, and the position information of the traditional Chinese medicine correspondingly placed on the scale can be obtained through the image information of the traditional Chinese medicine, and the position information is passed through. The position information includes coordinate information of the picture.

The weight collection module is used for acquiring weight information corresponding to each traditional Chinese medicine according to the position information;

and the information output module is used for outputting weighing prompt information according to the position information and the corresponding weight information.

Preferably, the traditional Chinese medicine weighing system further comprises:

the acceptance parameter acquisition module is used for acquiring the stress parameters of the weighing sensors in real time;

and the camera control module is used for controlling and starting the camera when recognizing that at least one weighing sensor is in a stress state.

Preferably, the traditional Chinese medicine weighing system further comprises:

the coordinate range acquisition module is used for acquiring the coordinate range information of each weighing sensor in a stressed state;

the image segmentation module is used for acquiring sub-images corresponding to each weighing sensor in the stress state according to the coordinate range information of each weighing sensor in the stress state;

the image identification module is used for identifying each subimage through an artificial neural network algorithm to acquire a corresponding traditional Chinese medicine category;

and the weight summing module is used for acquiring the sum of the weighing counts of the weighing sensors belonging to the same category of traditional Chinese medicines as weight information corresponding to the category of traditional Chinese medicines.

Preferably, the traditional Chinese medicine weighing system further comprises:

acquiring unit price information of various types of medicines;

acquiring total price information of the traditional Chinese medicine according to the unit price information and the corresponding weight information of various medicines;

and displaying the total price information of the traditional Chinese medicines through media equipment.

Specifically, the displaying of the total price information of the traditional Chinese medicines through the media device includes printing a detailed price list of the traditional Chinese medicines through a printer.

The scheme that this embodiment provided includes through setting up traditional chinese medicine weighing system: scale, camera and treater, the upper surface of scale is equipped with a plurality of weighing sensor that are the array setting, camera, a plurality of weighing sensor all with the treater electricity is connected, through the image of placing traditional chinese medicine on the camera collection scale, exports the weighing information of traditional chinese medicine behind the kind information of the image acquisition traditional chinese medicine of gathering and the weight information that the weighing sensor who corresponds gathered through gathering, can once weigh multiple traditional chinese medicine, has improved the weighing efficiency that the drugstore snatched traditional chinese medicine effectively.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种杠杆式称重采样装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类