CN110287751A - A kind of quick decoding system and method based on high-pass platform - Google Patents
A kind of quick decoding system and method based on high-pass platform Download PDFInfo
- Publication number
- CN110287751A CN110287751A CN201910460601.3A CN201910460601A CN110287751A CN 110287751 A CN110287751 A CN 110287751A CN 201910460601 A CN201910460601 A CN 201910460601A CN 110287751 A CN110287751 A CN 110287751A
- Authority
- CN
- China
- Prior art keywords
- decoding
- camera
- library
- bar code
- encapsulation
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000005538 encapsulation Methods 0.000 claims abstract description 33
- 230000008901 benefit Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/146—Methods for optical code recognition the method including quality enhancement steps
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses a kind of quick decoding system and method based on high-pass platform, belongs to bar code picture decoding technique field.Decoding system, including camera, high pass Camera frame, encapsulation library, decoding library;Library is decoded to the bar code pictorial information of input, is decoded, returns to decoding failure information or the correct bar code of output to application program.Method includes: that step 1 enters in the application program for needing barcode data, opens camera by encapsulation library;Step 2 opens data channel by encapsulation library and has configured data flow, opens preview picture;Step 3 passes to decoding library by one bar code picture of encapsulation library capture and is decoded;Step 4 decoding is unsuccessful, repeats step 3, and successfully decoded transmits decoded information to application program;Step 5 decoding is completed, and camera is closed.Present invention saves decoding times, meet the speed and stability requirement of industry-level application.
Description
Technical field
The present invention relates to a kind of quick decoding system and method based on high-pass platform belongs to bar code picture decoding technique neck
Domain.
Background technique
The major applications of mobile phone obtain bar code picture by included camera and realize decoding function at present, speed and steady
It is qualitative to be able to satisfy the daily payment in part and life requirement, and for the speed and stability requirement of industry-level application, also reach substantially
Less than.Common application can pass through a series of calling processes in application layer open Camera object, spend more expense part-time.Every acquisition
One bar code picture can all restart data channel, obtain bar code picture, spend more expense part-time.
Summary of the invention
The purpose of the present invention is to provide a kind of quick decoding system and method based on high-pass platform, quickly opens phase
Machine, and get bar code picture, especially bar code picture can not successfully decoded, how next bar code of quick obtaining
The system and method for picture.
Specifically, the quick decoding system based on high-pass platform, including camera, high pass Camera frame, the decoding system
System further includes encapsulation library, decoding library;
The encapsulation library provides fast for providing the HAL layer Camera object interface for directly acquiring high pass Camera frame
Speed obtains the interface of bar code picture,
The decoding library is decoded the bar code pictorial information of input, to application program return decoding failure information or
Export correct bar code.
Further, the camera is digital camera or customization camera model.
Further, the high pass Camera frame is MSM8909 Camera software architecture.
Further, the decoding library is specifically used for: application program is opened camera by the interface that encapsulation library provides and is obtained
QTI CameraHardware object opens preview picture, obtains bar code image information and gives decoding library, will decoding after the completion of decoding
Failure information or correct bar code are supplied to application program.
Further, the libmmcamera_ that the encapsulation library is used to provide by high pass Camera frame
Interface.so library function obtains mm_camera_vtbl_t object, passes through mm_camera_vtbl_t object control camera
Channel and data flow.
Further, the bar code picture includes one-dimension code picture and two-dimension code image.
On the other hand, the present invention also provides a kind of fast decoding method based on high-pass platform,
It the described method comprises the following steps:
Step 1 enters in the application program for needing barcode data, opens camera by encapsulation library;
Step 2 opens data channel by encapsulation library and has configured data flow, opens preview picture;
Step 3 passes to decoding library by one bar code picture of encapsulation library capture and is decoded;
Step 4 decoding is unsuccessful, repeats step 3, and successfully decoded transmits decoded information to application program;
Step 5 decoding is completed, and camera is closed.
Further, the interface opening camera that application program is provided by encapsulation library in the method obtains
QTICameraHardware object opens preview picture, obtains bar code image information and gives decoding library, will decoding after the completion of decoding
Failure information or correct bar code are supplied to application program.
Further, library is encapsulated in the method passes through the libmmcamera_ that high pass Camera frame provides
Interface.so library function obtains mm_camera_vtbl_t object, passes through mm_camera_vtbl_t object control camera
Channel and data flow.
The beneficial effects of the present invention are: the present invention designs a kind of quick decoding system and method based on high-pass platform,
Compared with prior art, it has the advantage that
Encapsulation library obtains Camera object directly by means of libmmcamera_interface.so, has saved opening phase
The time of machine.During obtaining bar code picture, control is restored by the Camera objects on data stream pause got and is not related to
Data channel is closed, the time of a large amount of acquisition bar code pictures has been saved.Present invention saves decoding times, meet industry-level application
Speed and stability requirement.
Detailed description of the invention
Fig. 1 is the overall framework figure of decoding system of the present invention;
Fig. 2 is the flow chart of coding/decoding method of the present invention;
Fig. 3 is the working principle diagram in encapsulation library and decoding library under MSM8909 Camera software architecture.
Specific embodiment
Description of specific embodiments of the present invention with reference to the accompanying drawing:
Embodiment 1
As shown in Figure 1, system is based on high-pass platform the present embodiment provides the quick decoding system based on high-pass platform, by
Camera, high pass Camera frame provide the encapsulation library for quickly opening camera and quick obtaining bar code picture interface, decoding library, need
Obtain the application program composition of decoded information.Emphasis of the present invention illustrates how quickly to open camera, and gets bar code figure
The bar code picture of piece, especially one can not successfully decoded, how the method for next bar code picture of quick obtaining.
Each functions of modules explanation:
1. camera: general camera, or customization camera model.
2. high pass Camera frame: there are part variations for each platform, are based on MSM8909 herein.
3. encapsulation library: providing the HAL layer Camera object interface for directly acquiring high pass Camera frame, provide quick obtaining
The interface of bar code picture.
4. decoding library: input needs decoded bar code pictorial information, is decoded, and returns to decoding failure or output is correct
Bar code.
5. application program: obtaining bar code and carry out subsequent processing.
Embodiment 2
The present embodiment provides the quick decoding system, methods based on high-pass platform.
As shown in Fig. 2, method flow are as follows:
1) enter in the application for needing barcode data, camera is opened by encapsulation library.
2) data channel is opened by encapsulation library and has configured data flow, open preview.
3) decoding library is passed to by one bar code picture of encapsulation library capture to be decoded.
4) decoding is unsuccessful, repeats step 3), and successfully decoded then transmits decoded information to application program.
5) decoding is completed to close camera.
Quickly open the encapsulation library of camera and quick obtaining bar code picture interface:
Constitute: MSM8909 Android Camera software is plus encapsulation library overall architecture, as shown in Figure 3:
1. being MSM8909 Camera software architecture in Fig. 3.Upper right side part is to provide quickly to open camera and quickly obtain
Take encapsulation library and the application interaction block diagram of bar code picture interface.
Shown in primary 3 upper left side of opening phase chance calling figure 2.Android: application program is called by the end java Camera
JNI interface calls Camera service service by Binder IPC, then passes through function call Google HAL
Interface recalls the Camera object that QTI Camerahardware obtains high pass HAL layers.
3. after using customized encapsulation library as shown in the upper right side Fig. 3: the interface that application program passes through the offer of encapsulation library
It opens camera and obtains QTI CameraHardware object, open preview, obtain bar code image information and give decoding library, decoding is completed
After be supplied to application program.
4. encapsulating the realization principle in library: the library libmmcamera_interface.so provided by high pass Camera frame
Function obtains mm_camera_vtbl_t object (the camera object for representing HAL layers), passes through the logical of object control camera
Road and data flow.
Common decoding process are as follows: application could generate one by JNI, Binder IPC and two systems calling
HAL layers of Camera object;Under normal preview mode, one bar code picture of every acquisition is shut off channel, data flow is closed, under acquisition
Channel, turn-on data stream are reopened when one bar code picture.
In embodiments herein: encapsulation library obtains Camera directly by means of libmmcamera_interface.so
Object has saved the time for opening camera.It is temporary by the Camera objects on data stream got during obtaining bar code picture
Stop restoring control and do not close data channel, has saved the time of a large amount of acquisition bar code pictures.
Due to above-mentioned advantage, the technical solution of the application has saved the time of a large amount of acquisition bar code pictures, to realize
Quickly decoding.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (9)
1. a kind of quick decoding system based on high-pass platform, including camera, high pass Camera frame, which is characterized in that described
Decoding system further includes encapsulation library, decoding library;
The encapsulation library provides and quickly obtains for providing the HAL layer Camera object interface for directly acquiring high pass Camera frame
Take the interface of bar code picture;
The decoding library is decoded the bar code pictorial information of input, returns to decoding failure information or output to application program
Correct bar code.
2. the quick decoding system based on high-pass platform as described in claim 1, which is characterized in that the camera is digital phase
Machine or customization camera model.
3. the quick decoding system based on high-pass platform as described in claim 1, which is characterized in that the high pass Camera frame
Frame is MSM8909 Camera software architecture.
4. the quick decoding system based on high-pass platform as described in claim 1, which is characterized in that specifically use in the decoding library
In: application program opens camera by the interface that encapsulation library provides and obtains QTI CameraHardware object, and it is pre- to open picture
It lookes at, obtains bar code image information and give decoding library, decoding failure information or correct bar code are supplied to using journey after the completion of decoding
Sequence.
5. the quick decoding system based on high-pass platform as claimed in claim 4, which is characterized in that the encapsulation library is for leading to
The libmmcamera_interface.so library function for crossing the offer of high pass Camera frame obtains mm_camera_vtbl_t object,
Channel and data flow by mm_camera_vtbl_t object control camera.
6. the quick decoding system based on high-pass platform as described in claim 1, which is characterized in that the bar code picture includes
One-dimension code picture and two-dimension code image.
7. a kind of fast decoding method based on high-pass platform, which is characterized in that the described method comprises the following steps:
Step 1 enters in the application program for needing barcode data, opens camera by encapsulation library;
Step 2 opens data channel by encapsulation library and has configured data flow, opens preview picture;
Step 3 passes to decoding library by one bar code picture of encapsulation library capture and is decoded;
Step 4 decoding is unsuccessful, repeats step 3, and successfully decoded transmits decoded information to application program;
Step 5 decoding is completed, and camera is closed.
8. as claimed in claim 7 based on the fast decoding method of high-pass platform, which is characterized in that apply journey in the method
Sequence opens camera by the interface that encapsulation library provides and obtains QTICameraHardware object, opens preview picture, obtains bar code
Image information gives decoding library, and decoding failure information or correct bar code are supplied to application program after the completion of decoding.
9. as claimed in claim 8 based on the fast decoding method of high-pass platform, which is characterized in that encapsulate library in the method
Mm_camera_vtbl_t pairs is obtained by the libmmcamera_interface.so library function that high pass Camera frame provides
As channel and data flow by mm_camera_vtbl_t object control camera.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910460601.3A CN110287751A (en) | 2019-05-30 | 2019-05-30 | A kind of quick decoding system and method based on high-pass platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910460601.3A CN110287751A (en) | 2019-05-30 | 2019-05-30 | A kind of quick decoding system and method based on high-pass platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110287751A true CN110287751A (en) | 2019-09-27 |
Family
ID=68002896
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910460601.3A Pending CN110287751A (en) | 2019-05-30 | 2019-05-30 | A kind of quick decoding system and method based on high-pass platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110287751A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112597083A (en) * | 2020-12-21 | 2021-04-02 | 上海商米科技集团股份有限公司 | Camera code scanning system and method based on Android device |
CN112950150A (en) * | 2021-02-04 | 2021-06-11 | 上海中通吉网络技术有限公司 | Intelligent scanning device and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104133711A (en) * | 2014-08-07 | 2014-11-05 | 深圳市元征科技股份有限公司 | Camera safe switching method based on Android system |
CN105338249A (en) * | 2015-11-24 | 2016-02-17 | 努比亚技术有限公司 | Independent camera system-based shooting method and mobile terminal |
CN106161991A (en) * | 2016-07-29 | 2016-11-23 | 青岛海信移动通信技术股份有限公司 | A kind of camera video processing method and terminal |
US20170039033A1 (en) * | 2012-06-29 | 2017-02-09 | Intel Corporation | Double rounded combined floating-point multiply and add |
CN107295243A (en) * | 2016-04-05 | 2017-10-24 | 希姆通信息技术(上海)有限公司 | The method and mobile terminal of mobile terminal collection image |
CN108268810A (en) * | 2016-12-30 | 2018-07-10 | 希姆通信息技术(上海)有限公司 | Mobile terminal and its bar code scanning method |
-
2019
- 2019-05-30 CN CN201910460601.3A patent/CN110287751A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170039033A1 (en) * | 2012-06-29 | 2017-02-09 | Intel Corporation | Double rounded combined floating-point multiply and add |
CN104133711A (en) * | 2014-08-07 | 2014-11-05 | 深圳市元征科技股份有限公司 | Camera safe switching method based on Android system |
CN105338249A (en) * | 2015-11-24 | 2016-02-17 | 努比亚技术有限公司 | Independent camera system-based shooting method and mobile terminal |
CN107295243A (en) * | 2016-04-05 | 2017-10-24 | 希姆通信息技术(上海)有限公司 | The method and mobile terminal of mobile terminal collection image |
CN106161991A (en) * | 2016-07-29 | 2016-11-23 | 青岛海信移动通信技术股份有限公司 | A kind of camera video processing method and terminal |
CN108268810A (en) * | 2016-12-30 | 2018-07-10 | 希姆通信息技术(上海)有限公司 | Mobile terminal and its bar code scanning method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112597083A (en) * | 2020-12-21 | 2021-04-02 | 上海商米科技集团股份有限公司 | Camera code scanning system and method based on Android device |
CN112950150A (en) * | 2021-02-04 | 2021-06-11 | 上海中通吉网络技术有限公司 | Intelligent scanning device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110086967B (en) | Image processing method, image processor, photographing device and electronic equipment | |
JP4098250B2 (en) | Multimedia advertisement service provision in a mobile communication network, multimedia content control apparatus and multimedia content control method | |
CN110287751A (en) | A kind of quick decoding system and method based on high-pass platform | |
CN110297632A (en) | Code generating method and device | |
CN103247067A (en) | Remote rendering method and cloud rendering platform | |
CN104484181B (en) | The method, apparatus of Android camera and mobile equipment are controlled under glibc environment | |
CN110022297A (en) | A kind of HD video live broadcast system | |
CN106161991A (en) | A kind of camera video processing method and terminal | |
CN113473126B (en) | Video stream processing method and device, electronic equipment and computer readable medium | |
CN109189400A (en) | Program dissemination method and device, storage medium, processor | |
CN105867944A (en) | Web front-end terminal operating layer and implementing method thereof | |
CN110557417B (en) | Image processing method and device and storage medium | |
CN111225153A (en) | Image data processing method, image data processing device and mobile terminal | |
CN107229516B (en) | Data processing method and device | |
CN110505069A (en) | It is a kind of to generate the method and device for customizing ticket | |
CN109523456A (en) | Image processing method and device, electronic equipment, computer readable storage medium | |
CN107678863A (en) | The page assembly means of communication and device | |
CN107295243A (en) | The method and mobile terminal of mobile terminal collection image | |
CN107135112A (en) | A kind of privately owned cloud service visual control system of digital home and method | |
CN106020729A (en) | Clearing method and device for multi-media data of mobile terminal | |
CN113895730B (en) | Cigarette case transparent paper detection method, device and system and storage medium | |
CN109933335A (en) | The plug-in method of additions and deletions functional characteristic under a kind of mixed developing mode | |
CN114598834A (en) | Video processing method and device, electronic equipment and readable storage medium | |
CN112953752B (en) | Universal control method and system based on single equipment network element | |
CN111353320B (en) | Code scanning identification method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190927 |