CN104182220A - Image acquisition method based on domestic CPU and domestic OS - Google Patents

Image acquisition method based on domestic CPU and domestic OS Download PDF

Info

Publication number
CN104182220A
CN104182220A CN201410394020.1A CN201410394020A CN104182220A CN 104182220 A CN104182220 A CN 104182220A CN 201410394020 A CN201410394020 A CN 201410394020A CN 104182220 A CN104182220 A CN 104182220A
Authority
CN
China
Prior art keywords
interface
layer
image
equipment
image capture
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
Application number
CN201410394020.1A
Other languages
Chinese (zh)
Inventor
朱宪
孙桂刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Software Co Ltd
Original Assignee
Inspur Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN201410394020.1A priority Critical patent/CN104182220A/en
Publication of CN104182220A publication Critical patent/CN104182220A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimiles In General (AREA)

Abstract

The invention discloses an image acquisition method based on a domestic CPU and a domestic OS. The specific realization process of the method is as follows: a domestic CPU and a domestic OS (Operating System) are internally installed in image acquisition equipment, wherein the image acquisition equipment adopts the structure in whole sequentially including a system interface layer, an equipment driver layer, an equipment member layer, an equipment factory layer and a plug-in interface layer; the plug-in interface layer is called by a foreground page JS and equipment parameters are transmitted in; the call request of the foreground page is received by the plug-in interface layer, and a corresponding equipment member example is generated by the equipment factory layer as per the equipment parameters; an image acquisition interface and an image format conversion interface of the corresponding equipment example are called by an image acquisition plug-in, so that image data and an image conversion format are collected; a drive program of the corresponding equipment in the equipment driver layer is called by an image acquisition interface, so that image data is collected. Compared with the prior art, the image acquisition method based on the domestic CPU and the domestic OS, provided by the invention has the advantage that the image acquisition equipment adopting the method is good in universality and expansibility and high in practicability.

Description

A kind of image-pickup method that produces CPU and OS based on the whole nation
Technical field
The present invention relates to acquisition technology field, specifically a kind of practical, image-pickup method of producing CPU and OS based on the whole nation.
Background technology
Along with the development of modern science and technology, areas of information technology development is advanced by leaps and bounds.All trades and professions have been applied the software systems of various functions, comprise government affairs examination & approval, ERP, OA etc., and these application software systems have significantly improved the office efficiency of enterprises and institutions, have improved throughput rate.In application software system, the electronic edition, client's photo or the other types electronic bits of data that often need collection in worksite client to give information.For example, just have similar demand in government affairs approval system, the electronic edition that need to use high-definition shooting instrument, these equipment of scanner to gather papery data is uploaded in real time.
But, in hardware environment based on whole nation product CPU and OS, high-definition shooting instrument, the first-class image capture device of making a video recording use different drivers, for example camera, high-definition shooting instrument have used V4L2 universal camera shooting head driver, upper layer application are provided to the collection that can realize for the unified API calling image; Scanner uses SANE universal scan instrument driver, has used other a set of API to realize scanner image collection.
Therefore, produce in environment the interface difference of different images collecting device in the whole nation.For example, digital camera because there is no corresponding driver, just need to adopt other modes to gather image in domestic operating system.Can cause like this different images collecting device, need again development diagram as capture program, to cause the serious waste of resource.
Produce in environment in the whole nation does not have a kind of general plug-in card program with better extendability can adapt to different images collecting device, the present invention is directed to the problem that above-mentioned prior art exists, and has proposed a kind of whole nation and has produced the general image acquisition method in environment.
Summary of the invention
Technical assignment of the present invention is for above weak point, and a kind of practical, image-pickup method of producing CPU and OS based on the whole nation is provided.  
An image-pickup method that produces CPU and OS based on the whole nation, its specific implementation process is:
The hardware environment of image capture device is set, the built-in domestic CPU of this equipment and domestic operating system, its one-piece construction order is divided into system interface layer, device drive layer, element of installation layer, equipment factory layer and card i/f layer, wherein:
System interface layer, the application program of calling for user providing for operating system provides interface;
Device drive layer, is the interface routine that the calling interface that provides of image capture device driver and image capture device manufacturer provide, and described calling interface, for opertaing device, gathers image;
Element of installation layer: package image acquisition interface program, the image capture interface program of each equipment is considered as a member, independent separately between member, provides unified image capture interface to upper strata;
Equipment factory layer: generate the instance objects of designated equipment member, in the time that call on upper strata, the instance objects that uses application programming interfaces that this equipment factory layer provides to generate relevant device member both can;
Card i/f layer: use image acquisition plug-in unit to provide unified interface to web application;
Front page layout script JS calls image capture interface or the image format conversion interface that card i/f layer provides, and imports device parameter into;
The image acquisition plug-in unit of card i/f layer is received the call request of front page layout, according to the device parameter importing in request, generates corresponding element of installation example by equipment factory layer;
Image acquisition plug-in unit calls image capture interface and the image format conversion interface of relevant device member example, acquisition of image data and converted image form;
Image capture interface invocation facility drives the driver acquisition of image data of relevant device in layer; Image format conversion interface is converted to the view data of collection the form needing, and is stored in this locality.
The software environment of the built-in class layer based on factory mode of described image capture device, the concrete setting up procedure of this software environment is:
Factory class ProductDev is set, is responsible for upper strata to provide unified calling interface to generate each equipment factory class;
DevApp class is set, different this DevApp class pointed subclasses are called to its corresponding class interface;
DevApp subclass is set, corresponding the said equipment components layer, the corresponding image capture device member of each class, each image capture device member class is all inherited the class from DevApp, completes the image capture interface, the picture format translation interface that in DevApp class, define.
When the integrated new image capture device of described element of installation layer, only need to add new member.
Described card i/f layer uses browser plug-in to provide unified JS calling interface to web application, and this JS calling interface completes image acquisition, the conversion of image data format conversion and resolution.
A kind of image-pickup method that produces CPU and OS based on the whole nation of the present invention, has the following advantages:
A kind of image-pickup method use Netscape plug-in applications interface NPAPI plug-in part technology exploitation of producing CPU and OS based on the whole nation of this invention, use this technology to provide JS calling interface to upper strata web application, there is good versatility simultaneously, can well support to use the browser of NPAPI technology; Use the factory mode in Design Mode, well shielded the difference of underlying device, unified interface is upwards provided; And there is good extensibility, integrated new image capture device easily; Design the Software for Design framework that general image gathers, based on this design framework, can well shield the difference of different images collecting device, extensibility, compatible strong; Image acquisition is used the universal driver Interface realization of various kinds of equipment, has good versatility, portability, only needs to recompilate to be just transplanted to other domestic operating system platforms; Practical, applied widely, be easy to promote.
Brief description of the drawings
Accompanying drawing 1 is realized schematic diagram for hardware of the present invention.
Accompanying drawing 2 is realized schematic diagram for software of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
The invention provides a kind of image-pickup method that produces CPU and OS based on the whole nation, the difference of the software architecture shielding bottom layer image collecting device that factory mode, layering and the member of use software design pattern combines, equipment factory layer is responsible for producing the instance objects of relevant device, for image capture device, unified image capture interface, image format conversion interface are designed.Based on this mentality of designing, as shown in accompanying drawing 1, Fig. 2, the specific implementation process of the method is:
The hardware environment of image capture device is set, the built-in domestic CPU of this equipment and domestic operating system, its one-piece construction order is divided into system interface layer, device drive layer, element of installation layer, equipment factory layer and card i/f layer, wherein:
System interface layer, the application program of calling for user providing for operating system provides interface;
Device drive layer is mainly the second development interface that the calling interface that provides of each device driver and equipment vendors provide.Be the interface routine that the calling interface that provides of image capture device driver and image capture device manufacturer provide, described calling interface, for opertaing device, gathers image.
Element of installation layer: for different image capture devices, encapsulate corresponding image capture interface program, the image capture interface program of each equipment is considered as a member, independent separately between member, provide unified image capture interface to upper strata, revising one of them member can not affect other members.If there have new image capture device to need to be integrated, only need to add new member.For example, there is a kind of digital camera to need integrated, only need to add new member for this digital camera.
Equipment factory layer: mainly generate the instance objects of element of installation class, can shield underlying device difference.In the time that call on upper strata, the instance objects that uses application programming interfaces that this equipment factory layer provides to generate relevant device member both can.
Card i/f layer: use image acquisition plug-in unit to provide unified interface to web application, provide unified JS calling interface to Web application system.Mainly the interfaces such as image acquisition, the conversion of image data format conversion and resolution.
Front page layout script JS calls image capture interface or the image format conversion interface that card i/f layer provides, and imports device parameter into;
The image acquisition plug-in unit of card i/f layer is received the call request of front page layout, according to the device parameter importing in request, generates corresponding element of installation example by equipment factory layer;
Image acquisition plug-in unit calls image capture interface and the image format conversion interface of relevant device member example, acquisition of image data and converted image form;
Image capture interface invocation facility drives the driver acquisition of image data of relevant device in layer; Image format conversion interface is converted to the view data of collection the form needing, and is stored in this locality.
Above-mentioned image capture device can be the equipment such as camera, high-definition shooting instrument, scanner, digital camera.
The software environment of the built-in class layer based on factory mode of described image capture device, the concrete setting up procedure of this software environment is:
Factory class ProductDev is set, is responsible for upper strata to provide unified calling interface to generate each equipment factory class;
DevApp class is set, different this DevApp class pointed subclasses are called to its corresponding class interface;
DevApp subclass is set, corresponding the said equipment components layer, the corresponding image capture device member of each class, each image capture device member class is all inherited the class from DevApp, completes the image capture interface, the picture format translation interface that in DevApp class, define.
Factory generates the equipment factory layer of the corresponding software architecture of class, for the concrete element of installation example of generation of the dynamic state of parameters that provides according to upper strata caller.
Described image acquisition plug-in unit is Netscape plug-in applications interface NPAPI plug-in unit.
When the integrated new image capture device of described element of installation layer, only need to add new member.
Described card i/f layer uses browser plug-in to provide unified JS calling interface to web application, and this JS calling interface completes image acquisition, the conversion of image data format conversion and resolution.
Embodiment
Clap instrument as example taking height, clap inner acceptance of the bid kylin, the middle Ke Fangde operating system that " Godson CPU " that produce in the whole nation is installed of instrument at height, image acquisition plug-in unit uses NPAPI (Netscape plug-in applications interface) plug-in unit, according to above-mentioned steps, carry out image acquisition, the member example that wherein equipment factory layer generates is and uses the high height of clapping instrument generation to clap instrument member example, finally generate jpg picture format and be stored in this locality, the method can arrange collection form and the resolution of picture flexibly, has good versatility and extendability.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; any a kind of suitable variation or replacements claims and that any person of an ordinary skill in the technical field does it of producing the image-pickup method of CPU and OS based on the whole nation according to the invention, all should fall into scope of patent protection of the present invention.

Claims (5)

1. an image-pickup method that produces CPU and OS based on the whole nation, is characterized in that its specific implementation process is:
The hardware environment of image capture device is set, the built-in domestic CPU of this equipment and domestic operating system, its one-piece construction order is divided into system interface layer, device drive layer, element of installation layer, equipment factory layer and card i/f layer, wherein:
System interface layer, the application program of calling for user providing for operating system provides interface;
Device drive layer, is the interface routine that the calling interface that provides of image capture device driver and image capture device manufacturer provide, and described calling interface, for opertaing device, gathers image;
Element of installation layer: package image acquisition interface program, the image capture interface program of each equipment is considered as a member, independent separately between member, provides unified image capture interface to upper strata;
Equipment factory layer: generate the instance objects of designated equipment member, in the time that call on upper strata, the instance objects that uses application programming interfaces that this equipment factory layer provides to generate relevant device member both can;
Card i/f layer: use image acquisition plug-in unit to provide unified interface to web application;
Front page layout script JS calls image capture interface or the image format conversion interface that card i/f layer provides, and imports device parameter into;
The image acquisition plug-in unit of card i/f layer is received the call request of front page layout, according to the device parameter importing in request, generates corresponding element of installation example by equipment factory layer;
Image acquisition plug-in unit calls image capture interface and the image format conversion interface of relevant device member example, acquisition of image data and converted image form;
Image capture interface invocation facility drives the driver acquisition of image data of relevant device in layer; Image format conversion interface is converted to the view data of collection the form needing, and is stored in this locality.
2. a kind of image-pickup method that produces CPU and OS based on the whole nation according to claim 1, is characterized in that: the software environment of the built-in class layer based on factory mode of described image capture device, and the concrete setting up procedure of this software environment is:
Factory class ProductDev is set, is responsible for upper strata to provide unified calling interface to generate each equipment factory class;
DevApp class is set, different this DevApp class pointed subclasses are called to its corresponding class interface;
DevApp subclass is set, corresponding the said equipment components layer, the corresponding image capture device member of each class, each image capture device member class is all inherited the class from DevApp, completes the image capture interface, the picture format translation interface that in DevApp class, define.
3. a kind of image-pickup method that produces CPU and OS based on the whole nation according to claim 2, is characterized in that: described image acquisition plug-in unit is Netscape plug-in applications interface NPAPI plug-in unit.
4. according to a kind of image-pickup method that produces CPU and OS based on the whole nation described in claim 2 or 3, it is characterized in that: when the integrated new image capture device of described element of installation layer, only need to add new member.
5. according to a kind of image-pickup method that produces CPU and OS based on the whole nation described in claim 2 or 3, it is characterized in that: described card i/f layer uses browser plug-in to provide unified JS calling interface to web application, this JS calling interface completes image acquisition, the conversion of image data format conversion and resolution.
CN201410394020.1A 2014-08-12 2014-08-12 Image acquisition method based on domestic CPU and domestic OS Pending CN104182220A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410394020.1A CN104182220A (en) 2014-08-12 2014-08-12 Image acquisition method based on domestic CPU and domestic OS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410394020.1A CN104182220A (en) 2014-08-12 2014-08-12 Image acquisition method based on domestic CPU and domestic OS

Publications (1)

Publication Number Publication Date
CN104182220A true CN104182220A (en) 2014-12-03

Family

ID=51963299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410394020.1A Pending CN104182220A (en) 2014-08-12 2014-08-12 Image acquisition method based on domestic CPU and domestic OS

Country Status (1)

Country Link
CN (1) CN104182220A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721353A (en) * 2016-01-18 2016-06-29 浪潮集团有限公司 High-performance domestic Ethernet switch based on data center
CN106874408A (en) * 2017-01-19 2017-06-20 杭州云灵科技有限公司 A kind of html information input methods for supporting various browser kernels
CN111340683A (en) * 2020-02-08 2020-06-26 朱明华 Image data processing method, image data processing device, image processing system and server
CN112653836A (en) * 2020-12-14 2021-04-13 珠海格力智能装备有限公司 Image acquisition method and device, storage medium and processor
CN112965766A (en) * 2021-03-03 2021-06-15 珠海格力智能装备有限公司 Data processing system, method, upper computer, storage medium and processor

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089814A (en) * 2007-07-12 2007-12-19 浙江大学 Software applied frame for data analysing instrument equipment and device and method for developing embedded system using the frame
CN101477463A (en) * 2009-01-22 2009-07-08 北京赛科世纪数码科技有限公司 Software platform and software development platform used for digital television set-top box
CN101510236A (en) * 2009-03-11 2009-08-19 上海坦瑞信息技术有限公司 Plug and play system based on field operating platform
US20110185340A1 (en) * 2010-01-27 2011-07-28 Oracle International Corporation Software modeling framework
CN102222005A (en) * 2011-07-12 2011-10-19 铜陵玉成软件科技有限责任公司 Service model-oriented software running platform and running mode thereof
CN102332123A (en) * 2011-10-24 2012-01-25 北京派得伟业科技发展有限公司 Method for constructing agriculture intelligent system development platform based on domestic basic software
US8533336B1 (en) * 2011-02-04 2013-09-10 Google Inc. Automated web frontend sharding
CN103795814A (en) * 2014-02-13 2014-05-14 浪潮软件股份有限公司 Short message equipment universal communication interface based on fully domestic CPU and OS
CN103870287A (en) * 2006-09-29 2014-06-18 西门子公司 System for generating and operating a software application for medical image generation

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870287A (en) * 2006-09-29 2014-06-18 西门子公司 System for generating and operating a software application for medical image generation
CN101089814A (en) * 2007-07-12 2007-12-19 浙江大学 Software applied frame for data analysing instrument equipment and device and method for developing embedded system using the frame
CN101477463A (en) * 2009-01-22 2009-07-08 北京赛科世纪数码科技有限公司 Software platform and software development platform used for digital television set-top box
CN101510236A (en) * 2009-03-11 2009-08-19 上海坦瑞信息技术有限公司 Plug and play system based on field operating platform
US20110185340A1 (en) * 2010-01-27 2011-07-28 Oracle International Corporation Software modeling framework
US8533336B1 (en) * 2011-02-04 2013-09-10 Google Inc. Automated web frontend sharding
CN102222005A (en) * 2011-07-12 2011-10-19 铜陵玉成软件科技有限责任公司 Service model-oriented software running platform and running mode thereof
CN102332123A (en) * 2011-10-24 2012-01-25 北京派得伟业科技发展有限公司 Method for constructing agriculture intelligent system development platform based on domestic basic software
CN103795814A (en) * 2014-02-13 2014-05-14 浪潮软件股份有限公司 Short message equipment universal communication interface based on fully domestic CPU and OS

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721353A (en) * 2016-01-18 2016-06-29 浪潮集团有限公司 High-performance domestic Ethernet switch based on data center
CN106874408A (en) * 2017-01-19 2017-06-20 杭州云灵科技有限公司 A kind of html information input methods for supporting various browser kernels
CN111340683A (en) * 2020-02-08 2020-06-26 朱明华 Image data processing method, image data processing device, image processing system and server
CN111340683B (en) * 2020-02-08 2020-11-13 朱明华 Image data processing method, image data processing device, image processing system and server
CN112653836A (en) * 2020-12-14 2021-04-13 珠海格力智能装备有限公司 Image acquisition method and device, storage medium and processor
CN112965766A (en) * 2021-03-03 2021-06-15 珠海格力智能装备有限公司 Data processing system, method, upper computer, storage medium and processor

Similar Documents

Publication Publication Date Title
CN104182220A (en) Image acquisition method based on domestic CPU and domestic OS
US11947781B2 (en) Automatically adjusting a layout of a visual element on a to-be-generated interface and quickly generating an interface
CN105827754B (en) A kind of generation method and mobile terminal of high dynamic range images
WO2020228392A1 (en) Sma motor control method in camera device and camera device
CN104093016A (en) Camera module smudginess detection method and system
CN104869320A (en) Electronic device and control method of the same
CN104641633A (en) System and method for combining data from multiple depth cameras
CN106101545A (en) A kind of image processing method and mobile terminal
CN110515821B (en) Event processing method based on buried point, electronic equipment and computer storage medium
CN111060118B (en) Scene map establishing method, device and storage medium
CN101750764B (en) Gamma curve detection method and system of LCD screen
CN104657206A (en) Image data processing method and device
CN104484181A (en) Method, device and mobile device for controlling Android camera under glibc environment
CN105117555A (en) On-line browsing system of nuclear power three-dimensional design model
CN113014804A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN102479034B (en) Method for inputting parameters of video camera by utilizing graphical interaction interface
KR102140865B1 (en) Method and device for producing an electronic signed document
JP2019148940A (en) Learning processing method, server device, and reflection detection system
CN103677317A (en) Mobile terminal and method for achieving cursor control
CN111641860A (en) Curtain wall display control method, control device, computer equipment and storage medium
TWI543626B (en) Mobile device remote image-monitoring system and method thereof
KR101620564B1 (en) Method for Providing Supervisory Control Service Computer-Readable Recording Medium with Program therefore
JP2021166375A (en) Information processing device, image processing device, control method of them, and image processing system
US9807315B1 (en) Lookup table interpolation in a film emulation camera system
CN113554718A (en) Image encoding method, storage medium, and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141203

WD01 Invention patent application deemed withdrawn after publication