Apparatus and method for generating random image of herbal preparation
By randomly stirring herbal preparations in a container and automatically capturing images, the problem of time-consuming and inefficient creation of training datasets for images of traditional Chinese medicine preparations is solved, and a more robust image dataset is generated for training computer models.
Patent Information
- Application Number
- CN202410296693.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2025-09-16
AI Technical Summary
Creating a training dataset of images of traditional Chinese medicine preparations is time-consuming and inefficient, and manually capturing images results in lower robustness and less variation, resulting in poor results for training computer models.
A device and method are designed to randomly agitate the herbal preparation within a container using a movable sweeping tool and a vibrator, and automatically capture images using a camera to generate random images for training a computer model.
It has achieved the automated generation of diverse images of traditional Chinese medicine preparations, improved the robustness and efficiency of the training dataset, and generated a more robust image dataset for training computer models.
Smart Images

Figure CN120645199A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an apparatus and method for generating random images of herbal preparations. Specifically, the present disclosure relates to an apparatus and method for generating random images, wherein the random images can be used to train a computer model for identifying Traditional Chinese Medicine (TCM) preparations. Background Art
[0002] Traditional Chinese Medicine (TCM) is a comprehensive health and medical system developed in my country. Originating and developing in ancient China, the system is still widely practiced in China and around the world. TCM practitioners (TCM practitioners) use a variety of psychological and / or physical approaches to address health issues. A fundamental principle of TCM is that the body's Qi (qi) circulates through channels called meridians, which have branches connected to organs and functions. TCM typically includes a variety of therapies, such as acupuncture, cupping therapy, scraping, massage (e.g., tuina), qigong or tai chi, dietary therapies, and herbal remedies.
[0003] Herbal medicine is a key component of Traditional Chinese Medicine (TCM). TCM herbal practices include the use of plant elements as well as non-plant substances such as animal fungi and mineral products. Thousands of compounds have been documented in TCM, with over 100,000 TCM formulas or preparations documented. Herbal preparations are prepared by TCM practitioners (i.e., TCM practitioners). These preparations contain one or more TCM compounds that have been processed in a suitable manner.
[0004] It is challenging to identify or authenticate Chinese medicine preparations by the naked eye. Therefore, some computer models, such as AI models, have been developed to automatically identify and classify Chinese medicine preparations. Object recognition based on processed images is a common task that can be performed by training computer models. In order to use a computer model (e.g., an AI model) to identify Chinese medicine preparations from photos, it is necessary to train the AI model with several images (usually hundreds or thousands of images). Depending on the processing technology applied to the constituent ingredients, Chinese medicine preparations can vary in many aspects. The images of the training data set used to train the computer model to identify the type of Chinese medicine preparation from the image should include images of Chinese medicine preparations in various aspects (e.g., pattern, scene, quantity, shape, etc.). The training data set should include images of Chinese medicine preparations in many different aspects that may occur in practice.
[0005] Creating large and diverse training datasets is challenging and time-consuming. Creating training datasets of images of traditional Chinese medicine preparations typically involves manually capturing multiple photos (e.g., hundreds of photos). This method is time-consuming and inefficient. In addition, manually capturing images to create datasets can result in less robust and less varied datasets, which can lead to poorly trained computer models. Summary of the Invention
[0006] The present disclosure relates to an apparatus and method for generating random images of herbal preparations. The apparatus and method of the present disclosure can be used to generate random images of a variety of herbal preparations. In particular, the present disclosure relates to an apparatus and method for generating random images of Chinese medicine preparations. The random images can be used to train a computer model to identify Chinese medicine preparations. The apparatus for generating random images is an automated apparatus controlled to automatically generate random images of Chinese medicine preparations. The method for generating random images can be an automated method performed by the apparatus or by a component of the apparatus to automatically capture images (i.e., photographs) of Chinese medicine preparations.
[0007] According to a first aspect, the present disclosure relates to an apparatus for generating random images of herbal preparations. The apparatus comprises:
[0008] Containers for herbal preparations;
[0009] A cleaning tool movable in multiple degrees of freedom;
[0010] a controller operatively connected to the cleaning tool for controlling movement of the cleaning tool;
[0011] a camera for capturing an image of the herbal preparation within the container;
[0012] wherein, in use, the cleaning tool is movable within the container based on one or more randomly generated movement patterns to agitate the herbal preparation within the container; and
[0013] Wherein, the camera is controlled to capture an image of the herbal preparation within the container after the cleaning tool stops moving.
[0014] In one example, the device further comprises: a vibrator, wherein the vibrator is connected to the container and is used to vibrate the container to agitate, move or vibrate the herbal preparation in the container.
[0015] In one example, the vibrator is controlled to vibrate the container in a random pattern.
[0016] In one example, the vibrator can vibrate the container so that the container moves around at least two or three axes. In an alternative example, the vibrator can move the container along one axis.
[0017] In one example, the vibrator is controlled to randomly vibrate the container. When the vibrator is activated, the vibrator can randomly vibrate the container.
[0018] In one example, the device includes a plurality of vibrators operably connected to the controller; and the controller is configured to control the vibrators to independently operate to generate different patterns of vibrations, wherein the vibrations are applied to the container to agitate the herbal preparation with the container.
[0019] In one example, the camera is configured to capture a plurality of images of the herbal preparation; and each time the cleaning tool is moved according to the randomly generated movement pattern, the camera is configured to capture an image, such that the captured image is a random image.
[0020] In one example, the vibrator can be activated for a preset time, causing the container to vibrate continuously for the preset time. The preset time can be a random time period selected from a preset time range, where the preset time range includes a minimum time and a maximum time. In another example, the preset time can be set by the user.
[0021] In one example, the apparatus comprises a storage unit or a database stored in the storage unit, and the captured image is stored in the database.
[0022] In one example, the controller is operatively connected to the vibrator, the vibrator being controlled to vibrate the container to generate the herbal preparation pattern.
[0023] In one example, the movement pattern defines a preset shape, and the cleaning tool moves in the preset shape. The cleaning tool can move in the preset shape within the container.
[0024] In one example, the controller is used to store a plurality of preset shapes; wherein
[0025] Each of said shapes is associated with a number;
[0026] The controller includes a random number generator;
[0027] The controller is configured to select a preset shape based on a random number generated by the random number generator; and
[0028] The controller is used to control the cleaning tool to move in a selected preset shape.
[0029] In one example, the cleaning tool is controlled to move along any one or more of the X-axis of the container, the Y-axis of the container, or rotate about the Z-axis of the container.
[0030] In one example, the preset shape may be any one or more of a circle, a square, a triangle, a trapezoid, or any polygon.
[0031] In one example, the vibrator is controlled to vibrate the container while the cleaning tool moves around the container.
[0032] In one example, the preset shape may be a 2D shape or a 3D shape.
[0033] In one example, the cleaning tool moves linearly along the X-axis and the Y-axis of the container and rotates around the Z-axis of the container to move the cleaning tool in the preset shape.
[0034] In one example, the controller is configured to receive one or more image parameters defining requirements for one or more images.
[0035] In one example, the cleaning tool is controlled to move within the container based on the predetermined shape and the one or more image parameters.
[0036] In one example, the image parameters include one or more of size, color palette, and stroke density.
[0037] In one example, the apparatus includes a support arm, wherein the cleaning tool is removably attached to the support arm.
[0038] In one example, the support arm is configured to articulate with six degrees of freedom; in use, movement of the support arm causes movement of the cleaning tool.
[0039] In one example, the support arm may be an articulated arm. The support arm may be shaped or configured to articulate with six degrees of freedom.
[0040] In one example, the cleaning tool can be shaped or configured to be articulated with six degrees of freedom. In another example, the movement and articulation of the support arm cause the cleaning tool to move and articulate. In one example, the support arm can be an automated robot arm.
[0041] In one example, the apparatus may be an automated device for automatically agitating the container and automatically capturing a plurality of images. In one example, the controller may be programmed with a script to control the cleaning tool to move in a random movement pattern; control the vibrator to randomly vibrate the container to agitate the contents of the container; and after the contents of the container are agitated, the controller may be configured to control the camera to automatically capture images.
[0042] In one example, the image may be a random image. The randomness of the image may be achieved by the random vibration applied by the vibrator and the randomly selected movement pattern of the cleaning tool.
[0043] In one example, the apparatus is controlled to capture a plurality of images and store the plurality of images. The camera can be controlled to capture an image after each agitation of the contents of the container (e.g., the herbal preparation). The contents can be agitated by moving the cleaning tool along a randomly selected movement pattern (e.g., a randomly selected shape), by vibrating the container, or by simultaneously vibrating the container and moving the cleaning tool along a random movement pattern.
[0044] In one example, the captured images can be used as a training dataset to train a computer model for identifying herbal formulas. The captured images or a subset of the captured images can be used as a validation dataset to validate the performance of the computer model for identifying herbal formulas.
[0045] At least one embodiment of a device for generating random images of herbal formulas has the advantage that it eliminates the need for a person to manually capture images to generate an image dataset. The device can be automated and is advantageous because it provides an automatic means to capture multiple images of a dataset for use in training or validating a computer model.
[0046] According to a second aspect, the present disclosure relates to a method for generating random images of herbal preparations. The method comprises the following steps:
[0047] receiving an input corresponding to a shape; wherein the shape defines a movement pattern of a cleaning tool within a container containing an herbal preparation;
[0048] wherein the shape is randomly selected from a plurality of preset shapes;
[0049] controlling the cleaning tool to move within the container according to the randomly selected movement pattern to agitate the herbal preparation within the container;
[0050] capturing an image, or controlling a camera to capture an image of the herbal preparation in the container, after the sweeper stops moving;
[0051] The captured image is stored in a storage unit or a database.
[0052] In one example, the method includes the following steps:
[0053] vibrating the container in a random pattern using a vibrator;
[0054] Receiving a selection of a preset shape; wherein the preset shape defines a movement pattern of the cleaning tool;
[0055] Controlling the cleaning tool to move according to the preset shape;
[0056] The container is vibrated and the cleaning tool is moved to agitate the contents of the container.
[0057] In one example, the step of vibrating the container and the step of controlling the cleaning tool to move according to the preset shape are performed simultaneously to stir the contents in the container; after the vibration in the container and the movement of the cleaning tool stop, the step of capturing the image is performed.
[0058] In one example, the preset shape can be a polygon (e.g., a rectangle, a square, a trapezoid, etc.) or an arcuate shape (e.g., a circle, an ellipse, etc.). The preset shape can be a 2D shape or a 3D shape; the cleaning tool can be controlled to move according to the selected shape.
[0059] In one example, the steps of the method are repeatedly performed to capture a plurality of images, wherein the images are random images generated by a random movement pattern of the cleaning tool.
[0060] In one example, the method and its steps are repeatedly performed multiple times to capture multiple images; the captured images are stored in a storage unit or a database.
[0061] In one example, the images are random images generated by random movements of the cleaning tool. In one example, the captured images can be used as a training dataset to train a computer model for identifying herbal formulas.
[0062] The method for generating random images of herbal preparations may be an automated method. The method may be performed by one or more components of the apparatus. In one example, the method may be performed by a controller in the apparatus for generating random images of herbal preparations.
[0063] In one example, the herbal preparation can be a traditional Chinese medicine preparation comprising one or more herbs. The term "herbal preparation" can encompass a single herb or a mixture of multiple herbs. The one or more herbs can be processed in any suitable manner, such as grinding, cutting, chopping, powdering, etc.
[0064] The method of generating random images of herbal preparations is advantageous because it provides an automated method for generating a set of images that can be used to train or validate a computer model. The automated method generates random images that provide a more robust dataset for training and / or validation.
[0065] According to yet another aspect, the present disclosure relates to a controller programmed to perform one or more steps or the entire method to generate a random image of the herbal preparation as described herein.
[0066] In one example, the controller may include a processor or processing unit and a memory unit. The memory unit may store computer-readable instructions executable by the processing unit and execute the instructions to cause the controller to perform the steps of the method for generating a random image of an herbal formula.
[0067] According to a further aspect, the present disclosure provides a computer program comprising instructions which, when executed by a controller or a computer, cause the controller or computer to perform a method for generating a random image of a herbal preparation as described above or as defined in the claims.
[0068] According to yet another aspect, the present disclosure relates to a computer-readable medium comprising instructions that, when executed by a computer, cause the computer to perform the method for generating a random image of an herbal preparation as described herein.
[0069] As used herein, the term "comprising" (and its grammatical variations) is used in the inclusive sense of "having" or "including" and not in the sense of "consisting only of.
[0070] The term "computer model" refers to a mathematical model, program, or software that analyzes data sets to find patterns and make predictions or decisions. These models can be used on previously unseen data to find patterns, make predictions, and / or make decisions. Terms such as "AI model," "machine learning model," and "neural network" are used interchangeably to refer to computer models.
[0071] It will be appreciated that, if any prior art information is referred to herein, this reference does not constitute an admission that this information forms part of the common general knowledge in the art in any country. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Hereinafter, embodiments of the present disclosure will be described by way of examples with reference to the accompanying drawings.
[0073] Figure 1 is an image illustrating an exemplary embodiment of an apparatus for generating random images of herbal preparations.
[0074] Figure 2 It shows Figure 1 A control schematic diagram of the controller of the device and its connections to other components.
[0075] Figure 3 Shown Figure 1 Top view of the apparatus showing the movement of the container and cleaning tool along the X-axis.
[0076] Figure 4 Shown Figure 1 Top view of the apparatus showing the movement of the container and cleaning tool along the Y-axis.
[0077] Figure 5 A top view showing the movement of the container and cleaning tool around the Z axis is shown.
[0078] Figure 6 A side view of the container and vibrations applied to the container is shown.
[0079] Figure 7 A flow chart illustrating an exemplary embodiment of a method for generating random images of herbal preparations is shown.
[0080] Figure 8 Another exemplary embodiment of a method for generating random images of herbal preparations is shown. DETAILED DESCRIPTION
[0081] Traditional Chinese Medicine (TCM) generally includes a variety of practices. Some of the key practices include acupuncture, cupping therapy, scraping, tai chi, massage, herbal therapy and moxibustion (i.e., burning herbs to heat acupuncture points). Herbal preparations play a key role in TCM. TCM preparations include a variety of herbal preparations. More specifically, TCM preparations generally include a variety of herbs processed in a specific way and combined in a specific amount or ratio. For ease of description, the term "herb" or "herbs" also refers to Chinese medicine compounds, or any material or substance suitable for TCM practice, or medicinal compounds, or any material or substance suitable for any treatment or dietary therapy or program. Such treatment or dietary therapy or regimen is not limited to TCM practice, but may include other types of traditional or modern medical practices, health and well-being, diet or psychology or psychiatric programs or treatments, and treatments for people or veterinary treatments for animals. The compound, material or substance can also be in an unprocessed form (e.g., picked plant or fungal material, cut from an animal, etc.), a semi-processed form (a lightly processed material that has been cut, dried or preserved, etc.), a processed form (a pharmaceutical compound processed into a powder form, a pellet form, a tablet form, or mixed with other compounds or materials, etc.), or any combination of the above.
[0082] refer to Figure 1 , showing an embodiment of the present disclosure. This embodiment provides an apparatus for generating random images of herbal preparations, the apparatus comprising:
[0083] Containers for herbal preparations;
[0084] A cleaning tool movable in multiple degrees of freedom;
[0085] a controller operatively connected to the cleaning tool for controlling movement of the cleaning tool;
[0086] a camera for capturing an image of the herbal preparation within the container;
[0087] wherein, in use, the cleaning tool is movable within the container based on one or more randomly generated movement patterns to agitate the herbal preparation within the container;
[0088] Therein, after the cleaning tool stops moving, the camera is controlled to capture an image of the herbal preparation within the container.
[0089] The apparatus further comprises a vibrator, wherein the vibrator is attached to the container and is used to vibrate the container to agitate the herbal preparation within the container. The vibrator and the sweeping tool can be controlled simultaneously to agitate the contents of the container (i.e., the herbal preparation). The camera can be controlled to capture a plurality of images. The captured images can be stored in a storage unit or a database and can form a data set for training or validating a computer model. An image is captured after each agitation of the container by the sweeping tool and / or the tool and / or by the vibrator. The captured images can be random images generated by the random agitation caused by the random movement of the sweeping tool and / or the random vibrations applied by the vibrator.
[0090] Reference Figure 1 The apparatus 100 for generating random images of an herbal preparation (e.g., a traditional Chinese medicine preparation) includes a container 110 for holding the herbal preparation (e.g., a traditional Chinese medicine preparation), a cleaning tool 120, a camera 130, and a controller 140. The camera 130 is used to capture an image of the herbal preparation in the container 110. Optionally, the apparatus 100 may include a display 160. The display 160 may be suitable for presenting data to a user. The display 160 may be a touch screen. Figure 2 A control schematic is shown, illustrating the operational connections between the controller and other components.
[0091] In one example, a controller 140 is operably connected to the cleaning tool 120 for controlling the movement of the cleaning tool. A camera 130 is used to capture images of the herbal preparation within the container 110. The camera 130 can be mounted on a frame or gimbal, or can be handheld. In use, the cleaning tool 120 can be moved within the container 110 based on one or more randomly generated movement patterns to agitate the herbal preparation within the container 110. In use, after the cleaning tool stops moving, the camera 130 is controlled to capture images of the herbal preparation within the container.
[0092] The container 110 may be a pan or a bowl or a plate or a flat bottom box. Figure 1 In the example shown, the container is a substantially square box. Preferably, the container 110 may include a flat bottom or base. The container 110 may be of any suitable shape and may be used to hold the herbal preparation. A cleaning tool may also be moved within the container 110 to move or agitate the herbal preparation.
[0093] Device 100 may include a vibrator. The vibrator may be attached to container 110. Alternatively, container 110 may be positioned on and supported by the vibrator. In one example, the vibrator may be used to vibrate container 110 to vibrate, agitate, or otherwise move the herbal preparation within the container. In one example, the vibrator is controlled to vibrate the container in a random pattern. In one example, the vibrator may vibrate the container so that the container moves about at least two or three axes. In an alternative example, the vibrator may move the container along a single axis. In one example, the vibrator is controlled to vibrate the container in a random pattern.
[0094] As shown in the illustrated embodiment, the apparatus 100 includes a vibrator system 150 defined by a plurality of vibrators 152, 154. The apparatus 100 may include at least two vibrators, but alternatively may include any suitable number of vibrators. The vibrators 152, 154 are operatively connected to a controller 140, such as Figure 2 shown.
[0095] The controller 140 is used to control the operation of the vibrators 152 and 154. The vibrators 152 and 154 can be controlled to produce different arrangements of herbal preparations (e.g., traditional Chinese medicine preparations) within the container 110. The controller 140 can be used to control the vibrators 152 and 154 to operate independently to generate different vibration patterns applied to the container, thereby agitating the herbal preparation with the container. The vibrators 152 and 154 can be controlled to vibrate randomly, thereby agitating the herbal preparation.
[0096] In one example, the controller 140 can be configured to independently control the vibrators 152 and 154. The vibrators 152 and 154 are independently controlled to vibrate the container 110, thereby generating different arrangements within the herbal preparation. The arrangements within the herbal preparation can include one or more of no overlap, slight overlap, heavy overlap (e.g., one layer on top of another), or a mountain or chevron-shaped layer. Of course, other arrangements can be used. These arrangements can be pre-programmed into the controller. Each arrangement can be generated by a preset vibration movement of each vibrator 152 and 154. In one example, a user can specify a desired arrangement to be created. In another example, the controller can randomly select the arrangement to be created and control the vibrators accordingly. In another example, the controller 140 can randomly control the vibrators, causing the vibrators 152 and 154 to vibrate randomly to agitate the preparation within the container 110.
[0097] In one example, the vibrators 152 and 154 can be activated for a preset time, causing the container 110 to vibrate continuously for the preset time. The preset time can be a random time period selected from a preset time range, wherein the preset time range includes a minimum time and a maximum time. In another example, the preset time can be set by the user. The user can enter the desired time through the user interface 162. The user interface can be part of the display 160 or can be a separate component. The user interface 162 can include a touch surface, buttons, knobs, or a combination thereof.
[0098] A cleaning tool 120 can be positioned within the container 110. The cleaning tool 120 can move in multiple degrees of freedom. In one example, the cleaning tool 120 can move in six degrees of freedom, such as linear movement in four directions and rotational movement in two directions. The cleaning tool 120 can include a member for moving through the herbal preparation to move or agitate the preparation. The cleaning tool 120 can include a brush or a wiper or a stick or a scoop or a spoon or other appropriately shaped component. In the example shown, the cleaning tool 120 includes a flat wiper.
[0099] In one example, the cleaning tool 120 can be attached to one or more motors that can be used to move the cleaning tool within the container 110. The motors can be controlled by the controller 140. Each motor can control the movement of the cleaning tool with two degrees of freedom.
[0100] For example, the cleaning tool 120 may include an X-axis motor, a Y-axis motor, and a Z-axis motor. Each motor is used to control the movement of the cleaning tool 120 along each axis. For example, the X-axis motor can be controlled to move the cleaning tool axially along the X-axis of the container 110, the Y-axis motor can be controlled to move the cleaning tool axially along the Y-axis of the container, and the Z-axis motor can be controlled to rotate the cleaning tool 120 about the Z-axis of the container 110.
[0101] In one example, the cleaning tool 120 is configured to move linearly along the X-axis and the Y-axis of the container and rotate about the Z-axis of the container to move the cleaning tool in a predetermined shape.
[0102] The device 100 further includes a support arm 122. The cleaning tool 120 can be detachably attached to the support arm 122. The support arm 122 is articulated. The support arm 122 can be configured to articulate with six degrees of freedom. In use, movement of the support arm 122 causes the cleaning tool 120 to move within the container to move or agitate the formulation in the container 110.
[0103] The support arm 122 may be disposed on a bracket 123. The bracket 123 is configured to move axially relative to the container 110. Figure 1As shown, the bracket 123 is positioned on rails 170, 172. The bracket 124 is movable on the rails to axially move the support arm 122 relative to the container.
[0104] In one example, the support arm 122 can include one or more actuators for articulating the arm 122. Articulation or movement of the support arm 122 causes the cleaning tool 120 to articulate or move. The actuators can be controlled by the controller 140. In one example, the actuators are motors, and the support arm 122 can include three motors. The support arm can include an arm X motor 124, an arm Y-axis motor 126, and an arm Z-axis motor 128. The support arm 122 also includes one or more joints, and actuators (e.g., motors) are used to move components of the support arm at the joints.
[0105] The support arm 122 also includes an arm carriage motor 129 for driving the carriage along the tracks 170, 172. The carriage motor 129 may be any suitable motor for controlling the wheels of the carriage to move the carriage along the tracks 170, 172.
[0106] refer to Figure 2 , the controller 140 is operably connected to a plurality of components. The controller 140 may include a processor or processing unit and one or more storage units. For example, the controller 140 may include: a central processing unit (CPU), a math co-processing unit (Math Processor), a graphics processing unit (GPU), or a tensor processing unit (TPU) for tensor or multi-dimensional array calculation or manipulation operations. The one or more storage units may include a read-only memory (ROM), a random access memory (RAM), and an input / output device such as a disk drive. The one or more storage units may each be a computer-readable medium or a machine-readable medium. The storage unit may be used to store data, such as a script or program that can be executed by the controller to control the actions of the various components of the device.
[0107] Optionally, the controller 140 may include an input device 110, such as an Ethernet port, a USB port, etc. Optionally, the controller 140 may also include one or more communication modules to allow wireless communication between the controller 140 and other devices.
[0108] The controller 140 may be implemented by any computing architecture (e.g., a microprocessor or microcontroller architecture). The controller 140 may also be programmed with software to control the operation of the controller and the operation of the components controlled by the controller 140. The controller 140 may be programmed with scripts to cause the controller to perform one or more methods.
[0109] In an alternative configuration, the controller 140 can be implemented by any suitable computing architecture, including a portable computer, a tablet computer, a standalone personal computer (PC), a smart device, an Internet of Things (IoT) device, an edge computing device, a client / server architecture, a "dumb" terminal / host architecture, a cloud computing-based architecture, or any other suitable architecture. The controller 140 can be appropriately programmed to implement the method for generating a random image.
[0110] The controller 140 is operatively connected to the user interface 162 for receiving input from the user. The controller 140 can output information to the user through the user interface 162. The controller 140 is operatively connected to the display 160 for outputting information to the display 160. Figure 2 As shown, the controller 140 is electrically connected to the arm bracket motor 129 for controlling the arm bracket motor 129 to move the support arm into position.
[0111] refer to Figure 2 Controller 140 is operably connected to vibrators 152, 154. The controller can be configured to independently control vibrators 152, 154, or can control vibrators 152, 154 simultaneously. Controller 140 is configured to control vibrators 152, 154 to vibrate container 110 to produce an unaligned herbal preparation within the container. Controller 140 is operably connected to arm X-axis motor 124, arm Y-axis motor 126, and arm Z-axis motor 128. Alternatively, the X, Y, and Z-axis motors can be cleaning tool motors directly connected thereto and controlled by the controller.
[0112] In use, a user can define a plurality of parameters for image generation. The image parameters can define the characteristics that the random image is required to have, such as size, resolution, color palette, stroke density, and other relevant factors. The image parameters can be received through the user interface 162. The selected image parameters can be displayed on the display 160.
[0113] In one example, the cleaning tool is controlled to move within the container based on a preset shape and one or more image parameters.
[0114] Controller 140 is used to control the motor to move the support arm. Cleaning tool 120 is used to move in a manner corresponding to a preset shape. Cleaning tool 120 can move in a preset shape within container 110. Controller 140 is used to store a plurality of preset shapes. Each shape is associated with a number. Controller 140 includes a random number generator, such as a software random number generator. The controller is used to generate a random number and determine a corresponding shape. Controller 140 is used to control three motors 124, 126, and 128 to cause the cleaning tool to move in the selected preset shape.
[0115] The preset shape can be a 2D shape or a 3D shape. In one example, the preset shape can be any one or more of a circle, a square, a triangle, a trapezoid or any polygon.
[0116] The controller 140 is used to define the movement pattern that will be applied to create the selected shape. The controller 140 is used to determine different combinations of linear movements along the X, Y, and Z axes of the container. The controller 140 determines the motion that moves the cleaning tool 120 relative to the container.
[0117] Figures 3 to 5 Shows various movements of the cleaning tool. Figure 3 , shows a top view of the container 110 and shows a cleaning tool 120 moving axially along the X-axis. The cleaning tool 120 can be used to move back and forth along the X-axis of the container 110. Arrows A and B represent two degrees of freedom, namely, two directions of travel along the X-axis. Figure 3 The tool is shown movable in two positions, solid and dashed lines.
[0118] Figure 4 A top view of a container 110 and a cleaning tool moving along the Y axis is shown. The cleaning tool 120 can be used to move back and forth along the Y axis of the container 110. Arrows C and D indicate the direction of travel of the tool along the Y axis. Figure 4 The tool is shown movable in two positions, solid and dashed lines.
[0119] Figure 5 Movement about the container's Z axis is shown. The Z axis extends off the page. Cleaning tool 120 is configured to rotate about the Z axis. Cleaning tool 120 can be controlled to move in a predetermined pattern by moving the cleaning tool in a combination of X, Y, and Z axis motions. Arrows E and F indicate the direction of rotation of tool 120. The tool is shown in both solid and dashed rotational configurations.
[0120] In one example, the controller 140 may be used to control the motors 124 , 126 , 128 to move the support arm 122 with appropriate motions such that movement of the support arm causes the cleaning tool 120 to move in a selected shape.
[0121] Alternatively, the controller 140 can be configured to randomly generate variations in movement within the preset shape to introduce variability. The controller 140 can randomly vary the motion on one or more axes of the preset shape by specific variables. For example, the X movement can be shortened or lengthened to introduce variability in the movement of the cleaning tool 120.
[0122] Figure 6 1 shows a side view of the container 110 and illustrates the vibration applied to the container 110. Figure 6 As shown, the vibration applied can be two-dimensional. In the example shown, the container is vibrated by one or more vibrators to vibrate around the X or Y axis, that is, to rotate around the X or Y axis. Figure 6 As shown, arrows E and F represent the movement of the vibration. Figure 6 The container is shown vibrating.
[0123] In another example, the vibrator can be controlled to vibrate the container axially, i.e., parallel to the X-axis or Y-axis. The controller 140 can be used to randomly control the vibrators 152, 154 to randomly vibrate the container 110. In one example, when the cleaning tool moves around the container, the vibrator (or multiple vibrators) are controlled to vibrate the container simultaneously. The support arm 122 can be, for example, Figure 1 The robotic arm is shown and may be automated (ie, automatically controlled by the controller 140) to move according to the selected shape.
[0124] The controller 140 may be used to control the operation of the camera 130. The camera 130 may be used to capture a plurality of images of the herbal preparation in the container 110. The camera 130 may be controlled to capture an image each time the cleaning tool moves according to the randomly generated movement pattern, such that the captured image is a random image.
[0125] In one example, the apparatus 100 includes a database 180 for storing captured images. The database can be stored in a storage unit of the controller. Alternatively, the database 180 can be stored in a cloud network or a remote storage unit. The camera is controlled to capture a plurality of images and store them in the database 180. The captured images can be random images. The randomness of the images can be achieved by applying random vibrations to the vibrator and randomly selecting movement patterns of the cleaning tool 120. In one example, the captured images can be used as a training dataset to train a computer model for identifying herbal formulas. The captured images or a subset of the captured images can be used as a validation dataset to verify the performance of the computer model for identifying herbal formulas.
[0126] In use, the camera can be controlled to capture an image each time the contents of the container (e.g., herbal preparation) are agitated. The contents can be agitated by moving the cleaning tool 120 along a randomly selected movement pattern (e.g., a randomly selected shape), by vibrating the container 110 via the vibrators 152, 154, or by simultaneously vibrating the container and moving the cleaning tool along a random movement pattern. The number of images to be captured can be defined within the image parameters.
[0127] In use, the device can be an automated device for automatically agitating the container and automatically capturing multiple images. In one example, the controller 140 can be programmed with a script to control the support arm 122 to move the cleaning tool 120 in a random movement pattern and to control the vibrators 152 and 154 to randomly vibrate the container to agitate the contents. In use, after the contents of the container are agitated, the controller 140 can be used to control the camera 130 to automatically capture images. The camera 130 can be controlled to capture a preset number of images.
[0128] refer to Figure 7 , shows an embodiment of the present disclosure. This embodiment provides a method 700 for generating random images of an herbal preparation, comprising the following steps: receiving (702) one or more image parameters; controlling (704) a cleaning tool to agitate the herbal preparation in a container in a random movement pattern; after the cleaning tool stops moving, capturing (706) one or more images of the herbal preparation; and storing (708) the captured images. The method 700 may be performed by the apparatus 100 for generating random images. The method 700 may be repeated until a specified number of images are captured.
[0129] Figure 8 Another embodiment of a method 800 for generating random images of an herbal preparation (e.g., a traditional Chinese medicine preparation) is shown. The method 800 includes step 802. Step 802 includes receiving one or more image parameters that define image characteristics. The image parameters may also define the number of images to be captured.
[0130] Step 804 includes receiving input corresponding to a shape, wherein the shape defines a movement pattern of the cleaning tool 120 within the container containing the herbal preparation. The shape is randomly selected from a plurality of preset shapes. Each shape may correspond to a number, and the method includes generating a random number to randomly select a shape.
[0131] Step 806 includes vibrating the container in a random pattern using the vibrators 152, 154. Step 808 includes controlling the movement of the sweeping tool 120 within the container according to the randomly selected movement pattern to agitate the herbal preparation within the container. Steps 806 and 808 can be performed simultaneously. In use, the container and its contents can be agitated by simultaneously vibrating the container using the vibrators and moving the sweeping tool 120 within the container.
[0132] Step 810 includes controlling the camera 130 to capture an image of the herbal preparation in the container after the stirring is completed.After the sweeper stops moving and the vibrator stops vibrating the container 110, the camera 130 captures an image of the agitated herbal preparation.
[0133] Step 812 includes storing the captured images in database 180. Alternatively, the captured images may be stored in a storage unit. The steps of method 800 may be repeated multiple times to capture and store a specified number of images. The specified number of images may be used to create a training dataset or a validation dataset for a computer model (e.g., a machine learning model).
[0134] In one example, the predetermined shape can be a polygon (e.g., a rectangle, square, trapezoid, etc.) or an arcuate shape (e.g., a circle, an ellipse, etc.). The predetermined shape can be a 2D shape or a 3D shape; the cleaning tool can be controlled to move according to the selected shape. The image is a random image generated by method 700 or 800, which is randomly generated due to the random movement pattern of the cleaning tool and / or the randomness of the vibration applied to the container.
[0135] In an optional alternative, steps 806 and 808 can be performed sequentially. For example, the container can be vibrated first, and then the cleaning tool can be moved. In another example, step 808 can be performed first, and then step 806 can be performed. In another example, only step 808 (i.e., movement of the cleaning tool 120) can be performed, and step 806 can be skipped. In another alternative, the container can be vibrated only through step 806, and step 808 can be skipped.
[0136] In one example, the images are random images generated due to the random movement pattern of the cleaning tool. In one example, the captured images can be used as a training data set to train a computer model for recognizing herbal formulas.
[0137] The method for generating random images of herbal preparations may be an automated method. The method may be performed by one or more components of the apparatus described above. In one example, the method may be performed by a controller in the apparatus for generating random images of herbal preparations.
[0138] In one example, the herbal preparation can be a traditional Chinese medicine preparation comprising one or more herbs. The term "herbal preparation" can encompass a single herb or a mixture of multiple herbs. The one or more herbs can be processed in any suitable manner, such as by grinding, cutting, chopping, powdering, etc.
[0139] The method of generating random images of herbal preparations is advantageous because it provides an automated method for generating a set of images that can be used to train or validate a computer model. The automated method generates random images that provide a more robust dataset for training and / or validation.
[0140] The apparatus and methods described herein are advantageous because they eliminate the need for a person to manually capture images to generate an image dataset. The apparatus can be automated and is advantageous because it provides an automated means of capturing multiple images for a dataset for use in training or validating a computer model. The apparatus and methods automatically generate many random images, which provide a large and robust dataset for training a computer model.
[0141] The device is advantageous because it can generate randomness in the herbal preparation by using at least two mechanisms: a sweeping tool and a vibrator. The sweeping tool and the vibrator can be used simultaneously to further generate randomness in the herbal preparation. The increased randomness in the container is captured in the image. The randomness in the captured image results in a more robust dataset.
[0142] It should also be understood that where the methods and systems of the present disclosure are implemented in whole or in part by a computing system, any suitable computing system architecture may be used. This would include stand-alone computers, network computers, and dedicated hardware devices. Where the terms "computing system" and "computing device" are used, these terms are intended to include any suitable configuration of computer hardware capable of implementing the described functionality.
[0143] The terms "computer-readable medium" or "machine-readable medium" should also be understood to include any medium that can store, encode, or carry a set of instructions for execution by a processor of a computing device and cause the processor to perform any one or more of the methods described herein. Computer-readable media can also store, encode, or carry data structures used by or associated with these instruction sets. The terms "computer-readable medium" and "machine-readable medium" include, but are not limited to: portable to fixed storage devices, solid-state memories, optical media or optical storage devices, magnetic media, and / or various other media capable of storing, containing, or carrying instructions and / or data. "Computer-readable medium" or "machine-readable medium" can be non-transitory.
[0144] Furthermore, it should be noted that embodiments may be described as processes, which may be depicted as flow charts, flow diagrams, structure diagrams, or block diagrams. Although a flow chart may depict operations as a sequential process, many operations may be performed in parallel or simultaneously. Furthermore, the order of the operations may be rearranged. A process terminates when its operations are completed. A process may correspond to a method, function, procedure, subroutine, subprogram, etc. in a computer program. When a process corresponds to a function, its termination corresponds to the function returning to the calling function or the main function.
[0145] It will be appreciated by those skilled in the art that various changes and / or modifications may be made to the present disclosure as shown in the specific embodiments without departing from the spirit or scope of the present disclosure as broadly described. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive.
[0146] Unless otherwise indicated, any reference to prior art contained herein should not be taken as an admission that the information is common general knowledge.
Claims
1. A device for generating random images of herbal preparations, characterized in that include: Containers for herbal preparations; A cleaning tool movable in multiple degrees of freedom; a controller operatively connected to the cleaning tool for controlling movement of the cleaning tool; a camera for capturing an image of the herbal preparation within the container; wherein, in use, the cleaning tool is movable within the container based on one or more randomly generated movement patterns to agitate the herbal preparation within the container; Wherein, the camera is controlled to capture an image of the herbal preparation within the container after the cleaning tool stops moving.
2. The device for generating random images of herbal preparations according to claim 1, characterized in that Also includes: A vibrator, wherein the vibrator is attached to the container and is used to vibrate the container to agitate the herbal preparation within the container.
3. The device for generating random images of herbal preparations according to claim 2, characterized in that in, The vibrator is controlled to vibrate the container in a random pattern.
4. The device for generating random images of herbal preparations according to claim 1, characterized in that in, The camera is configured to capture a plurality of images of the herbal preparation; and each time the cleaning tool has been moved according to the randomly generated movement pattern, the camera is configured to capture an image such that the captured image is a random image.
5. The device for generating random images of herbal preparations according to claim 3, characterized in that in, The device comprises a plurality of vibrators operatively connected to the controller; and the controller is used to control the vibrators to operate independently to generate different patterns of vibrations, wherein the vibrations are applied to the container to agitate the herbal preparation with the container.
6. The device for generating random images of herbal preparations according to claim 2, characterized in that in, The movement pattern defines a preset shape; and the cleaning tool moves in the preset shape.
7. The device for generating random images of herbal preparations according to claim 6, characterized in that in, The controller is used to store a plurality of preset shapes; in Each of said shapes is associated with a number; The controller includes a random number generator; The controller is configured to select a preset shape based on a random number generated by the random number generator; as well as The controller is used to control the cleaning tool to move in a selected preset shape.
8. The device for generating random images of herbal preparations according to claim 7, characterized in that in, The cleaning tool is configured to be controlled to move along any one or more of the X-axis of the container, the Y-axis of the container, or to rotate about the Z-axis of the container.
9. The device for generating random images of herbal preparations according to claim 7, characterized in that in, The preset shape may be any one or more of a circle, a square, a triangle, a trapezoid or any polygon.
10. The device for generating random images of herbal preparations according to claim 7, characterized in that in, When the cleaning tool moves around the container, the vibrator is controlled to vibrate the container at the same time.
11. The device for generating random images of herbal preparations according to claim 7, characterized in that in, The preset shape may be a 2D shape or a 3D shape.
12. The device for generating random images of herbal preparations according to claim 8, characterized in that in, The cleaning tool moves linearly along the X-axis and the Y-axis of the container and rotates around the Z-axis of the container to move the cleaning tool in the preset shape.
13. The device for generating random images of herbal preparations according to claim 7, characterized in that in, The controller is configured to receive one or more image parameters defining requirements for one or more images.
14. The device for generating random images of herbal preparations according to claim 13, characterized in that in, The cleaning tool is controlled to move within the container based on the preset shape and the one or more image parameters.
15. The device for generating random images of herbal preparations according to claim 14, characterized in that in, The image parameters include one or more of size, color palette, and stroke density.
16. The device for generating random images of herbal preparations according to claim 7, characterized in that include: Support arm; in The cleaning tool is removably attached to the support arm; The support arm is configured to be articulated with six degrees of freedom; In use, the support arm moves, causing the cleaning tool to move.
17. A method for generating random images of herbal preparations, characterized in that include: receiving an input corresponding to a shape; wherein the shape defines a movement pattern of a cleaning tool within a container containing an herbal preparation; wherein the shape is randomly selected from a plurality of preset shapes; controlling the cleaning tool to move within the container according to the randomly selected movement pattern to agitate the herbal preparation within the container; capturing an image, or controlling a camera to capture an image of the herbal preparation in the container, after the sweeper stops moving; The captured image is stored in a storage unit or a database.
18. The method for generating random images of herbal preparations according to claim 17, characterized in that Also includes: vibrating the container in a random pattern using a vibrator; Receiving a selection of a preset shape; wherein the preset shape defines a movement pattern of the cleaning tool; Controlling the cleaning tool to move according to the preset shape; The container is vibrated and the cleaning tool is moved to agitate the contents of the container.
19. The method for generating random images of herbal preparations according to claim 18, characterized in that in, The steps of vibrating the container and controlling the cleaning tool to move according to the preset shape are performed simultaneously to agitate the contents of the container; The step of capturing an image is performed after the vibration within the container and the movement of the cleaning tool have ceased.
20. The method for generating random images of herbal preparations according to claim 19, characterized in that in, Repeating the steps of claim 17 to capture a plurality of images, wherein the images are random images generated due to a random movement pattern of the cleaning tool.