Invention content
The disclosure is designed to provide a kind of fresh dispatching reminding method monitoring freshness and can monitor freshness
Fresh dispatching suggestion device, and then overcome at least to a certain extent one caused by the limitation and defect of the relevant technologies
A or multiple problems.
According to one aspect of the disclosure, a kind of fresh dispatching reminding method monitoring freshness is provided, including:
Fresh initial pictures are received, the initial pictures are subjected to gray processing processing, obtain initial gray value matrix;
The fresh storage image is received in preset time, the storage image is subjected to gray processing processing, is deposited
Put gray scale value matrix;
The storage gray scale value matrix and the initial gray value matrix are compared, the storage gray scale value matrix with
When the gap of the initial gray value matrix is more than given threshold, prompted to adjust distribution strategy.
In a kind of exemplary embodiment of the disclosure, the fresh dispatching reminding method further includes:
The environment temperature of its local environment is received while receiving the fresh initial pictures and storage image, and is counted
Calculation obtains the first freshness, and first freshness and the environment temperature are transferred to a server;
Fissipation factor is calculated according to first freshness and the environment temperature for the server and environment becomes
Parameter is measured, and the fissipation factor and environmental variance parameter are returned;
The second freshness is calculated according to the environment temperature, the fissipation factor and environmental variance parameter, according to
Second freshness is to adjust the distribution strategy.
In a kind of exemplary embodiment of the disclosure, it is calculate by the following formula the fissipation factor and environmental variance parameter,
Wherein,It is fissipation factor,It is environmental variance parameter, xiIt is the environment temperature that ith receives, yiIt is ith meter
The first obtained freshness,It is the average value of environment temperature,It is the average value of the first freshness.
In a kind of exemplary embodiment of the disclosure, pass throughCalculate second freshness, wherein
y2iIt is the second freshness that ith is calculated.
In a kind of exemplary embodiment of the disclosure, the fresh dispatching reminding method further includes:
The inquiry request for receiving a user sends second freshness and distribution information according to the inquiry request
To the user.
In a kind of exemplary embodiment of the disclosure, by the storage gray scale value matrix and the initial gray value matrix
It is compared, when the gap of the storage gray scale value matrix and the initial gray value matrix is more than given threshold, is prompted
To adjust distribution strategy, including:
By the storage gray scale value matrix according to setting regular partition at multiple submatrixs, and each submatrix is calculated
Storage average gray;
By the initial gray value matrix according to the setting regular partition at multiple submatrixs, and every height is calculated
The initial gray average value of matrix;
The storage average gray of each submatrix is compared with the initial gray average value, the storage
When the gap of average gray and the initial gray average value is more than given threshold, prompted to adjust distribution strategy.
According to another aspect of the disclosure, a kind of fresh dispatching suggestion device monitoring freshness is provided, including:
The initial pictures are carried out gray scale by initial gray value matrix acquiring unit for receiving fresh initial pictures
Change is handled, and obtains initial gray value matrix;
Storage gray scale value matrix acquiring unit is deposited for receiving the fresh storage image in preset time by described
It puts image and carries out gray processing processing, obtain storage gray scale value matrix;
Prompt unit, it is described to deposit for comparing the storage gray scale value matrix and the initial gray value matrix
When putting the gap of gray scale value matrix and the initial gray value matrix more than given threshold, prompted to adjust distribution strategy.
In a kind of exemplary embodiment of the disclosure, the fresh dispatching suggestion device further includes:
First freshness computing unit receives it while for receiving the fresh initial pictures and storage image
The environment temperature of local environment, and the first freshness is calculated, and first freshness and the environment temperature are passed
It is defeated by a server;
Fissipation factor and environmental variance parameter calculation unit, for by the server according to first freshness with
And fissipation factor and environmental variance parameter is calculated in the environment temperature, and the fissipation factor and environmental variance parameter are returned
It passes;
Second freshness computing unit, for according to the environment temperature, the fissipation factor and environmental variance parameter
The second freshness is calculated, according to second freshness to adjust the distribution strategy.
In a kind of exemplary embodiment of the disclosure, it is calculate by the following formula the fissipation factor and environmental variance parameter,
Wherein,It is fissipation factor,It is environmental variance parameter, xiIt is the environment temperature that ith receives, yiIt is ith meter
The first obtained freshness,It is the average value of environment temperature,It is the average value of the first freshness.
In a kind of exemplary embodiment of the disclosure, pass throughSecond freshness is calculated,
Wherein, y2iThe second freshness that ith is calculated.
In a kind of exemplary embodiment of the disclosure, the fresh dispatching suggestion device further includes:
Second freshness and distribution information transmission unit, the inquiry request for receiving a user, according to the inquiry
Second freshness and distribution information are sent to the user by request.
In a kind of exemplary embodiment of the disclosure, by the storage gray scale value matrix and the initial gray value matrix
It is compared, when the gap of the storage gray scale value matrix and the initial gray value matrix is more than given threshold, is prompted
To adjust distribution strategy, including:
By the storage gray scale value matrix according to setting regular partition at multiple submatrixs, and each submatrix is calculated
Storage average gray;
By the initial gray value matrix according to the setting regular partition at multiple submatrixs, and every height is calculated
The initial gray average value of matrix;
The storage average gray of each submatrix is compared with the initial gray average value, the storage
When the gap of average gray and the initial gray average value is more than given threshold, prompted to adjust distribution strategy.
The fresh dispatching reminding method for monitoring freshness of the disclosure and the fresh dispatching prompt dress that freshness can be monitored
It sets, fresh initial pictures is converted into initial gray value matrix, and receive fresh storage image in preset time, then will
Storage image is converted into storage gray scale value matrix, finally compares storage gray scale value matrix and initial gray value matrix, stores gray scale
When the gap of value matrix and initial gray value matrix is more than given threshold, prompted so that dispatching person adjusts distribution strategy.One
Aspect is prompted when storing gray scale value matrix and the gap of initial gray value matrix is more than given threshold so that dispatching person's tune
Whole distribution strategy can provide with reference to give fresh fresh product to user in time for dispatching person, improve the satisfaction of user
Degree increases the probability that user signs for, and reduces logistics loss.On the other hand, fresh product can be monitored in real time by storing image
State in delivery process, to perceive the freshness of fresh product.On the other hand, fresh initial pictures are converted into just
Storage image is converted into storage gray scale value matrix by beginning gray scale value matrix, and gray scale value matrix is easy to calculate and compare, and increases and calculates
Speed, to improve efficiency.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
The disclosure can be limited.
Specific implementation mode
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot
Structure or characteristic can be in any suitable manner incorporated in one or more embodiments.In the following description, it provides perhaps
More details fully understand embodiment of the present disclosure to provide.It will be appreciated, however, by one skilled in the art that can
It is omitted with technical solution of the disclosure one or more in the specific detail, or others side may be used
Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and
So that all aspects of this disclosure thicken.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure
Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in attached drawing are work(
Energy entity, not necessarily must be corresponding with physically or logically independent entity.Software form may be used to realize these work(
Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place
These functional entitys are realized in reason device device and/or microcontroller device.
In this example embodiment, a kind of fresh dispatching reminding method monitoring freshness, reference are provided firstly
Shown in Fig. 1, which may comprise steps of:
Step S1 receives fresh initial pictures, and the initial pictures are carried out gray processing processing, obtain initial gray value
Matrix.
Step S2 receives the fresh storage image in preset time, and the storage image is carried out gray processing processing,
Obtain storage gray scale value matrix.
Step S3 compares the storage gray scale value matrix and the initial gray value matrix, the storage gray scale
When the gap of value matrix and the initial gray value matrix is more than given threshold, prompted to adjust distribution strategy.
According to the fresh dispatching reminding method that can monitor freshness in this example embodiment, on the one hand, in storage gray value
The gap of matrix and initial gray value matrix is prompted when being more than given threshold so that dispatching person adjusts distribution strategy, Ke Yiwei
Dispatching person is provided with reference to the satisfaction of user to give fresh fresh product to user in time, is improved, and increases what user signed for
Probability reduces logistics loss.On the other hand, shape of the fresh product in delivery process can be monitored in real time by storing image
State, to perceive the freshness of fresh product.On the other hand, fresh initial pictures are converted into initial gray value matrix, it will
Storage image is converted into storage gray scale value matrix, and gray scale value matrix is easy to calculate and compare, and increases calculating speed, to improve effect
Rate.
With reference to shown in Fig. 3, when this method is used, photographic device, temperature sensor, nothing can be installed in distribution box 5
Line transmission device and iswas.Photographic device can in captured in real-time distribution box 5 fresh product image;Temperature
Sensor can measure the temperature in distribution box 5 in real time;Microcontroller may be used in computing device, can also use microprocessor;
Radio transmission apparatus can carry out wireless communication, and can also be carried out by wireless network by bluetooth.Dispatching person equipped with
Terminal device 6, the terminal device 6 can be mobile phone, be equipped with fresh dispatching APP in the terminal device 6, the fresh dispatching APP
Cross-platform support Android and iOS system, the inquiry which can receive user 7 can also be counted simply
It calculates and compares, and given a warning according to the threshold value of setting and adjust the distribution strategy of oneself to remind dispatching person according to warning, together
When transfer data to server 4 carry out off-line calculation, receive server 4 return as a result, adjustment distribution strategy.
In the following, will be carried out to the fresh dispatching reminding method for monitoring freshness in this example embodiment further
Explanation.
In step sl, fresh initial pictures are received, the initial pictures are subjected to gray processing processing, obtain initial ash
Angle value matrix.
In this exemplary embodiment, initial pictures can be to have passed through photographic device when fresh product has just been put into distribution box 5
The image of shooting.After receiving initial pictures, it can first determine whether to be transmitted through whether the initial pictures come are effective pictures, not be to lose
It abandons;Then initial pictures can be narrowed down to fixed dimension;It handles initial pictures progress gray processing to obtain initial gray value square
Battle array carries out gray processing processing to initial pictures, initial pictures is thus converted into two-dimensional matrix array.To initial pictures into
Following several method may be used in the processing of row gray processing, for example, component method, maximum value process, mean value method and weighted mean method.
In step s 2, the fresh storage image is received in preset time, the storage image is subjected to gray processing
Processing obtains storage gray scale value matrix.
In this exemplary embodiment, preset time can be at regular intervals that the certain time can be 2 hours or 3
Hour;In the other embodiment of the disclosure, the preset time can also be in daily 8 a.m., at 4 points in afternoon and evening
The different time points such as upper 11 points, particular determination is not done herein.Storage image can be to pass through photographic device at above-mentioned time point
The image of shooting.After receiving storage image, it can first determine whether to be transmitted through whether the storage image come is effective picture, not be to lose
It abandons;It then can be storage image down to fixed dimension;Storage image is carried out gray processing to handle to obtain storage gray value square
Battle array carries out gray processing processing to storage image, storage image is thus converted into two-dimensional matrix array.To storage image into
Following several method may be used in the processing of row gray processing, for example, component method, maximum value process, mean value method and weighted mean method.
In step s3, the storage gray scale value matrix and the initial gray value matrix are compared, the storage
When gray scale value matrix and the gap of the initial gray value matrix are more than given threshold, prompted to adjust distribution strategy.
In this exemplary embodiment, by the initial gray value matrix according to the setting regular partition at multiple sub- squares
Battle array, and the initial gray average value of each submatrix is calculated;By the storage gray scale value matrix according to setting regular partition
At multiple submatrixs, and the storage average gray of each submatrix is calculated;By the storage gray scale of each submatrix
Average value is compared with the initial gray average value, the difference of the storage average gray and the initial gray average value
When away from more than given threshold, prompted to adjust distribution strategy.Since initial pictures and storage image are imaged by one
Device absorbs, and the position of photographic device and fresh product does not all change, so being absorbed by photographic device first
Beginning image is as the size of storage image, and the position for the fresh product that each pixel is recorded in image is substantially not yet
It can change, so, by initial gray value matrix and storage gray scale value matrix according to institute's shape after same setting regular partition
At submatrix size it is also identical, the position for the fresh product that each pixel is recorded in submatrix will not also occur substantially
Whether variation, can fresh compared with the fresh product of Accurate Determining by intensity contrast.
Setting rule can be to be divided according to lateral n rows and vertical m row, and every since the upper left corner of matrix
A submatrix is adjacent and does not overlap each other, and n and m as needed can be set as random natural number;Certainly, those skilled in the art
Member, can also be therefrom it is understood that setting rule can also be for since the lower left corner of matrix or the lower right corner
Between start;Each submatrix can laterally or vertically be overlapped several row or column.Spy is not done herein for these specific settings
It is different to limit, it is set all in accordance with specific needs.
Given threshold can be set as between the storage average gray of each submatrix and initial gray average value
Difference, the difference that can also be set as between the sum of the sum of storage average gray of several submatrixs and initial gray average value
Value;It can be set according to the size of matrix and the characteristic of fresh product.
Further, the fresh dispatching reminding method can also include:It receives the fresh initial pictures and deposits
The environment temperature of its local environment is received while putting image, and the first freshness is calculated, and by first freshness
And the environment temperature is transferred to a server 4;The server 4 is according to first freshness and the environment temperature
Fissipation factor and environmental variance parameter is calculated, and the fissipation factor and environmental variance parameter are returned;According to the ring
The second freshness is calculated in border temperature, the fissipation factor and environmental variance parameter, according to second freshness to adjust
The whole distribution strategy.
In the present embodiment, which is that the calculating process recycled is done using linear regression analysis, receives photographic device and takes the photograph
The ring of the fresh local environment of temperature sensor measurement is received while the fresh initial pictures and storage image that take
Border temperature, and the first freshness is calculated, the first freshness y of first time1Can be a setting value, such as can should
The first freshness y of first time1It is set as 100.By the first freshness y of the first time1And environment temperature is transferred to server
4, server 4 is calculate by the following formula the fissipation factor and environmental variance parameter,
Wherein,Fissipation factor, i.e., with the variation of temperature, the freshness of fresh product withRatio accelerate loss;
It is environmental variance parameter, xiIt is the environment temperature that ith receives, yiIt is the first freshness that ith is calculated,It is environment
The average value of temperature,It is the average value of the first freshness.
Then, server 4 returns fissipation factor and environmental variance parameter, passes throughCalculate described second
Freshness, wherein y2iIt is the second freshness that ith is calculated.According to the second freshness to adjust distribution strategy, citing and
Speech, the second freshness indicate that fresh freshness is decreased very much, and dispatching person needs to dispense immediately;Second freshness indicates life
Fresh freshness does not reduce, dispatching person can select it is more urgent dispense, and drop the freshness and preferably slightly push away
Dispatching late.
In addition, in subsequent loop calculation, the second freshness that this can be calculated is counted as next time
The comparison of the first freshness calculated, the fresh storage image and initial pictures that can also be absorbed by photographic device obtains first
Freshness.Particular determination is not done herein.
Further, the fresh dispatching reminding method can also include:The inquiry request for receiving a user 7, according to institute
It states inquiry request and second freshness and distribution information is sent to the user 7.In this exemplary embodiment, user 7
Mobile phone on fresh inquiry APP or user 7 can be installed can be looked by the query function carried in shopping at network
It askes, dispatching person receives and the second freshness and distribution information are sent to user 7 after the inquiry request, because of the second freshness
The freshness of the more acurrate fresh product of description, so the information that the second freshness of transmission makes user 7 obtain is more accurate, Er Qieneng
Enough increase the buying experience of user 7.
In addition, although describing each step of method in the disclosure with particular order in the accompanying drawings, this does not really want
These steps must be executed according to the particular order by asking or implying, or the step having to carry out shown in whole could be realized
Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/
Or a step is decomposed into execution of multiple steps etc..
Further, this example embodiment is additionally provided corresponding to the above-mentioned fresh dispatching prompt side for monitoring freshness
The fresh dispatching suggestion device for monitoring freshness of method.With reference to shown in Fig. 2, which may include initial
Gray scale value matrix acquiring unit 1, storage gray scale value matrix acquiring unit 2 and prompt unit 3.Wherein:
Initial gray value matrix acquiring unit 1, can be used for receiving fresh initial pictures, and the initial pictures are carried out
Gray processing processing, obtains initial gray value matrix.
Gray scale value matrix acquiring unit 2 is stored, can be used for receiving the fresh storage image in preset time, by institute
It states storage image and carries out gray processing processing, obtain storage gray scale value matrix.
Prompt unit 3 can be used for comparing the storage gray scale value matrix and the initial gray value matrix, institute
When stating the gap of storage gray scale value matrix and the initial gray value matrix more than given threshold, prompted to adjust dispatching plan
Slightly.
In this exemplary embodiment, the fresh dispatching suggestion device can also include:
First freshness computing unit connects while can be used for receiving the fresh initial pictures and storage image
The environment temperature of its local environment is received, and the first freshness is calculated, and by first freshness and the environment temperature
Degree is transferred to a server 4;Fissipation factor and environmental variance parameter calculation unit can be used for through 4 basis of the server
First freshness and the environment temperature are calculated fissipation factor and environmental variance parameter, and by the fissipation factor
It is returned with environmental variance parameter;Second freshness computing unit, can be used for according to the environment temperature, the fissipation factor with
And the second freshness is calculated in environmental variance parameter, according to second freshness to adjust the distribution strategy.
In this exemplary embodiment, it is calculate by the following formula the fissipation factor and environmental variance parameter,
Wherein,It is fissipation factor,It is environmental variance parameter, xiIt is the environment temperature that ith receives, yiIt is ith meter
The first obtained freshness,It is the average value of environment temperature,It is the average value of the first freshness.
In this exemplary embodiment, pass throughCalculate second freshness, wherein y2iIth calculates
The second obtained freshness.
In this exemplary embodiment, the fresh dispatching suggestion device can also include:Second freshness and with delivering letters
Cease transmission unit, can be used for receiving the inquiry request of a user 7, according to the inquiry request by second freshness and
Distribution information is sent to the user 7.
In this exemplary embodiment, the storage gray scale value matrix and the initial gray value matrix are compared, institute
When stating the gap of storage gray scale value matrix and the initial gray value matrix more than given threshold, prompted to adjust dispatching plan
Slightly, may include:
By the storage gray scale value matrix according to setting regular partition at multiple submatrixs, and each submatrix is calculated
Storage average gray;
By the initial gray value matrix according to the setting regular partition at multiple submatrixs, and every height is calculated
The initial gray average value of matrix;
The storage average gray of each submatrix is compared with the initial gray average value, the storage
When the gap of average gray and the initial gray average value is more than given threshold, prompted to adjust distribution strategy.
The detail of each module is corresponding virtual in the above-mentioned fresh dispatching suggestion device for monitoring freshness
It has carried out wanting to describe in detail in object motion control method, therefore details are not described herein again.
It should be noted that although being referred to several modules or list for acting the equipment executed in above-detailed
Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more
The feature and function of module either unit can embody in a module or unit.Conversely, an above-described mould
Either the feature and function of unit can be further divided into and embodied by multiple modules or unit block.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be expressed in the form of software products, the software product can be stored in one it is non-volatile
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment
Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by appended
Claim is pointed out.