CN104951305A - Method for managing camera based on text analysis and management system - Google Patents

Method for managing camera based on text analysis and management system Download PDF

Info

Publication number
CN104951305A
CN104951305A CN201510334835.5A CN201510334835A CN104951305A CN 104951305 A CN104951305 A CN 104951305A CN 201510334835 A CN201510334835 A CN 201510334835A CN 104951305 A CN104951305 A CN 104951305A
Authority
CN
China
Prior art keywords
video camera
model
configuration file
module
read
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
CN201510334835.5A
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.)
Technology (nanjing) Ltd By Share Ltd
Original Assignee
Technology (nanjing) Ltd By Share 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 Technology (nanjing) Ltd By Share Ltd filed Critical Technology (nanjing) Ltd By Share Ltd
Priority to CN201510334835.5A priority Critical patent/CN104951305A/en
Publication of CN104951305A publication Critical patent/CN104951305A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a method for managing a camera based on text analysis. The method comprises the following steps: (1) compiling a configuration file; (2) reading the configuration file; and (3) recognizing and judging configuration file attributes. A management system comprises a model configuration file, an XML processing module, a model attribute reading module, an operation judging module and an interface loading module. According to the method for managing the camera based on text analysis and the management system, a camera model function is described in a mode of the configuration file, the interface display can be adjusted for the configuration file only through the model modification, and a new camera model can be supported without modifying a code and without releasing a version again. The managing method is simple and convenient to operate.

Description

A kind of method administrating system based on text resolution management video camera
Technical field
The present invention relates to multiple cameras administrative skill field, specifically a kind of method administrating system based on text resolution management video camera.
Background technology
In some system, such as supervisory system, television direct broadcast system etc., need to support numerous video camera, in some moment, needs again to select particular camera to carry out specific action.These camera function characteristics interosculate, and also have larger difference, and general video camera indicates different performances with different model, and the type information of video camera by carrying out hard coded to support in code.In order to these models can be supported flexibly, carry out in code hard coded to support numerous model can make program become very complicated difficult to safeguard, and if support that the following new model occurred also must remodify code and released version.A kind of technology of flexible configuration outside program must be used to support these video cameras, simultaneously also when not update routine, also will can support the model newly added.
Summary of the invention
The problem to be solved in the present invention is to provide a kind of method administrating system based on text resolution management video camera, and the method and system use type configure file to support flexibly video camera model, can support without the need to revising code to new model.
A kind of method based on text resolution management video camera of the present invention comprises the following steps:
1) configuration file is write;
2) configuration file is read;
3) configuration file attribute identified and judge.
As the further improvement of technique scheme, described configuration file comprises following content:
To the support characteristic of video camera;
The span of the attribute configuration permission of video camera;
Restriction and the definition restricted mutually between attribute.
Another kind as technique scheme improves, described step 2) read configuration file comprise:
Read default value;
Read video camera protocol type;
Read camera properties and support situation;
Read span;
Reading attributes data list.
Another kind as technique scheme improves, in described step 3) carry out identifying and judge after carry out interface loading, the different qualities obtaining video camera according to different interfaces carries out interface display.
Another kind as technique scheme improves, in described step 1) when writing configuration file, if the characteristic of the video camera of different model is identical, then same configuration file is write to the video camera of this different model.
Management system of the present invention, comprises type configure file, XML processing module, model attribute read module, operation judges module and interface load-on module; Described type configure file comprises compatible model supporting paper and type configure file, XML processing module is for the treatment of XML format, model attribute read module is for reading the every attribute of model, operation judges module is used for processing model otherness when operating, and interface load-on module processes the otherness of model on interface before loading at interface.
Of the present invention based on the method administrating system based on text resolution management video camera, configuration file mode is adopted to describe video camera model function, only revising model configuration file and just can adjust interface display, just can support new video camera model without the need to revising code without the need to released version again.Management method is simple, easy to operate.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of management system of the present invention.
Embodiment
Below in conjunction with accompanying drawing, a kind of method administrating system based on text resolution management video camera that the present invention proposes is described in detail.
Management method of the present invention utilizes a type configure file video camera model to be carried out to the technology supported flexibly, and type configure file uses XML format.XML is one descriptive language flexibly, but for concrete use field, needs to define various XML tag, the structure of design XML.Management method of the present invention is exactly to define XML tag and structure for every characteristic of video camera, according to the restrictive condition etc. between camera properties design data span, characteristic support, mark, thus make to use a set of program code just can support numerous video camera models.Can not revise on the basis of code simultaneously, model is in the future being supported.
Management method of the present invention is specific as follows:
1. about compatible model process:
Because although some video camera model model name is different, but for video camera place system configuration tool characteristic be identical, we call compatible model this model, for preventing re-defining, a type configure file is only had for compatible model, is described in devices.xml.
Under operation catalogue, under devices.xml and type configure file are put in Model catalogue.
In code, selected by each basis, model first checks compatible model list, then the corresponding type configure file of corresponding inquiry is removed, according to type configure file determination camera properties, to show different spans, different fields, different restrictive conditions on interface.
The design of compatibility list and content (devices.xml) example:
Code 1:
Wherein IPC6122-P and IPC6122-D just belongs to compatible model, according to XML, code can judge which model belongs to compatible model, uses same type configure file to process." config=" IPC6122-P " " specify the title of type configure file.
2. configuration file content design
Configuration file design should be convenient to understand, and facilitates routine processes again simultaneously, also will ensure certain versatility and dirigibility.
In configuration file, each node represents a kind of characteristic of video camera, has relation of inclusion between characteristic, also has the mutual restriction relation of span.
The design of 2.1 support characteristics
Whether support uses nodal community " support=" true " ", the node of all configuration files is the characteristic that known video camera is supported the most entirely, if do not supported, nodal community is false.
Such as: in code 2, <ConfigWizard support=" true "/> just represents that this model supports configuration wizard function.
The design of 2.2 value condition allowed
The value allowed in the numerical value of the attribute configuration of video camera comprises can only choose a value among several value, comprises in addition and can input arbitrarily a value within the scope of certain.Now we devise Item node and Min, Max node.
In following code 2, mark the scope that 1 part just represents a kind of selectable value: it illustrates user and can only select in " default setting (Default settings) ", " high-definition quality (High quality) ", " bandwidth level and smooth (Balanced) ";
Mark in code 2 in the AlarmCheckInterval node of 2 and then provide Min, Max, it represents that user can fill in any value when arranging alarm detection interval properties between 1 to 256.
Restriction and the design restricted mutually between 2.3 attributes
Mutex relation: in order to express certain field certain value select after, another one field just can not select certain value, then represent with Mutex, be exactly represent that the mutex relation with certain node, constrained nodes location expression path use absolute path to express more clearly and which node-disjoint in XML expresses
Mutual exclusion Mutex node as marked 3 in following code 2 represents the resolution mutual exclusion of 1080P in that Stream of main bit stream+subcode stream 1+ subcode stream 2 and other id=0.And the physical meaning of this expression, have selected " main bit stream+subcode stream 1+ subcode stream 2 " if having expressed, main bit stream (code stream of id=0) just can not select this option of 1080P.
Scope limits: in order to express after certain field have selected, can cause the restriction of other field span, using Limit to represent.
Mark in following code 24 with the node of Limit represent elected selected mjpeg after, the limits value of Frame node (afterwards Frame purple node) can only select 1-5.And its physical meaning represents when user have selected mjpeg, then frame per second can only select 1-5.
Code 2:
3. the routine processes of configuration file:
The skills such as judgement, quantity circulate flexibly can be used in program design to carry out sweetly disposition according to the content of XML.Main process is all arranged in " the interface loading " and " operation judges " of Fig. 1.
As shown in Figure 1, the management system that management method of the present invention adopts comprises interface, interface operation process, task process, physical layer interface, model processing module, common process module etc.Wherein model processing module is responsible for processing the otherness of model, contains above-described three functives.Fig. 1 illustrates the relation between modules.
Table 1 describes the function responsibility of each submodule in model processing module.
The function responsibility of each submodule in table 1 model processing module
Whole management system, because each configuration file uses XML format, therefore has the submodule of special disposal XML format in public module.
In model processing module, the relation of each submodule as shown in Figure 1, and interface loading submodule and operation judges submodule call model attribute reading submodule and read, and model attribute reading submodule call XML process public module helps processing XML form.
Each configuration file uses XML format, and file representative video camera model, which describes the function detail of this model video camera.Configuration file uses the name of video camera model name, as IPC6112-P.xml represents the type configure file of IPC6112-P.
3.1XML process
The XML initialization of XML module reduction, release process, facilitate the read-write of XML node, attribute.The Component Gallery of inner utilization MSXML.
3.2 model attribute read-writes
Model attribute module for reading and writing carries out specialized business processing further for XML operation, encapsulates, carries out transparence access to video camera attribute, shield the reading process of XML to bottom.This module interface comprises: read default value, read video camera protocol type, read camera properties support situation, read span, reading attributes data list etc.
3.3 operation judges
Operation judges module is dispersed within interface logic process, needs the different qualities obtaining video camera to operate according to concrete service logic.
3.4 interfaces load
Interface load-on module is dispersed within the loading processing logic of interface, and the different qualities obtaining video camera according to different interfaces carries out interface display.
Above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., it all should be encompassed in the middle of right of the present invention.

Claims (6)

1., based on a method for text resolution management video camera, it is characterized in that, comprise the following steps: 1) write configuration file;
2) configuration file is read;
3) configuration file attribute identified and judge.
2. the method based on text resolution management video camera according to claim 1, it is characterized in that, described configuration file comprises following content:
To the support characteristic of video camera;
The span of the attribute configuration permission of video camera;
Restriction and the definition restricted mutually between attribute.
3. according to claim 1 based on text resolution management video camera method, it is characterized in that, described step 2) read configuration file comprise:
Read default value;
Read video camera protocol type;
Read camera properties and support situation;
Read span;
Reading attributes data list.
4. the method based on text resolution management video camera according to claim 1, is characterized in that, after described step 3) carries out identifying and judge, carry out interface loading, the different qualities obtaining video camera according to different interfaces carries out interface display.
5. the method based on text resolution management video camera according to claim 1, it is characterized in that, when described step 1) writes configuration file, if the characteristic of the video camera of different model is identical, then same configuration file is write to the video camera of this different model.
6. the management system that the management method described in any one of claim 1 to 5 adopts, is characterized in that, comprises type configure file, XML processing module, model attribute read module, operation judges module and interface load-on module; Described type configure file comprises compatible model supporting paper and type configure file, XML processing module is for the treatment of XML format, model attribute read module is for reading the every attribute of model, operation judges module is used for processing model otherness when operating, and interface load-on module processes the otherness of model on interface before loading at interface.
CN201510334835.5A 2015-06-16 2015-06-16 Method for managing camera based on text analysis and management system Pending CN104951305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510334835.5A CN104951305A (en) 2015-06-16 2015-06-16 Method for managing camera based on text analysis and management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510334835.5A CN104951305A (en) 2015-06-16 2015-06-16 Method for managing camera based on text analysis and management system

Publications (1)

Publication Number Publication Date
CN104951305A true CN104951305A (en) 2015-09-30

Family

ID=54165976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510334835.5A Pending CN104951305A (en) 2015-06-16 2015-06-16 Method for managing camera based on text analysis and management system

Country Status (1)

Country Link
CN (1) CN104951305A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273353A (en) * 2005-06-27 2008-09-24 微软公司 Pre-configured settings for portable devices
CN102520951A (en) * 2011-12-13 2012-06-27 天津大学 Flash-based three-dimensional game scene management system
CN103260002A (en) * 2012-02-16 2013-08-21 富盛科技股份有限公司 Information remote transmission method in video monitoring field and application thereof
CN104301652A (en) * 2013-07-19 2015-01-21 杭州海康威视数字技术股份有限公司 Method for network camera access configuration and network video recorder

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273353A (en) * 2005-06-27 2008-09-24 微软公司 Pre-configured settings for portable devices
CN102520951A (en) * 2011-12-13 2012-06-27 天津大学 Flash-based three-dimensional game scene management system
CN103260002A (en) * 2012-02-16 2013-08-21 富盛科技股份有限公司 Information remote transmission method in video monitoring field and application thereof
CN104301652A (en) * 2013-07-19 2015-01-21 杭州海康威视数字技术股份有限公司 Method for network camera access configuration and network video recorder

Similar Documents

Publication Publication Date Title
KR101087439B1 (en) Software componentization
JP5162094B2 (en) Method and apparatus for metadata-driven business logic processing
KR100887182B1 (en) Integrated multidimensional view of hierarchical objects
US8799807B2 (en) Organization and display of tabs and tab groups over hierarchical levels
US8364683B2 (en) Importing and reconciling resources from disjoint name spaces to a common namespace
US8850322B2 (en) Customized diagrammatic view of a network topology
US8478850B2 (en) Platform component architecture (PCA)-based system, method and application designer
CN108958708B (en) Software system architecture based on components and software implementation method
CN102981941B (en) A kind of alert processing method and alarm treatment device
JP2016507917A (en) Electronic device, resource display method, program, and recording medium
US20160057733A1 (en) Systems and methods for using graph modeling to manage, monitor, and control broadcast and multimedia systems
US10296652B2 (en) Method and system for selection of user interface rendering artifacts in enterprise web applications using a manifest mechanism
US10359999B2 (en) Declarative configuration and execution of card content management operations for trusted service manager
WO2018205981A1 (en) Metadata management
CN103268226A (en) Test script file generation method and device
JP2011522453A (en) Automated TV production methods
CN104991778A (en) Filtering method and apparatus based on tree structure
US20120144295A1 (en) Service registry policy editing user interface
KR100513292B1 (en) Method And System for Composing Home-state Information in Home Network
CA2686367A1 (en) Dynamic native editor code view facade
US20070198928A1 (en) Design method and apparatus for user interface
US20070245296A1 (en) Code management in a distributed software development environment
CN109324731A (en) Information display method and device
CN104951305A (en) Method for managing camera based on text analysis and management system
US20130173671A1 (en) Extended tagging method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150930

RJ01 Rejection of invention patent application after publication