Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of quickly registration barrel cigarette 32The method of position coding, realizes high efficiency, the low cost of 32 codings, registers typing whenever and wherever possible.
The present invention provides a kind of method of quickly registration 32 codings of barrel cigarette, the described method comprises the following steps:
Step 1: coding photo being acquired by mobile terminal, is uploaded to server;
Step 2: coding photo being identified, and recognition result is stored in database profession;
Step 3: mobile terminal obtains recognition result, and shows;
Step 4: recognition result being verified by the end PC, and is modified to error message.
Further, steps are as follows for the coding photo array:
Step 2.1: region detection being carried out to coding photo, determines the picture region comprising coding;
Step 2.2: character cutting, character recognition and character splicing being carried out to picture region, obtain recognition result;
Step 2.3: it tests to recognition result, when the picture region comprising coding has incompleteness, the phase of recognition resultThe automatic cover in position is answered, and carries out semantic verification and corrects.
Further, the step of end PC modifies to error message is as follows:
The end step 4.1:PC sends recognition result inquiry request to server, and server receives the end PC inquiry request, according toQuerying condition reading database, and recognition result is sent to the end PC, it is shown;
Coding data are carried out branch by the end step 4.2:PC, piecemeal display is handled, and to obvious wrong, missing information intoRow modification sends modification request to server;
Step 4.3: server receives modification request, modifies to information in database, and return to processing result;
The end step 4.4:PC receives the modification of server as a result, if still wrong, continues modification correction, if errorless,The end PC exports recognition result to local file.
Further, the branch, piecemeal display processing are the year, month, day that the top 16 of recognition result is divided into 5Make the cigarette part code of code and 11, downlink 16 ground, area's custom code and the 12 licensing codes for being divided into 4 by oneself.
As described above, the method that one kind of the invention quickly registers 32 codings of barrel cigarette, has the advantages thatThe present invention takes pictures knowledge otherwise to 32 codings of cigarette using mobile terminal, can (cable network or wireless network under normal circumstancesNetwork), Rapid input is carried out to 32 codings of cigarette, high efficiency, low cost is realized, realizes whenever and wherever possible and the coding of cigarette is stepped onIt is recorded into work.
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specificationOther advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realitiesThe mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing fromVarious modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, following embodiment and implementationFeature in example can be combined with each other.
It should be noted that illustrating the basic structure that only the invention is illustrated in a schematic way provided in following embodimentThink, only shown in schema then with related component in the present invention rather than component count, shape and size when according to actual implementationDraw, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenelIt is likely more complexity.
As shown in Figure 1, the present invention provides a kind of method of quickly registration 32 codings of barrel cigarette, the method includes withLower step:
Step 1: coding photo being acquired by mobile terminal, is uploaded to server;
It is specific as follows:
Step 1.1: server being opened, mobile terminal and the end PC is waited to initiate request;
Step 1.2: mobile terminal being opened, server is connected, obtains user information;
Step 1.3: mobile terminal acquires coding photo, is uploaded to server and initiates identification request;
Step 2: coding photo being identified, and recognition result is stored in database profession;
It is specific as follows:
Step 2.1: region detection being carried out to coding photo, determines the picture region comprising coding;
Step 2.2: character cutting, character recognition and character splicing being carried out to picture region, obtain recognition result;
Step 2.3: it tests to recognition result, when the picture region comprising coding has incompleteness, the phase of recognition resultThe automatic cover in position is answered, and carries out semantic verification and corrects, and recognition result is stored in database profession.
Step 3: mobile terminal obtains recognition result, and shows;
Step 4: recognition result being verified by the end PC, and is modified to error message.
It is specific as follows:
Step 4.1: the end PC will be opened, and connect server, and obtain user information, the end PC sends recognition result to serverInquiry request, server receive the end PC inquiry request, are sent to PC according to querying condition reading database, and by recognition resultEnd, is shown;
Coding data are carried out branch by the end step 4.2:PC, piecemeal display is handled, and to obvious wrong, missing information intoRow modification sends modification request to server;
Step 4.3: server receives modification request, modifies to information in database, and return to processing result;
The end step 4.4:PC receives the modification of server as a result, if still wrong, continues modification correction, if errorless,The end PC exports recognition result to local file.
As shown in Fig. 2, the present invention provides a kind of system corresponding with the method for 32 codings of quick registration barrel cigarette, instituteThe system of stating includes server, mobile terminal and the end PC, and the server is respectively with mobile terminal, the end PC by cable network or wirelesslyNetwork connection;
The mobile terminal is used for coding photo acquisition, and is uploaded to server;
The server is used to carry out the coding photo of upload detection and localization and 32 coding identifications;And it is responsible for codingPhoto, recognition result and the storage of coding information;
The end PC is for being modified recognition result, verifying and exporting.
To sum up, the mobile terminal corresponding operation step can realize that concrete operations are as follows by APP:
A. the APP application icon on the desktop of mobile terminal, starting application are clicked;
B. login page is carried out, username and password is inputted,<login>button is clicked, realizes that user logs in;
C. enter the coding photo acquisition page, carry out coding photo acquisition;
D. it clicks and<submits identification>button, coding photo is committed to server and is identified, wait recognition result, enterStep g;
E.<cancellation>button is clicked, current shooting photo, return step c are cancelled;
F. it clicks<registration>, front smoke box number is worked as in registration, and registration is completed, return step c;
G. coding identification is completed, the recognition result of the current coding of interface display;
The end the PC corresponding operation step can realize that concrete operations are as follows by webpage:
H. system webpage is accessed at the end PC, inputs username and password identical with mobile terminal and enters system;
I. enter the coding verifying page, this page includes the functions such as coding inquiry, guarantee, newly-increased, export, deletion;
J. by the date, case time, recognition result (including whole, complete, imperfect three kinds of classification), result phase (includingWhole, unmodified, modified three kinds of classification) carry out information inquiry;
K. coding recognition result is verified;
If coding result is incorrect, coding result is modified or supplemented, and is saved, when coding baseline results quiltModification, state becomes having modified after preservation, and inquiry is facilitated to distinguish;
If coding is not present, i.e., coding information can be added manually without coding in the unidentified coding out of coding picture or pictureAnd it saves;
To useless coding information, delete operation can be carried out;
L., the corresponding cigarette trade mark of 32 codings is set;
When the corresponding brand number of selection cigarette, such as selection Zhongnanhai (3mg specializes in outlet),<choosing>is clicked, system is returnedThe coding verification page is returned to, is shown in corresponding brand name frame by selection brand;
M. verification terminates, and user exports the data information of page presentation.
It clicks<export>and carries out export setting:
Click<preservation>, system save file to default directory (file type is exel);
<saving as>is clicked, specified file saves contents;
<opening>is clicked, system save file opens file to default directory;
<cancellation>is clicked, system cancels export.
In conclusion the present invention realizes high efficiency, the low cost of 32 codings, registers and apply whenever and wherever possible.So thisInvention effectively overcomes various shortcoming in the prior art and has high industrial utilization value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripeThe personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.CauseThis, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such asAt all equivalent modifications or change, should be covered by the claims of the present invention.