CN104568932B - A kind of substance detecting method and mobile terminal - Google Patents
A kind of substance detecting method and mobile terminal Download PDFInfo
- Publication number
- CN104568932B CN104568932B CN201410813861.1A CN201410813861A CN104568932B CN 104568932 B CN104568932 B CN 104568932B CN 201410813861 A CN201410813861 A CN 201410813861A CN 104568932 B CN104568932 B CN 104568932B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- test paper
- camera
- color
- detected
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 239000000126 substance Substances 0.000 title claims abstract description 19
- 238000012360 testing method Methods 0.000 claims abstract description 121
- 239000000463 material Substances 0.000 claims abstract description 76
- 238000006243 chemical reaction Methods 0.000 claims abstract description 41
- 238000012545 processing Methods 0.000 claims abstract description 35
- 238000004587 chromatography analysis Methods 0.000 claims description 16
- 238000001228 spectrum Methods 0.000 claims description 16
- 238000004458 analytical method Methods 0.000 claims description 7
- ZAMOUSCENKQFHK-UHFFFAOYSA-N Chlorine atom Chemical compound [Cl] ZAMOUSCENKQFHK-UHFFFAOYSA-N 0.000 claims description 5
- NPYPAHLBTDXSSS-UHFFFAOYSA-N Potassium ion Chemical compound [K+] NPYPAHLBTDXSSS-UHFFFAOYSA-N 0.000 claims description 5
- 239000000460 chlorine Substances 0.000 claims description 5
- 229910052801 chlorine Inorganic materials 0.000 claims description 5
- 229910001414 potassium ion Inorganic materials 0.000 claims description 5
- 239000003086 colorant Substances 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000001514 detection method Methods 0.000 description 7
- 235000013305 food Nutrition 0.000 description 7
- 210000003128 head Anatomy 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000004927 fusion Effects 0.000 description 6
- 239000000203 mixture Substances 0.000 description 5
- 241000894006 Bacteria Species 0.000 description 3
- -1 antibiotic Substances 0.000 description 3
- 235000013361 beverage Nutrition 0.000 description 3
- 230000003115 biocidal effect Effects 0.000 description 3
- 239000003183 carcinogenic agent Substances 0.000 description 3
- 235000013365 dairy product Nutrition 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 3
- 235000013601 eggs Nutrition 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 229910001385 heavy metal Inorganic materials 0.000 description 3
- 235000013372 meat Nutrition 0.000 description 3
- 239000000575 pesticide Substances 0.000 description 3
- 239000003755 preservative agent Substances 0.000 description 3
- 230000002335 preservative effect Effects 0.000 description 3
- 235000013311 vegetables Nutrition 0.000 description 3
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 3
- 235000000177 Indigofera tinctoria Nutrition 0.000 description 2
- 239000002253 acid Substances 0.000 description 2
- 238000004040 coloring Methods 0.000 description 2
- 229940097275 indigo Drugs 0.000 description 2
- COHYTHOBJLSHDF-UHFFFAOYSA-N indigo powder Natural products N1C2=CC=CC=C2C(=O)C1=C1C(=O)C2=CC=CC=C2N1 COHYTHOBJLSHDF-UHFFFAOYSA-N 0.000 description 2
- 239000007788 liquid Substances 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000001473 noxious effect Effects 0.000 description 2
- 231100000614 poison Toxicity 0.000 description 2
- 230000007096 poisonous effect Effects 0.000 description 2
- 210000004556 brain Anatomy 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 229940079593 drug Drugs 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000001000 micrograph Methods 0.000 description 1
- VIKNJXKGJWUCNN-XGXHKTLJSA-N norethisterone Chemical compound O=C1CC[C@@H]2[C@H]3CC[C@](C)([C@](CC4)(O)C#C)[C@@H]4[C@@H]3CCC2=C1 VIKNJXKGJWUCNN-XGXHKTLJSA-N 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000010183 spectrum analysis Methods 0.000 description 1
Landscapes
- Investigating Or Analysing Materials By The Use Of Chemical Reactions (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
Abstract
The embodiment of the invention discloses a kind of substance detecting method, including:Mobile terminal controls the camera of the mobile terminal to be shot to being put into material to be detected and having completed the test paper of reaction;The test paper in the scene that the mobile terminal photographs the camera carries out colour recognition, to generate corresponding color signal;The color signal is converted into digital signal by the mobile terminal;The mobile terminal carries out signal processing using default algorithm to the digital signal, to conclude the security of the material to be detected.The embodiment of the invention also discloses a kind of mobile terminal.It can be shot using the embodiment of the present invention by camera to being put into material to be detected and having completed the test paper of reaction, to obtain color signal, color signal is converted into digital signal again, and signal processing is carried out to it, to conclude the security of material to be detected, the security of material can be quickly being detected whenever and wherever possible.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of substance detecting method and mobile terminal.
Background technology
With the development of science and technology, mobile terminal is increasingly popularized, meanwhile, function is also stronger and stronger, from a kind of simple
Means of communication develop become a kind of electronic portable device of integrated multifunction.
From the point of view of the prior art, usual method is that material to be checked is sent to food safety Regulation department, food safety Regulation department
Using special equipment treat detection material be sampled and detect, this mode process is comparatively laborious, to special equipment more according to
Rely, it is impossible to the safety of material is detected whenever and wherever possible.
The content of the invention
An embodiment of the present invention provides a kind of substance detecting method and mobile terminal, can quickly detect material whenever and wherever possible
Security.
Specifically, the embodiment of the present invention provides a kind of substance detecting method, it may include:
Mobile terminal controls the camera of the mobile terminal to being put into material to be detected and having completed the test paper of reaction
Shot;
The test paper in the scene that the mobile terminal photographs the camera carries out colour recognition, with generation pair
The color signal answered;
The color signal is converted into digital signal by the mobile terminal;
The mobile terminal carries out signal processing using default algorithm to the digital signal, described to be detected to conclude
The security of material.
Correspondingly, the embodiment of the present invention also provides a kind of mobile terminal, it may include:
Control unit, for controlling the camera of the mobile terminal to being put into material to be detected and having completed reaction
Test paper is shot;
Recognition unit, carries out colour recognition, with generation for the test paper in the scene that is photographed to the camera
Corresponding color signal;
Conversion unit, for the color signal to be converted into digital signal;
Processing unit, it is described to be checked to conclude for carrying out signal processing to the digital signal using default algorithm
Survey the security of material.
The embodiment of the present invention by mobile terminal control the camera of the mobile terminal to be put into material to be detected and
The test paper for having completed reaction is shot;The test paper in the scene that the mobile terminal photographs the camera carries out
Colour recognition, to generate corresponding color signal;The color signal is converted into digital signal by the mobile terminal;The shifting
Dynamic terminal carries out signal processing using default algorithm to the digital signal, to conclude the security of the material to be detected.
It can be shot using the embodiment of the present invention by camera to being put into material to be detected and having completed the test paper of reaction, to obtain
Color signal is taken, then color signal is converted into digital signal, and signal processing is carried out to it, to conclude the peace of material to be detected
Quan Xing, can quickly detect the security of material whenever and wherever possible.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment
Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of flow diagram of the first embodiment of substance detecting method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the second embodiment of substance detecting method provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of the first embodiment of mobile terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of the second embodiment of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is a kind of structure diagram of the embodiment of the conversion unit of mobile terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of structure diagram of the 3rd embodiment of mobile terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment, belongs to the scope of protection of the invention.
In the specific implementation, in the embodiment of the present invention, terminal can include but is not limited to:Laptop, mobile phone, tablet electricity
Brain, intelligent wearable device etc..The system of terminal refers to the operating system of terminal, can include but is not limited to:Android systems
System, Saipan system, Windows systems, IOS (Mobile operating system of Apple Inc.'s exploitation) system etc..It should be noted that
Android terminal refers to the terminal of android system, and Saipan terminal refers to terminal of Saipan system, etc..Above-mentioned terminal is only to lift
Example, and it is non exhaustive, including but not limited to above-mentioned terminal.
The embodiment of the present invention provides a kind of substance detecting method, it may include:Mobile terminal controls the mobile terminal
Camera is shot to being put into material to be detected and having completed the test paper of reaction;The mobile terminal claps the camera
The test paper in the scene taken the photograph carries out colour recognition, to generate corresponding color signal;The mobile terminal is by the face
Chrominance signal is converted into digital signal;The mobile terminal carries out signal processing using default algorithm to the digital signal, with
Conclude the security of the material to be detected.The embodiment of the present invention can support user quickly to detect material whenever and wherever possible
Security.
Below in conjunction with the accompanying drawings and embodiment, the technical solution of the embodiment of the present invention is described in detail.
As shown in Figure 1, a kind of first embodiment of substance detecting method provided by the invention may comprise steps of:
S101, mobile terminal control the camera of the mobile terminal to being put into material to be detected and having completed reaction
Test paper is shot.
Specifically, mobile terminal will start the corresponding application program of material detection function before camera is opened, to be checked
Surveying material may include but be not limited only to:Pesticide, antibiotic, chemicals, carcinogenic substance, heavy metal, preservative, bacterium, pot foods,
Meat, dairy produce, water quality beverage, vegetables, eggs etc..
Alternatively, test paper may include but be not limited only to:PH test paper, potassium ion Test paper or test paper for detecting residual chlorine etc..
Alternatively, the camera of mobile terminal may include but be not limited only to:General industry camera, infrared camera, milli
Metric wave camera, microscope camera, general industry camera merged with infrared camera after camera, general industry shooting
Head merged with millimeter wave camera after camera, general industry camera and microscope camera, can also be four before it
Camera after the camera of the kind fusion of camera three or three or foregoing four fusion etc..
As a kind of possible embodiment, the camera of mobile terminal can be its camera for carrying or
The camera accessed by USB interface or wireless technology.
As a kind of possible embodiment, the color letter on the test paper in scene is got when the camera of mobile terminal
During breath, the color that the camera of mobile terminal can be also absorbed around test paper not on test paper is not changed either on test paper
The region of reflection is learned, mobile terminal can carry out image recognition and be positioned with target, i.e., mobile terminal can recognize that test paper, and target positions
To the region reflected, a kind of optional mode is that mobile terminal can utilize form fit to be compared with chromatography and navigate to examination
Paper, then chromatography diversity ratio pair is carried out to test paper, navigate on test paper and the region of chemical reaction has been carried out.
As a kind of possible embodiment, when material to be detected is put on test paper, material on test paper can be with
Material to be detected produces chemical reaction, thus different colors can be showed above test paper, and some colors are that naked eyes can be differentiated
, have plenty of what naked eyes can not be differentiated, in order to effectively accurately draw the security of material to be detected, utilize taking the photograph for mobile terminal
As head is shot to being put into material to be detected and having completed the test paper of reaction.
As a kind of possible embodiment, the selection of test paper is for layman, it is more difficult to the suitable examination of selection
Paper is treated detection material and is detected, and user can carry out material to be detected preliminary judgement, then by the basic of material to be detected
Information or the result of preliminary judgement are input to mobile terminal, and mobile terminal provides further suggestion.
As a kind of possible embodiment, test paper can be a kind of universal test paper, be detected for various situations.It is this
In the case of, can also simple operations even if layman.
As a kind of possible embodiment, test paper can be stored by accommodating case, accommodating case can inside built-in mobile terminal, or
The back side or side of the person as mobile terminal.When user's needs, which treat detection material, tests, mobile terminal can be passed through
Predetermined manner open accommodating case, to select test paper.Still optionally further, predetermined manner may include but be not limited only to:By knob
Formula, combination button, touch track, kinematic parameter etc..As user marks track, mobile terminal on the touch-screen of mobile terminal
The track is detected, if the track matches with desired guiding trajectory, test paper accommodating case can automatic spring.
The test paper in the scene that S102, the mobile terminal photograph the camera carries out colour recognition, with
Generate corresponding color signal.
Specifically, the test paper in the scene that mobile terminal photographs the camera carries out colour recognition, with life
Into corresponding color signal.For different materials to be detected, its chemical reaction produced on test paper is different.Reality
In life, material to be detected is mixture mostly, thus the color that the test paper after substance reaction to be detected is presented is multiple color
Mixing, mobile terminal can classify different colors, so that different color conversions is into different color signals.
The color signal is converted into digital signal by S103, the mobile terminal;
Specifically, color signal can be converted into digital signal by mobile terminal, and such as red is 1, and orange is 2, yellow 3,
Green is 4, blueness 5, indigo color are 6, purple 7.Further, the ratio of color can further be converted, for example, it is blue
Color 70%, red 20%, green are 10%, and digital signal is 5-7-1-2-4-1.
S104, the mobile terminal carry out signal processing using default algorithm to the digital signal, final to draw
Signal processing results.
Specifically, mobile terminal is handled the digital signal using default algorithm, as mobile terminal can establish number
According to storehouse, summarize to the obtained color of various testing results, different signal processing knots then is shown to different colours
Fruit.
As a kind of possible embodiment, preset algorithm can be simple mapping algorithm, letter that such as can also be complicated
Number relational expression.If preset algorithm can be a kind of coding/decoding method, digital signal can be converted into analog signal by it, make itself and it is mobile eventually
The standard colorimetric card information to prestore in end is compared, to analyze and conclude last signal processing results.The knot of signal processing
Fruit may include but be not limited only to:Material property (material composition), whether poisonous (which kind of noxious material contained), food become
Matter, liquid are acid or alkalescence etc..
As a kind of possible embodiment, mobile terminal can clear up the test paper after test, so that test paper can be with
Reuse.
As a kind of possible embodiment, mobile terminal can believe the numeral after being converted in mobile terminal in step S103
Number contrast the either database data of company's platform with the standard parameter in internet compares and analyzes.
The embodiment of the present invention by mobile terminal control the camera of the mobile terminal to be put into material to be detected and
The test paper for having completed reaction is shot;The test paper in the scene that the mobile terminal photographs the camera carries out
Colour recognition, to generate corresponding color signal;The color signal is converted into digital signal by the mobile terminal;The shifting
Dynamic terminal carries out signal processing using default algorithm to the digital signal, to conclude the security of the material to be detected.
It can be shot using the embodiment of the present invention by camera to being put into material to be detected and having completed the test paper of reaction, to obtain
Color signal is taken, then color signal is converted into digital signal, and signal processing is carried out to it, to conclude the peace of material to be detected
Quan Xing, can quickly detect the security of material whenever and wherever possible.
As shown in Fig. 2, a kind of second embodiment of substance detecting method provided by the invention may comprise steps of:
S201, the mobile terminal are analyzed the color signal, to draw the color spectrum of the color signal.
Specifically, after the material after chemical reaction to be detected on test paper, color is necessarily different, the difference performance of color
In colour type, shade.The system of mobile terminal can divide the depth of each color into line range, then by its every kind of face
The scope of color is encoded.When the camera of mobile terminal gets the color on the test paper of scene, by its corresponding color
New signal is analyzed, and the mode of analysis can include but are not limited to:Chromatography, chromatographic analysis etc., subsequently to divide
The color obtained after analysis is encoded.
S202, the mobile terminal encode the color spectrum, to obtain the digital signal.
Specifically, the color spectrum that mobile terminal analyzes colouring information in S201 encodes, and the mode of coding is not
Limit, it may include but be not limited only to:Compressed encoding, uncompressed coding, ASCII etc..Mobile terminal encodes color signal
Afterwards, digital signal is obtained.
The embodiment of the present invention is analyzed the color signal by the mobile terminal, to draw the color signal
Color spectrum, the mobile terminal encodes the color spectrum, to obtain the digital signal.Using the embodiment of the present invention
Color signal can be analyzed and encoded, analog signal is converted into digital signal, favorably uses computer disposal.
Correspondingly, the embodiment of the present invention also provides a kind of mobile terminal and is used for substance detecting method, it may include:Control is single
Member, the camera for controlling the mobile terminal are shot to being put into material to be detected and having completed the test paper of reaction;
Recognition unit, carries out colour recognition, to generate corresponding face for the test paper in the scene that is photographed to the camera
Chrominance signal;Conversion unit, for the color signal to be converted into digital signal;Processing unit, for using default algorithm
Signal processing is carried out to the digital signal, to conclude the security of the material to be detected.
Below in conjunction with the accompanying drawings and embodiment, the technical solution of device in the embodiment of the present invention is carried out specifically
It is bright.
As shown in figure 3, a kind of first embodiment of mobile terminal provided by the invention, it may include consisting of unit:
Control unit 301, for controlling the camera of the mobile terminal to being put into material to be detected and having completed anti-
The test paper answered is shot;
Specifically, control unit 301 will start the corresponding application program of material detection function before camera is started,
Material to be detected may include but be not limited only to:It is pesticide, antibiotic, chemicals, carcinogenic substance, heavy metal, preservative, bacterium, small
Food, meat, dairy produce, water quality beverage, vegetables, eggs etc..
Test paper may include but be not limited only to:PH test paper, potassium ion Test paper or test paper for detecting residual chlorine etc..
The camera of mobile terminal may include but be not limited only to:General industry camera, infrared camera, millimeter wave shooting
Head, microscope camera, general industry camera merged with infrared camera after camera, general industry camera and millimeter
Ripple camera fusion after camera, general industry camera and microscope camera, can also be four kinds of cameras before it
Camera after the camera of three or three fusions or foregoing four fusion etc..
As a kind of possible embodiment, the camera of mobile terminal can be its camera for carrying or
The camera accessed by USB interface or wireless technology.
As a kind of possible embodiment, when material to be detected is put on test paper, material on test paper can be with
Material to be detected produces chemical reaction, thus different colors can be showed above test paper, and some colors are that naked eyes can be differentiated
, have plenty of what naked eyes can not be differentiated, in order to effectively accurately draw the security of material to be detected, utilize taking the photograph for mobile terminal
As head is shot to being put into material to be detected and having completed the test paper of reaction.
As a kind of possible embodiment, the selection of test paper is for layman, it is more difficult to the suitable examination of selection
Paper is treated detection material and is detected, and user can carry out material to be detected preliminary judgement, then by the basic of material to be detected
Information or the result of preliminary judgement are input to mobile terminal, and mobile terminal provides further suggestion.
As a kind of possible embodiment, test paper can be a kind of universal test paper, be detected for various situations.It is this
In the case of, can also simple operations even if layman.
As a kind of possible embodiment, test paper can be stored by accommodating case, accommodating case can inside built-in mobile terminal, or
The back side or side of the person as mobile terminal.When user's needs, which treat detection material, tests, mobile terminal can be passed through
Predetermined manner open accommodating case, to select test paper.Still optionally further, predetermined manner may include but be not limited only to:By knob
Formula, combination button, touch track, kinematic parameter etc..As user marks track, mobile terminal on the touch-screen of mobile terminal
The track is detected, if the track matches with desired guiding trajectory, test paper accommodating case can automatic spring.
As a kind of possible embodiment, the color letter on the test paper in scene is got when the camera of mobile terminal
During breath, the color that the camera of mobile terminal can be also absorbed around test paper not on test paper is not changed either on test paper
The region of reflection is learned, mobile terminal can also include:Image identification unit (not marked in figure) can carry out image recognition and target
Positioning unit (not marked in figure) is positioned for target, i.e., image identification unit can recognize that test paper, and target positioning unit target
The region reflected is navigated to, a kind of optional mode is that image identification unit can be compared using form fit with chromatography
Test paper is navigated to, then chromatography diversity ratio pair is carried out to test paper, target positioning unit, which is navigated on test paper, has been carried out chemistry instead
The region answered.
Recognition unit 302, carries out colour recognition, with life for the test paper in the scene that is photographed to the camera
Into corresponding color signal.
Specifically, the test paper in the scene that recognition unit 302 photographs the camera carries out colour recognition, with
Generate corresponding color signal.For different materials to be detected, its chemical reaction produced on test paper is different.It is existing
Grow directly from seeds in living, material to be detected is mixture mostly, thus the color that the test paper after substance reaction to be detected is presented is a variety of face
The mixture of colours, recognition unit 302 can classify different colors, so that different color conversions is believed into different colors
Number.
Conversion unit 303, for the color signal to be converted into digital signal;
Specifically, color signal can be converted into digital signal by conversion unit 303, and such as red is 1, and orange is 2, and yellow is
3rd, green is 4, blueness 5, indigo color are 6, purple 7.Further, the ratio of color can further be converted, such as
Blueness 70%, red 20%, green are 10%, and digital signal can be 5-7-1-2-4-1.
Processing unit 304, for carrying out signal processing to the digital signal using default algorithm, to conclude described treat
Detect the security of material.
Specifically, processing unit 304 can be handled the digital signal using default algorithm, as mobile terminal can be built
Vertical database, summarizes the obtained color of various testing results, then drawing at different signals to different colours
Manage result.
As a kind of possible embodiment, preset algorithm can be simple mapping algorithm, letter that such as can also be complicated
Number relational expression.If preset algorithm can be a kind of coding/decoding method, digital signal can be converted into analog signal by it, make itself and it is mobile eventually
The standard colorimetric card information to prestore in end is compared, to analyze and conclude last signal processing results.The knot of signal processing
Fruit may include but be not limited only to:Material property (material composition), whether poisonous (which kind of noxious material contained), food become
Matter, liquid are acid or alkalescence etc..
As a kind of possible embodiment, as described in Figure 4, it can also include:Unit 305 is cleared up, for test
Test paper afterwards is cleared up, so that test paper can reuse.
As a kind of possible embodiment, comparison unit (not marked in figure) moves during can conversion unit 303 be converted
The standard parameter in digital signal and internet after being converted in terminal contrast the database data of either company's platform
Compare and analyze.
The embodiment of the present invention controls the camera of the mobile terminal to being put into material to be detected by control unit 301
And the test paper for having completed reaction is shot;The test paper in the scene that recognition unit 302 photographs the camera into
Row colour recognition, to generate corresponding color signal;Conversion unit 303, for the color signal to be converted into digital signal;
Processing unit 304 carries out signal processing using default algorithm to the digital signal, to conclude the peace of the material to be detected
Quan Xing.It can be clapped using the embodiment of the present invention by camera being put into material to be detected and having completed the test paper of reaction
Take the photograph, to obtain color signal, then color signal is converted into digital signal, and signal processing is carried out to it, it is to be detected to conclude
The security of material, can quickly detect the security of material whenever and wherever possible.
As shown in figure 5, a kind of structure diagram of the embodiment of the conversion unit of mobile terminal provided by the invention, it can
Including consisting of unit:
Analytic unit 401, for the color signal to be analyzed, to draw the color spectrum of the color signal.
Specifically, after the material after chemical reaction to be detected on test paper, color is necessarily different, the difference performance of color
In colour type, shade.Analytic unit 401 can divide the depth of each color into line range, then by its each color
Scope encoded.It is when the camera of mobile terminal gets the color on the test paper of scene, its corresponding color is new
Signal is analyzed, and the mode of analysis can include but are not limited to:Chromatography, chromatographic analysis etc., so as to subsequent analysis
The color obtained afterwards is encoded.
Coding unit 402, for being encoded to the color spectrum, to obtain the digital signal.
Specifically, the color spectrum that 401 colouring information of analytic unit is analyzed is encoded, and the mode of coding is unlimited, can
Include but are not limited to:Compressed encoding, uncompressed coding, ASCII etc..After mobile terminal encodes color signal, obtain
To digital signal.
The embodiment of the present invention is analyzed the color signal by analytic unit 401, to draw the color signal
Color spectrum, coding unit 402 encodes the color spectrum, to obtain the digital signal.Using the embodiment of the present invention
Color signal can be analyzed and encoded, analog signal is converted into digital signal, favorably uses computer disposal.
It is the 3rd embodiment structure diagram of terminal provided in an embodiment of the present invention referring to Fig. 6.Retouched in the present embodiment
The terminal stated includes:At least one input equipment 1000;At least one output equipment 2000;At least one processor 3000, example
Such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor 3000 and memory 4000 are by total
Line 5000 connects.
Wherein, the contact panel of above-mentioned input equipment 1000 concretely terminal, including touch-screen and touch screen, for examining
Survey the operational order in terminal touch panel.
As a kind of possible embodiment, specific above-mentioned input equipment 1000 can be also the camera of mobile terminal, should
Camera can be front camera or rear camera, and the type of the camera may include but be not limited only to:General industry is taken the photograph
After being merged as head, infrared camera, millimeter wave camera, microscope camera, general industry camera with infrared camera
Camera, general industry camera merged with millimeter wave camera after camera, general industry camera and microscope image pick-up
Head, can also be camera after four kinds of cameras three or three merge before it camera or foregoing four fusion etc..
As a kind of possible embodiment, specific above-mentioned input equipment 1000 can be also the camera of mobile terminal.Move
The camera of dynamic terminal can be its camera carried or the shooting accessed by USB interface or wireless technology
Head.
In some feasible embodiments, material to be detected may include but be not limited only to:Pesticide, antibiotic, chemical drugs
Product, carcinogenic substance, heavy metal, preservative, bacterium, pot foods, meat, dairy produce, water quality beverage, vegetables, eggs etc..
The display screen of above-mentioned output equipment 2000 concretely terminal, for exporting, display image data (including display light
Spectrum analysis figure, provide mobile terminal the result that draws of processing finally carried out to the test paper after test).
Above-mentioned memory 4000 can be high-speed RAM memory, or non-labile memory (non-volatile
), such as magnetic disk storage memory.Above-mentioned memory 4000 is used to store batch processing code, above-mentioned input equipment 1000, defeated
Go out equipment 2000 and processor 3000 is used to call the program code stored in memory 4000, perform following operation:
Above-mentioned input equipment 1000, the camera for mobile terminal is to being put into material to be detected and having completed reaction
Test paper is shot.
Above-mentioned processor 3000, colour recognition is carried out for the test paper in the scene that is photographed to the camera,
To generate corresponding color signal.
In some feasible embodiments, test paper may include but be not limited only to:PH test paper, potassium ion Test paper or remaining
Chlorine Test paper etc..
Above-mentioned processor 3000, for color signal to be converted into digital signal.
Above-mentioned processor 3000, is additionally operable to carry out signal processing to digital signal using default algorithm, final to draw
Signal processing results.
In some feasible embodiments, above-mentioned processor 3000 also particularly useful for:Color signal is analyzed, with
Draw the color spectrum of color signal;Color spectrum is encoded, to obtain digital signal.
In the specific implementation, input equipment 1000, output equipment 2000 and processor described in the embodiment of the present invention
3000 can perform the implementation described in each embodiment of substance detecting method provided in an embodiment of the present invention, also can perform
The first embodiment of terminal provided in an embodiment of the present invention to the terminal described in 3rd embodiment implementation, herein not
Repeat again.
Module or submodule in all embodiments of the invention, can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, application-specific integrated circuit) realize.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit in device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, abbreviation RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
Enclose, therefore equivalent variations made according to the claims of the present invention, it is still within the scope of the present invention.
Claims (8)
- A kind of 1. substance detecting method, it is characterised in that including:Mobile terminal controls the camera of the mobile terminal to be carried out to being put into material to be detected and having completed the test paper of reaction Shooting, including:Compared using form fit and chromatography and navigate to the test paper, then chromatography diversity ratio pair is carried out to the test paper, Navigate on the test paper and the region of chemical reaction has been carried out;The test paper is stored by accommodating case, built in the accommodating case Inside the mobile terminal, the accommodating case marks track, the shifting for user on the touch-screen of the mobile terminal Dynamic terminal-pair track is detected, if the track matches with desired guiding trajectory, automatic spring;The test paper in the scene that the mobile terminal photographs the camera carries out colour recognition, corresponding to generate Color signal;The color signal is converted into digital signal by the mobile terminal;The mobile terminal carries out signal processing using default algorithm to the digital signal, to conclude the material to be detected Security;Wherein, the color signal is converted into digital signal by the mobile terminal, including:The mobile terminal is analyzed the color signal, to draw the color spectrum of the color signal, including:Will be every kind of The depth of color divides into line range, then the scope of its each color is encoded, and the mode of the analysis is chromatography And chromatographic analysis;The mobile terminal encodes the color spectrum, to obtain the digital signal.
- 2. the method as described in claim 1, it is characterised in that the test paper can be at least one of following test paper:PH Test paper, potassium ion Test paper and test paper for detecting residual chlorine.
- 3. the method as described in claim 1, it is characterised in that the camera can be one kind in following camera or It is a variety of:General industry camera, ultraviolet camera and infrared camera.
- 4. the method as described in claim 1, it is characterised in that the mobile terminal believes the numeral using default algorithm Number carry out signal processing, after concluding the security of the material to be detected, including:The mobile terminal clears up the test paper, so that the test paper can reuse.
- A kind of 5. mobile terminal, it is characterised in that including:Control unit, for controlling the camera of the mobile terminal to being put into material to be detected and having completed the test paper of reaction Shot, including:Compared using form fit and chromatography and navigate to the test paper, then chromatography diversity ratio is carried out to the test paper It is right, navigate on the test paper and the region of chemical reaction has been carried out;The test paper is stored by accommodating case, in the accommodating case It is placed in inside the mobile terminal, the accommodating case marks track for user on the touch-screen of the mobile terminal, described Mobile terminal is detected the track, if the track matches with desired guiding trajectory, automatic spring;Recognition unit, carries out colour recognition, to generate correspondence for the test paper in the scene that is photographed to the camera Color signal;Conversion unit, for the color signal to be converted into digital signal;Processing unit, for carrying out signal processing to the digital signal using default algorithm, to conclude the thing to be detected The security of matter;Wherein, the conversion unit includes:Analytic unit, for the color signal to be analyzed, to draw the color spectrum of the color signal, including:Will be every The depth of kind color is divided into line range, then the scope of its each color is encoded, and the mode of the analysis is chromatography point Analysis and chromatographic analysis;Coding unit, for being encoded to the color spectrum that the analytic unit is analyzed, is believed with obtaining the numeral Number.
- 6. mobile terminal as claimed in claim 5, it is characterised in that the test paper can be at least one in following test paper Kind:PH test paper, potassium ion Test paper or test paper for detecting residual chlorine.
- 7. mobile terminal as claimed in claim 5, it is characterised in that the camera can be one kind in following camera It is or a variety of:General industry camera or infrared camera.
- 8. mobile terminal as claimed in claim 5, it is characterised in that the mobile terminal further includes:Unit is cleared up, for clearing up the test paper, so that the test paper can reuse.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410813861.1A CN104568932B (en) | 2014-12-24 | 2014-12-24 | A kind of substance detecting method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410813861.1A CN104568932B (en) | 2014-12-24 | 2014-12-24 | A kind of substance detecting method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104568932A CN104568932A (en) | 2015-04-29 |
CN104568932B true CN104568932B (en) | 2018-05-15 |
Family
ID=53085501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410813861.1A Active CN104568932B (en) | 2014-12-24 | 2014-12-24 | A kind of substance detecting method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104568932B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106124505B (en) * | 2015-05-04 | 2020-06-23 | 宏达国际电子股份有限公司 | Physiological parameter detection system and test paper identification and interpretation method |
CN107121391A (en) * | 2017-06-12 | 2017-09-01 | 北京爱康泰科技有限责任公司 | For aiding in the device of test paper detection, the system and method for liquid detecting |
WO2019206130A1 (en) * | 2018-04-23 | 2019-10-31 | Chen Haoneng | Method and apparatus for product monitoring |
CN111259035B (en) * | 2018-04-23 | 2024-01-12 | 陈浩能 | Storage device |
CN113869087A (en) * | 2020-06-30 | 2021-12-31 | 华为技术有限公司 | Method for identifying hygiene condition of object and related electronic equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103581391A (en) * | 2013-11-22 | 2014-02-12 | 武汉友芝友医疗科技有限公司 | Smart phone and method for measuring pH (potential of hydrogen) of body fluid |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3676887B2 (en) * | 1996-08-08 | 2005-07-27 | 理想科学工業株式会社 | Color two-dimensional code and color two-dimensional code creation device |
TW541502B (en) * | 2000-05-09 | 2003-07-11 | Colorzip Media Inc | Machine readable code and method and device of encoding and decoding the same |
CN103414810A (en) * | 2013-07-29 | 2013-11-27 | 王曙光 | Method for detecting response image based on mobile terminal, mobile terminal and detection carrier |
CN103792196A (en) * | 2014-01-20 | 2014-05-14 | 榕盛(苏州)医疗技术有限公司 | Application method of blood glucose analysis system based on APP technology |
-
2014
- 2014-12-24 CN CN201410813861.1A patent/CN104568932B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103581391A (en) * | 2013-11-22 | 2014-02-12 | 武汉友芝友医疗科技有限公司 | Smart phone and method for measuring pH (potential of hydrogen) of body fluid |
Also Published As
Publication number | Publication date |
---|---|
CN104568932A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104568932B (en) | A kind of substance detecting method and mobile terminal | |
US11900638B2 (en) | Systems and methods for analyzing colors | |
Kalinowska et al. | Smartphones as tools for equitable food quality assessment | |
US10191620B2 (en) | Sample-analyzing system | |
CN106155483A (en) | Display packing and terminal | |
CN105913088A (en) | Lag identification method, lag identification device and computing equipment | |
CN103198316A (en) | Method, apparatus and system for identifying distracting elements in an image | |
CN112219110A (en) | Method for assessing suitability of lighting conditions for detecting an analyte in a sample using a camera of a mobile device | |
CN107347119B (en) | Indoor and outdoor mode setting platform | |
US9436996B2 (en) | Recording medium storing image processing program and image processing apparatus | |
KR20130086690A (en) | System for performing colorimetric analysis when running in a portable device and method of colorimetric analysis using the same | |
Weinstein et al. | Geographic generalization in airborne RGB deep learning tree detection | |
KR102550665B1 (en) | A method and system for measuring allergic symptom analysis using micro-needle patch | |
CN204613112U (en) | A kind of substance detecting apparatus | |
CN105718283A (en) | Method and device for designing colors of display interface of application program | |
CN109189246A (en) | A kind of scribble content and handled methods, devices and systems on pair of handwriting pad | |
CN107426440A (en) | A kind of control method of indoor and outdoor mobile terminal | |
CN112444493B (en) | Optical detection system and device based on artificial intelligence | |
DE212017000151U1 (en) | Surround and additional circuitry for enhancing the functionality of a mobile device | |
CN105324983B (en) | Picture pick-up device, image processing equipment and its control method | |
CN105959540A (en) | Mobile terminal processing method and mobile terminal processing device | |
CN111680647A (en) | Goggles for hazardous chemical substance detection and detection method thereof | |
CN107479680B (en) | A kind of PDA automatic shutdown methods | |
CN109308430A (en) | Color bar code is decoded | |
CN109522525A (en) | content module identification method and family education equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200701 Address after: No.52, Yingbin Avenue, Tunxi District, Huangshan City, Anhui Province Patentee after: Anhui Guangzhi Technology Co., Ltd Address before: 518000 Guangdong city of Shenzhen province Baoan District Xixiang street Yonghui Schroder Road business building 801 Patentee before: SHENZHEN JOY TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |