CN109040585A - Camera control method and system - Google Patents

Camera control method and system Download PDF

Info

Publication number
CN109040585A
CN109040585A CN201810843167.2A CN201810843167A CN109040585A CN 109040585 A CN109040585 A CN 109040585A CN 201810843167 A CN201810843167 A CN 201810843167A CN 109040585 A CN109040585 A CN 109040585A
Authority
CN
China
Prior art keywords
camera
video
parameter
decoding rule
control method
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
CN201810843167.2A
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.)
South China Normal University
Original Assignee
South China Normal University
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 South China Normal University filed Critical South China Normal University
Priority to CN201810843167.2A priority Critical patent/CN109040585A/en
Publication of CN109040585A publication Critical patent/CN109040585A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Abstract

The present invention relates to a kind of camera control methods.A kind of camera control method of the present invention includes the following steps: the parameter for obtaining camera;According to the parameter of the camera obtain the camera corresponding to video decoding rule, and the decoding rule of the video according to corresponding to the camera decodes the video flowing of the camera, and decoded video is sent on bands window and is shown.A kind of camera control method of the present invention, the support to different type camera can be completed in same client, the content that different cameras are shown in same client makes user not need downloading multiple client and removes video content captured by display different type camera.

Description

Camera control method and system
Technical field
The present invention relates to field of video monitoring, more particularly to camera control method and system.
Background technique
With popularizing for camera technology, a large amount of camera is installed in public, user can also stay at home or shop Paving installation camera mainly divides two ways to the remote control of camera at present, one is inside camera for monitoring The client of built-in wireless transmitter, camera connects the wireless transmitter by point-to-point mode, and another kind is client Camera is manipulated by wireless network router, the mark that current each producer has oneself different the camera operation of oneself Standard, camera and client be all it is corresponding, do not support cross-reference, user needs different clients if possessing a variety of cameras End cannot check the media stream data of a variety of cameras, client is all to pass through control to the support of camera to support simultaneously Built-in corresponding order in program, but program can only be modified once completing in source program, need to consume very big workload.
Summary of the invention
Based on this, the object of the present invention is to provide a kind of camera control method and systems, can be in same client Complete the support to different type camera.
The present invention is achieved by the following scheme:
A kind of camera control method, includes the following steps:
Obtain the parameter of camera;
According to the parameter of the camera obtain the camera corresponding to video decoding rule, and according to the camera shooting Video decoding rule corresponding to head decodes the video flowing of the camera, and by decoded video stream to bands window Upper display.
Camera control method of the present invention passes through the video solution corresponding to different camera address bindings Code rule can complete the support to different type camera in same client, different camera shootings can be shown in same client The video content of head.
Further, further include following steps after the parameter for obtaining camera:
Judge whether the parameter of the camera has corresponding video decoding rule.
It further, then further include as follows if it is determined that the parameter of the camera does not have corresponding video decoding rule Step:
Video decoding rule, the video that will be obtained from the camera are extracted from the multiple videos decoding rule prestored Stream is matched one by one with extracted video decoding rule, obtains the decoding rule of video corresponding to the parameter of the camera Then;
The video flowing of the camera is decoded according to the corresponding video decoding rule of the parameter of the camera, and will decoding Video afterwards is sent on bands window and shows.
Therefore the video of newly added camera and java standard library can be decoded rule match, to check new addition camera Video content.
Further, video decoding rule is extracted from the multiple videos decoding rule prestored, it will be from the camera The video flowing of acquisition is matched one by one with extracted video decoding rule, obtains view corresponding to the parameter of the camera Further include following steps after frequency decodes rule:
The parameter of the camera is marked, and the parameter for binding camera video decoding rule corresponding with its.
It, can directly according to the camera of storage when next time connects the camera of the address after label camera shooting leading address The video decoded information of location binding obtains the decoding rule of video corresponding to the camera.
Further, according to the parameter of the camera obtain the camera corresponding to video decoding rule, and root The video flowing that rule decodes the camera is decoded according to video corresponding to the camera, and by decoded video stream After being shown on to bands window, further includes following steps: obtaining the action type of user;
Operating parameter is obtained according to action type in the corresponding video decoding rule of user, is looked by standard of operating parameter It looks for and obtains control command;
Control command is sent to camera.
While realizing the function of playing video image acquired in camera, moreover it is possible to be instructed to the camera Operation controls the camera and completes corresponding order.
Further, further include following steps:
The video for obtaining the camera of different model decodes rule, and acquired video is decoded rule deposit client In.
Further, the parameter of the camera is the model of the camera or the address of the camera.
Further, the present invention also provides a kind of readable storage medium, computer program is stored thereon, the computer journey The camera control method as described in above-mentioned any one is realized when sequence is executed by processor.
Further, it the present invention also provides a kind of camera control system, including processor, can hold for storage processor The memory of capable computer program;Wherein, the processor is configured to: realize when executing the computer program as above-mentioned Camera control method described in any one.
In order to better understand and implement, the invention will now be described in detail with reference to the accompanying drawings.
Detailed description of the invention
Fig. 1 is camera control method flow chart in an embodiment of the present invention;
Fig. 2 is camera control method flow chart in an embodiment of the present invention;
Fig. 3 is camera control system schematic block diagram in an embodiment of the present invention.
Specific embodiment
Camera control method of the present invention is usually applied to the camera with radio network functions, i.e. client passes through wireless Network router connects and manipulates camera, and camera control method of the present invention completed by client, can be with by client Connect different types of camera, wherein the video decoding rule of each model camera, different model have been prestored in client The video of camera decode rule, corresponding different video decodes rule.Client can be desktop computer or notebook Computer, client can also be that mobile terminal, such as mobile phone, plate etc. are equipped with the mobile terminal of intelligent operating system.
As shown in Figure 1, in one embodiment, when user is intended to connect a certain camera by client, executing following behaviour Make:
S10: the parameter of camera is obtained.
The parameter of camera can be model and the address of camera, and in the present embodiment, the parameter of camera is camera shooting After the IP address of head, client and camera all connect wireless router, client and camera obtain IP address automatically, and It will be in same IP sections, therefore, after client obtains the IP address of camera, just can connect camera, in other implementations In example, the address of camera can also be other identifier, such as hardware address etc..In the present embodiment, client obtains camera shooting The mode of leading address includes two kinds, and one is the cameras by being connected to wireless router in client scan, is obtained different The information such as the IP address of camera, and by manually selecting the camera for needing to connect, to obtain the IP address of the camera, separately It is user by inputting the IP of the camera to be connected in client manually that a kind of client, which obtains the mode of camera shooting leading address, Location.
S20: according to the parameter of the camera obtain the camera corresponding to video decoding rule, and according to described The decoding rule of video corresponding to camera decodes the video flowing of the camera, and by decoded video stream to channel It is shown on window.
In the present embodiment, video decoding rule is to establish java standard library in client background in the storage rule of client, is marked Quasi- library can be database, each video decoding rule is put into individual tuple in java standard library, and different videos decodes rule It is put into different tuples, wherein java standard library information can be retrieved, and after retrieving java standard library information, just can be obtained corresponding Video decode rule.
Judge the address of the camera whether to have corresponding video decoding rule to be the ginseng by judging the camera What whether number had corresponding java standard library tuple to complete, client obtains the member of java standard library corresponding to the parameter of the camera After group, video channel is distributed according to reference order to the client, it is right according to the video decoding rule stored in java standard library tuple The video flowing obtained from the camera is decoded, and shows video in corresponding bands window.Bands window can be visitor The video window for distributing and popping up in the software of family end, can be single window, can also be common four split windows or eight points Window etc., different windows show video content captured by different cameras.
In one embodiment, after the parameter for obtaining camera, it is corresponding also to judge whether the parameter of the camera has Video decoding rule, if the parameter of the camera has corresponding video decoding rule, according to the parameter of the camera Obtain the decoding rule of video corresponding to the camera.
At least one signature library is additionally provided in the present embodiment, in client, signature library can be for storing camera The database of the corresponding relationship of the information of signature library where video decoding rule corresponding to parameter and the parameter of the camera, Relevant parameter can be marked in signature library, and after label, be stored and video solution corresponding to related camera parameter Java standard library tuple information where code rule, after client judges that the parameter of a certain camera is calibrated, it can judgement is thought This camera has corresponding video decoding rule, then by continuing to inquire standard corresponding to the camera parameter in signature library Library tuple information can obtain the java standard library tuple information corresponding to the preceding camera, and according to the java standard library tuple information, obtain Corresponding video is taken to decode rule.Java standard library information is that the rule of correspondence of standard camera head is corresponded in signature library, according to this Camera corresponding java standard library information in the tag library, just can go to search and obtain the camera according to the java standard library information Institute is to corresponding java standard library tuple.Wherein, if the parameter of the camera has corresponding java standard library information, table in signature library Camera corresponding to the bright parameter once connected client, and the camera parameter is provided in the signature library of client Corresponding java standard library information, or before the camera connects client, user is right by the manual setting camera parameter institute The java standard library information answered.
In one embodiment, it if it is determined that the parameter of the camera does not have corresponding video decoding rule, then also wraps Include following steps:
Video decoding rule, the video that will be obtained from the camera are extracted from the multiple videos decoding rule prestored Stream is matched one by one with extracted video decoding rule, obtains the decoding rule of video corresponding to the parameter of the camera Then;
The video flowing of the camera is decoded according to the corresponding video decoding rule of the parameter of the camera, and will decoding Video afterwards is sent on bands window and shows.
If it is determined that the address of camera then illustrates that the camera does not have in the tag library without corresponding java standard library information It was connected, or does not preset java standard library information corresponding to the camera, in oneainstance, it is also possible to the camera During being again coupled to, parameter is changed, therefore in the tag library without corresponding java standard library information, in this feelings Under condition, need to re-start the camera the corresponding video decoding rule of association.
It will be carried out from the video flowing obtained in the camera and video decoding rule extracted from java standard library tuple It matches one by one, is carried out by hitting this technology of library, hit library processing i.e. by will the video flowing that obtain in the camera and from institute There is the video extracted in java standard library decoding rule to be matched one by one, the video decoding rule of successful match is the camera institute Corresponding video decoding rule.
In one embodiment, video decoding rule is extracted in the multiple videos decoding rule prestored, it will be from the camera shooting The video flowing obtained in head is matched one by one with extracted video decoding rule, corresponding to the parameter for obtaining the camera Video decoding rule after, further include following steps:
The parameter of the camera is marked, and the parameter for binding camera video decoding rule corresponding with its.? The parameter of the camera is marked in signature library, and the parameter of camera java standard library tuple information corresponding with its is stored in In signature library, when next client connects the parameter corresponding camera, does not just need to carry out hitting library processing again, but directly lead to The mark information java standard library tuple information corresponding with camera shooting leading address in signature library is crossed, view corresponding to camera just can be obtained Frequency decodes rule.
In one embodiment, as shown in Fig. 2, being read out display to the video information of camera realizing client On the basis of, camera can also be operated by video window or client end interface.Specifically comprise the following steps:
S30: the action type of user is obtained.
Wherein, the action type of user is the operational order by obtaining user, is instructed depending on the user's operation, acquired , the operational order of user includes the movement that user is applied on the screen, such as clicks corresponding button, or double-clicks screen A region etc., the operational order of user can be to be inputted by video window, can also be by provided by camera interface The input of other virtual push buttons can also be that user is inputted by voice, and the action type of user includes that camera is made to play open and close The operation such as close, rotate, client is identified by the signal that the signal or voice that are manually entered to user input, and judges to use The action type input operation instruction at family.
S40: operating parameter is obtained according to action type in the corresponding video decoding rule of user, is mark with operating parameter Standard searches and obtains control command.
S50: control command is sent to camera.
According to the corresponding java standard library information of the parameter of the camera, the corresponding java standard library tuple of the camera is obtained, Operating parameter is obtained according to action type in java standard library tuple, control command as standard lookup and is obtained using operating parameter, visitor By java standard library information corresponding to camera shooting leading address, the action type inputted in java standard library according to user obtains view at family end Frequency decodes the operating parameter stored in rule, and is searched by operating parameter and obtain client and ordered the control of camera It enables.
After client obtains control command, by wireless router, control command is sent to corresponding camera, is imaged After head receives control command, just according to the control command received, the operations such as opening, closing or rotation are executed.
The present invention also provides a kind of readable storage mediums, store computer program thereon, and the computer program is processed The camera control method as described in any one of above-described embodiment is realized when device executes.
It wherein includes storage medium (the including but not limited to disk of program code that the present invention, which can be used in one or more, Memory, CD-ROM, optical memory etc.) on the form of computer program product implemented.Computer-readable storage media packet Permanent and non-permanent, removable and non-removable media is included, can be accomplished by any method or technique information storage.Letter Breath can be computer readable instructions, data structure, the module of program or other data.The example packet of the storage medium of computer Include but be not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), Other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices or any other non-biography Defeated medium, can be used for storage can be accessed by a computing device information.
The present invention also provides a kind of camera control systems, as shown in figure 3, include processor, for storage processor can The memory of the computer program of execution;Wherein, the processor is configured to: realized when executing the computer program as above State camera control method described in any one embodiment.
Camera control method of the invention can complete the support to different type camera in same client, same The content that different cameras are shown in one client makes user not need downloading multiple client and removes display different type camera Captured video content;Camera control method of the present invention can also make client bind the camera newly connected automatically, and When connection next time, the video of the auto-associating camera decodes rule;User can also camera control method through the invention Operational order is sent to different cameras by same client, so that different cameras is executed user and issues related behaviour Make.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.

Claims (9)

1. a kind of camera control method, which comprises the steps of:
Obtain the parameter of camera;
According to the parameter of the camera obtain the camera corresponding to video decoding rule, and according to the camera institute Corresponding video decoding rule decodes the video flowing of the camera, and will show on decoded video stream to bands window Show.
2. a kind of camera control method according to claim 1, which is characterized in that after the parameter for obtaining camera, also Include the following steps:
Judge whether the parameter of the camera has corresponding video decoding rule.
3. a kind of camera control method according to claim 1, which is characterized in that if it is determined that the ginseng of the camera The no corresponding video decoding rule of number, then further include following steps:
From prestore multiple videos decoding rule in extract video decoding rule, by the video flowing obtained from the camera with Extracted video decoding rule is matched one by one, obtains the decoding rule of video corresponding to the parameter of the camera;
The video flowing of the camera is decoded according to the corresponding video decoding rule of the parameter of the camera, and will be decoded Video is sent on bands window and shows.
4. a kind of camera control method according to claim 3, which is characterized in that from the multiple videos decoding rule prestored Video decoding rule is extracted in then, and the video flowing obtained from the camera and extracted video decoding rule are carried out one One matching further includes following steps after obtaining the decoding rule of video corresponding to the parameter of the camera:
The parameter of the camera is marked, and the parameter for binding camera video decoding rule corresponding with its.
5. a kind of camera control method according to claim 1, which is characterized in that obtained according to the parameter of the camera The decoding rule of video corresponding to the camera is taken, and described in the decoding rule decoding of the video according to corresponding to the camera The video flowing of camera, and will further include following steps on decoded video stream to bands window after display:
Obtain the action type of user;
Operating parameter is obtained according to action type in user's corresponding video decoding rule, using operating parameter as standard lookup simultaneously Obtain control command;
Control command is sent to camera.
6. a kind of camera control method according to claim 1, which is characterized in that further include following steps:
The video for obtaining the camera of different model decodes rule, and will be in acquired video decoding rule deposit client.
7. camera control method according to any one of claims 1 to 7, it is characterised in that:
The parameter of the camera is the model of the camera or the address of the camera.
8. a kind of readable storage medium, stores computer program thereon, it is characterised in that: the computer program is held by processor Camera control method as claimed in any one of claims 1 to 7 is realized when row.
9. a kind of camera control system, it is characterised in that: including processor, the computer journey that can be performed for storage processor The memory of sequence;Wherein, the processor is configured to: realized when executing the computer program as claim 1 to 7 is any Camera control method described in one.
CN201810843167.2A 2018-07-27 2018-07-27 Camera control method and system Pending CN109040585A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810843167.2A CN109040585A (en) 2018-07-27 2018-07-27 Camera control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810843167.2A CN109040585A (en) 2018-07-27 2018-07-27 Camera control method and system

Publications (1)

Publication Number Publication Date
CN109040585A true CN109040585A (en) 2018-12-18

Family

ID=64647056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810843167.2A Pending CN109040585A (en) 2018-07-27 2018-07-27 Camera control method and system

Country Status (1)

Country Link
CN (1) CN109040585A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220569A1 (en) * 2006-03-06 2007-09-20 Satoshi Ishii Image monitoring system and image monitoring program
CN104243906A (en) * 2014-06-26 2014-12-24 深圳市科瑞电子有限公司 Video data rate sharing implementation method between video monitoring system and video intercom system
CN106454271A (en) * 2016-11-21 2017-02-22 环球大数据科技有限公司 Video processing system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220569A1 (en) * 2006-03-06 2007-09-20 Satoshi Ishii Image monitoring system and image monitoring program
CN104243906A (en) * 2014-06-26 2014-12-24 深圳市科瑞电子有限公司 Video data rate sharing implementation method between video monitoring system and video intercom system
CN106454271A (en) * 2016-11-21 2017-02-22 环球大数据科技有限公司 Video processing system and method

Similar Documents

Publication Publication Date Title
CN104954811B (en) A kind of method and Intelligent television terminal of video aggregation application load networks video
CN109168078B (en) Video definition switching method and device
CN104333770B (en) The method and device of a kind of net cast
JP2019046471A (en) Similar video lookup method, apparatus, equipment and program
CN102685097B (en) For providing the system and its apparatus of the content playback of recommendation on the display device
CN105227988B (en) A kind of method and device that smart television is arranged according to scene display system
CN104951466B (en) A kind of POI information searching method, device, system and relevant device
CN110708571B (en) Video clip playing control method and related product
US20170187837A1 (en) Ad download method, the client and the server
CN104244076B (en) A kind of method and system for grouping being realized by DLNA while manipulating more media devices
CN110035318A (en) Video broadcasting method, device and multimedia data playing method
US20160205440A1 (en) Information processing apparatus, television receiver, information processing method, program, and information processing system
AU2015396643A1 (en) Event based video generation
CN107105350A (en) Massaging device and dispenser
US20150326663A1 (en) Method, apparatus, and system for managing invitations for multi-device participation in an application program
WO2020135130A1 (en) Program switching method, device, television set, and readable storage medium
US20170161871A1 (en) Method and electronic device for previewing picture on intelligent terminal
US20140237519A1 (en) Control device and control method
CN109040585A (en) Camera control method and system
WO2020248873A1 (en) Television channel presetting method and apparatus, computer device, and readable storage medium
US8838747B2 (en) Changing data received from the web using local data
CN105338378B (en) A kind of VOD method and device
CN106488299B (en) Video file display method and system
US20120076135A1 (en) Ip telephone provisioning system and methods
CN110035298B (en) Media quick playing method

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: 20181218