CN105491288B - Image adjusting method, apparatus and system - Google Patents
Image adjusting method, apparatus and system Download PDFInfo
- Publication number
- CN105491288B CN105491288B CN201510897533.9A CN201510897533A CN105491288B CN 105491288 B CN105491288 B CN 105491288B CN 201510897533 A CN201510897533 A CN 201510897533A CN 105491288 B CN105491288 B CN 105491288B
- Authority
- CN
- China
- Prior art keywords
- image
- signal
- horizontal
- video camera
- output
- 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.)
- Active
Links
Landscapes
- Studio Devices (AREA)
Abstract
The invention discloses a kind of image adjusting method, receives external synchronization signal caused by the external synchronization signal generator of video camera connection;When receiving the external synchronization signal, according to the output format of image in video camera described in the period modulation of the external synchronization signal, the output format includes output frame rate and scan mode;The image of the video camera is exported according to the output format after adjustment.Invention also discloses a kind of image adjusting device and system.The present invention adjusts the output format of image in video camera by external synchronization signal, improves the intelligent of Image Adjusting.
Description
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of image adjusting method, apparatus and system.
Background technology
At present, most of video camera (Camera) is directly set defeated in output image according to video camera according to itself
Go out form (such as size of output frame rate, output image) output image, because the output format difference of different cameras may be led
Each video camera is caused when being recorded a video to same scene, the image of same time point output is different, in same display
When carrying out editing to the image that multiple video cameras play, because the image difference of each video camera causes the picture of image not
Situation that is smooth, being likely to occur picture frame losing, and now in the art, if it is desired to the image output format of multiple cameras is consistent,
With regard to needing to be configured respectively in every video camera manually, the parameter regulation by correlation is consistent, with each video camera
Image is adjusted, it is clear that this adjustment mode is not intelligent enough.
The content of the invention
It is a primary object of the present invention to propose a kind of image adjusting method, apparatus and system, it is intended to solve prior art
In to the Image Adjusting mode of video camera, not intelligent enough technical problem.
To achieve the above object, a kind of image adjusting method provided by the invention, described image method of adjustment include following
Step:
Receive external synchronization signal caused by the external synchronization signal generator of video camera connection;
When receiving the external synchronization signal, according to image in video camera described in the period modulation of the external synchronization signal
Output format, the output format includes output frame rate and scan mode;
The image of the video camera is exported according to the output format after adjustment.
Preferably, it is described when receiving the external synchronization signal, according to the period modulation of the external synchronization signal
Include in video camera the step of the output format of image:
The external synchronization signal is separated, obtains horizontal-drive signal and verticial-sync signal;
Obtain the cycle of the horizontal-drive signal, and the video camera according to the period modulation of the horizontal-drive signal
The output frame rate of middle image;
The number of verticial-sync signal in the cycle of the horizontal-drive signal is determined, according to the horizontal-drive signal
The number of verticial-sync signal adjusts the scan mode of image in the video camera in cycle.
Preferably, the step of cycle of the acquisition horizontal-drive signal includes:
According to the horizontal-drive signal of extraction, clock frequency corresponding to the horizontal-drive signal is obtained;
The cycle of the horizontal-drive signal is obtained according to the clock frequency.
Preferably, include in the cycle for determining the horizontal-drive signal the step of number of verticial-sync signal:
Obtain the cycle of the verticial-sync signal;
According to the ratio in the cycle of the verticial-sync signal and the cycle of the horizontal-drive signal, the level is determined
The number of verticial-sync signal in the cycle of synchronizing signal.
Preferably, the output format according to after adjustment, which exports the step of image of the video camera, includes:
The image that the video camera currently gathers is obtained, the image of collection is exported according to the output format after adjustment;
Or the image of the video camera storage is obtained, the image of storage is exported according to the output format after adjustment.
In addition, to achieve the above object, the present invention also proposes a kind of image adjusting device, described image adjusting apparatus bag
Include:
Receiving module, for receiving external synchronization signal caused by the external synchronization signal generator of video camera connection;
Adjusting module, for when receiving the external synchronization signal, according to the period modulation of external synchronization signal institute
The output format of image in video camera is stated, the output format includes output frame rate and scan mode;
Output module, for exporting the image of the video camera according to the output format after adjustment.
Preferably, the adjusting module includes:
Submodule is separated, for being separated to the external synchronization signal, obtains horizontal-drive signal and vertical synchronous letter
Number;
First acquisition submodule, for obtaining the cycle of the horizontal-drive signal;
Adjust submodule, the output frame for image in video camera described in the period modulation according to the horizontal-drive signal
Rate;
Determination sub-module, the number of verticial-sync signal in the cycle for determining the horizontal-drive signal;
The adjustment submodule, the number for being additionally operable to verticial-sync signal in the cycle according to the horizontal-drive signal are adjusted
The scan mode of image in the whole video camera.
Preferably, first acquisition submodule includes:
First acquisition unit, for the horizontal-drive signal according to extraction, it is corresponding to obtain the horizontal-drive signal
Clock frequency;
Second acquisition unit, for obtaining the cycle of the horizontal-drive signal according to the clock frequency.
Preferably, the determination sub-module includes:
3rd acquiring unit, for obtaining the cycle of the verticial-sync signal;
Determining unit, the ratio for the cycle according to the verticial-sync signal and the cycle of the horizontal-drive signal
Value, determine the number of verticial-sync signal in the cycle of the horizontal-drive signal.
Preferably, the output module includes:
Second acquisition submodule, the image currently gathered for obtaining the video camera;
Output sub-module, for exporting the image of collection according to the output format after adjustment;
Second acquisition submodule, it is additionally operable to obtain the image of the video camera storage;
The output sub-module, it is additionally operable to the image according to the output format output storage after adjustment.
In addition, to achieve the above object, the present invention also proposes a kind of Image Adjusting system, described image adjustment system includes
External synchronization signal generator and multiple video cameras, the video camera include image adjusting device as described above.
Image adjusting method proposed by the present invention, apparatus and system, receive the external synchronization signal generator of video camera connection
Caused external synchronization signal, when receiving the external synchronization signal, taken the photograph according to the period modulation of the external synchronization signal
The output format of image in camera, the output format includes output frame rate and scan mode, according to the output format after adjustment
The image of the video camera is exported, this programme adjusts the output format of image in video camera by external synchronization signal so that connection
To each video camera of same external synchronization signal generator, the output format of image is consistent, without in every video camera
It is configured respectively, the parameter regulation by correlation is consistent, is adjusted with the output format to image in each video camera, this
Invention improves the intelligent of Image Adjusting.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of image adjusting method preferred embodiment of the present invention;
Fig. 2 is that the output format of image in the video camera of the invention according to the period modulation of the external synchronization signal is preferable
The schematic flow sheet of embodiment;
Fig. 3 is the schematic flow sheet for the cycle preferred embodiment that the present invention obtains the horizontal-drive signal;
Fig. 4 be present invention determine that in the cycle of the horizontal-drive signal verticial-sync signal number preferred embodiment
Schematic flow sheet;
Fig. 5 is the high-level schematic functional block diagram of image adjusting device preferred embodiment of the present invention;
Fig. 6 is the refinement high-level schematic functional block diagram of adjusting module in Fig. 5;
Fig. 7 is the refinement high-level schematic functional block diagram of the first acquisition submodule in Fig. 6;
Fig. 8 is the refinement high-level schematic functional block diagram of determination sub-module in Fig. 6;
Fig. 9 is the implement scene schematic diagram of image adaptation procedures of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of image adjusting method.
Reference picture 1, Fig. 1 are the schematic flow sheet of image adjusting method first embodiment of the present invention.
The present embodiment proposes a kind of image adjusting method, and described image method of adjustment includes:
Step S10, receive external synchronization signal caused by the external synchronization signal generator of video camera connection;
In the present embodiment, the side of external synchronization signal caused by the external synchronization signal generator for receiving video camera connection
Formula includes:Mode one, video camera is first connected into external synchronization signal generator, then when detecting the output order of image, connect
Receive external synchronization signal caused by described external synchronization signal generator;Mode two, when detecting the output order of image, will take the photograph
Camera connects external synchronization signal generator, receives external synchronization signal caused by the external synchronization signal generator, and is detecting
During the output order of image, first determine whether video camera connects external synchronization signal generator, whether the determination video camera connects
The mode of external synchronization signal generator is preferably:Default flag bit in the video separation chip in the video camera is determined, if
The flag bit is preset value, then the video camera connection external synchronization signal generator, for example, when the flag bit is 1, really
Determine video camera connection external synchronization signal generator, on the contrary, when the flag bit is 0, determine that the video camera is not connected outer same
Signal generator is walked, now, can only be adjusted by interior synchronizing signal in the output format of image, or the adjustment video camera
Default parameter, so that output format of the video camera using External synchronization mode adjustment image, if video camera connection is outer synchronous
Signal generator, then receive external synchronization signal caused by the external synchronization signal generator.
Step S20, when receiving the external synchronization signal, the shooting according to the period modulation of the external synchronization signal
The output format of image in machine, the output format include output frame rate and scan mode;
In the present embodiment, outer synchronization (Genlock) signal is available to the external synchronization signal of video camera, video camera
Outer synchronization (Genlock) signal of external synchronization signal generator input is extracted, and the external synchronization signal is separated, to carry
Verticial-sync signal (Vertical Sync) and horizontal-drive signal (Horizontal Sync) are taken out, and passes through central processing
Device enters line number to the verticial-sync signal (Vertical Sync) and the horizontal-drive signal (Horizontal Sync)
According to processing.Included according to the mode of the output format of image in video camera described in the period modulation of the external synchronization signal:To institute
State external synchronization signal to be separated, obtain horizontal-drive signal and verticial-sync signal;Obtain the week of the horizontal-drive signal
Phase, and in the video camera according to the period modulation of the horizontal-drive signal image output frame rate;Determine described horizontal same
The number of verticial-sync signal in the cycle of signal is walked, according to of verticial-sync signal in the cycle of the horizontal-drive signal
Number adjusts the scan mode of image in the video camera.
Specifically, reference picture 9, according to the output of image in video camera described in period modulation corresponding to the external synchronization signal
Form is realized by the bottom hardware of video camera, i.e., described video camera includes Video Sync Separator Chip (Video
Sync Separator IC), video clock generator (Video Clock Generator), field programmable gate array chip
(FPGA), system online programmable chip (ISP) and central processing unit (CPU), first, video camera passes through default interface
Vertical synchronization is exported to the Video Sync Separator Chip separation during external synchronization signal, is passed through caused by external synchronization signal generator
Signal (Vertical Sync) and horizontal-drive signal (Horizontal Sync)), the horizontal-drive signal then separated passes
It is defeated into video clock generator, on the basis of horizontal-drive signal, output system can be compiled the video clock generator online
The high definition clock frequency (HD-CLK) needed for clock frequency (CLK) and image pixel needed for journey chip (ISP), i.e., described video
Clock generator is by the clock frequency needed for system online programmable chip (ISP) and the high definition clock frequency needed for image pixel
Transmit to field programmable gate array chip, meanwhile, verticial-sync signal and institute after the Video Sync Separator Chip separation
State horizontal-drive signal to transmit into field programmable gate array chip, now, the field programmable gate array chip is by institute
Horizontal-drive signal, verticial-sync signal and the clock signal transmission are stated into central processing unit, the central processing unit connects
Receive the horizontal-drive signal, verticial-sync signal and the clock signal, you can detect to be currently at External synchronization mode,
I.e. described central processing unit is synchronous by I2C bus marcos field programmable gate array chip output level synchronizing signal and vertically
Signal, specifically, the central processing unit by I2C bus marcos field programmable gate array chip export VS/HS signals and
VD/HD signals, herein, VS/HS and VD/HD are unified signals, and VS, VD represent that verticial-sync signal HS/HD represents horizontal
Synchronizing signal, also, CPU analyses verticial-sync signal, horizontal-drive signal and clock signal, to determine the video camera
The scan mode and output frame rate for the image to be exported, according to the scan mode of described image and output frame rate adjustment output lattice
Formula.
Step S30, the image of the video camera is exported according to the output format after adjustment.
In the present embodiment, the step of exporting the image of the video camera according to the output format after adjustment includes:First obtain
The image for taking the video camera currently to gather, the image of collection is then exported according to the output format after adjustment;Or first obtain
The image of the video camera storage, the image of storage is then exported according to the output format after adjustment.
In the present embodiment, reference picture 9, it is determined that in video camera while the output format of image, obtain the system
The VS/HS and Clock (MCLK) that online programmable chip provides to sensor, and receive the view data of sensor output
(Image Data), it is to be understood that described image data are gathered by the sensor, can receive outer synchronization
Collection or the sensor are gathered and are stored in default memory space in advance during signal, and are gathered described
After the completion of view data is through system online programmable chip I SP image procossings, digital image data (Digital Video
Data) and VD/HD and Clock (PCLK) is supplied to HD-SDI chips to export HD-SDI images.
The image adjusting method that the present embodiment proposes, receive outer same caused by the external synchronization signal generator of video camera connection
Signal is walked, when receiving the external synchronization signal, according to image in video camera described in the period modulation of the external synchronization signal
Output format, the output format includes output frame rate and scan mode, is taken the photograph according to the output format output after adjustment
The image of camera, this programme adjust the output format of image in video camera by external synchronization signal so that are connected to same outer
Each video camera of synchronous generator, the output format of image is consistent, without being set respectively in every video camera
Put, the parameter regulation by correlation is consistent, is adjusted with the output format to image in each video camera, the present invention improves
Image Adjusting it is intelligent.
Further, in order to improve the flexibility of Image Adjusting, Image Adjusting side of the present invention is proposed based on first embodiment
The second embodiment of method, in the present embodiment, reference picture 2, the step S20 include:
Step S21, the external synchronization signal is separated, obtains horizontal-drive signal and verticial-sync signal;
Step S22, the cycle of the horizontal-drive signal is obtained, and according to the period modulation institute of the horizontal-drive signal
State the output frame rate of image in video camera;
In the present embodiment, the external synchronization signal is separated, obtains horizontal-drive signal and verticial-sync signal,
Then the cycle of the horizontal-drive signal is obtained, and is schemed in the video camera according to the period modulation of the horizontal-drive signal
The output frame rate of picture, the side of the output frame rate of image in the video camera according to the period modulation of the horizontal-drive signal
Formula is:According to the horizontal-drive signal of extraction, obtain clock frequency corresponding to the horizontal-drive signal, according to it is described when
The cycle of horizontal-drive signal described in clock frequency acquisition.To be best understood from the present embodiment, it is exemplified below:Each horizontal-drive signal
It will interrupt when being changed to low level from high level, and be interrupted by horizontal-drive signal, it is vertical to increase
The time of timer in horizontal signal, and interrupt each time time of increased timer can all be stored in default storage
Qu Zhong, successively add up each timer caused by the time, and in horizontal-drive signal the reference clock signal of timer be by
The clock signal clk signal that field programmable gate array chip FPGA is provided, represent that horizontal synchronization is believed by Vin_ref_time
Number periodic regime time, and pass through the output frame of image in video camera described in the period modulation of the horizontal-drive signal
Rate.
Step S23, the number of verticial-sync signal in the cycle of the horizontal-drive signal is determined, according to described horizontal same
The number for walking verticial-sync signal in the cycle of signal adjusts the scan mode of image in the video camera.
In the present embodiment, in the cycle for determining the horizontal-drive signal number of verticial-sync signal mode
Including:The cycle of the verticial-sync signal is obtained, according to the cycle of the verticial-sync signal and the horizontal-drive signal
Cycle ratio, the number of verticial-sync signal in the cycle of the horizontal-drive signal is determined, then according to the level
The number of verticial-sync signal adjusts the scan mode of image in the video camera in the cycle of synchronizing signal.To be best understood from this
Embodiment, it is exemplified below:It will be interrupted during each verticial-sync signal high level change low level, and by vertical synchronous
Signal interrupts, and during the input of each horizontal-drive signal, can increase the time of horizontal synchronization calculator, and waits next time perpendicular
After straight synchronizing signal interrupts generation, it is corresponding increased horizontal-drive signal timer value will to be stored in horizontal synchronization timer
Memory block in.The scan mode of image, including Interlcae Mode are determined by the data of horizontal-drive signal timer
(interlace mode) Progressive Mode (progressive scan mode).
Further, in order to improve the flexibility of Image Adjusting, Image Adjusting side of the present invention is proposed based on second embodiment
The 3rd embodiment of method, in the present embodiment, reference picture 3, the step S22 include:
Step S221, according to the horizontal-drive signal of extraction, obtain clock frequency corresponding to the horizontal-drive signal
Rate;
Step S222, the cycle of the horizontal-drive signal is obtained according to the clock frequency.
In the present embodiment, reference picture 9, the horizontal-drive signal in the external synchronization signal is first extracted, then during video
Clock generator obtains clock rate C LK, now, the field programmable gate array core on the basis of the horizontal-drive signal
Piece cycle according to corresponding to the clock frequency determines the verticial-sync signal, and obtain the cycle.
Further, in order to improve the flexibility of Image Adjusting, Image Adjusting side of the present invention is proposed based on second embodiment
The fourth embodiment of method, in the present embodiment, reference picture 4, the step S24 also include:
Step S241, obtain the cycle of the verticial-sync signal;
Step S242, according to the ratio in the cycle of the verticial-sync signal and the cycle of the horizontal-drive signal, really
The number of verticial-sync signal in the cycle of the fixed horizontal-drive signal.
In the present embodiment, the cycle of the verticial-sync signal is first obtained, according to the cycle of the verticial-sync signal
With the ratio in the cycle of the horizontal-drive signal, of verticial-sync signal in the cycle of the horizontal-drive signal is determined
Number.
The present invention further provides a kind of image adjusting device.
Reference picture 5, Fig. 5 are the high-level schematic functional block diagram of image adjusting device first embodiment of the present invention.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram shown in Fig. 5 is only one preferably real
The exemplary plot of example is applied, those skilled in the art can be carried out new easily around the functional module of the image adjusting device shown in Fig. 5
Functional module supplement;The title of each functional module is self-defined title, is only used for auxiliary and understands the image adjusting device
Each program function block, restriction technical scheme is not used in, the core of technical solution of the present invention is each self-defined title
The function to be reached of functional module.
The present embodiment proposes a kind of image adjusting device, and described image adjusting apparatus includes:
Receiving module 10, for receiving external synchronization signal caused by the external synchronization signal generator of video camera connection;
In the present embodiment, the receiving module 10 receives outer same caused by the external synchronization signal generator of video camera connection
The mode of step signal includes:Mode one, video camera is first connected into external synchronization signal generator, then detect the output of image
During instruction, the receiving module 10 receives external synchronization signal caused by described external synchronization signal generator;Mode two, detecting
To image output order when, video camera is connected into external synchronization signal generator, the receiving module 10 receives the outer synchronization
External synchronization signal caused by signal generator, and when detecting the output order of image, it is outer first to determine whether video camera connects
Synchronous generator, the mode whether the determination video camera connects external synchronization signal generator are preferably:It is determined that described take the photograph
Default flag bit in video separation chip in camera, if the flag bit is preset value, the video camera connection is outer same
Signal generator is walked, for example, when the flag bit is 1, determines that video camera connects external synchronization signal generator, on the contrary, in institute
State flag bit for 0 when, determine that the video camera is not connected with external synchronization signal generator, now, can only be adjusted by interior synchronizing signal
Default parameter in the output format of whole image, or the adjustment video camera, so that the video camera uses outer synchronous mould
Formula adjusts the output format of image, if video camera connects external synchronization signal generator, the reception of receiving module 10 takes described
External synchronization signal caused by external synchronization signal generator.
Adjusting module 20, for when receiving the external synchronization signal, according to the period modulation of the external synchronization signal
The output format of image in the video camera, the output format include output frame rate and scan mode;
In the present embodiment, outer synchronization (Genlock) signal is available to the external synchronization signal of video camera, video camera
Outer synchronization (Genlock) signal of external synchronization signal generator input is extracted, and the external synchronization signal is separated, to carry
Verticial-sync signal (Vertical Sync) and horizontal-drive signal (Horizontal Sync) are taken out, and passes through central processing
Device enters line number to the verticial-sync signal (Vertical Sync) and the horizontal-drive signal (Horizontal Sync)
According to processing.The output format of image in the video camera according to the period modulation of the external synchronization signal of adjusting module 20
Mode includes:The external synchronization signal is separated, obtains horizontal-drive signal and verticial-sync signal;Obtain the level
The cycle of synchronizing signal, and in the video camera according to the period modulation of the horizontal-drive signal image output frame rate;Really
The number of verticial-sync signal in the cycle of the fixed horizontal-drive signal, according to vertical in the cycle of the horizontal-drive signal
The number of synchronizing signal adjusts the scan mode of image in the video camera.
Specifically, reference picture 9, according to the output of image in video camera described in period modulation corresponding to the external synchronization signal
Form is realized by the bottom hardware of video camera, i.e., described video camera includes Video Sync Separator Chip (Video
Sync Separator IC), video clock generator (Video Clock Generator), field programmable gate array chip
(FPGA), system online programmable chip (ISP) and central processing unit (CPU), first, video camera passes through default interface
Vertical synchronization is exported to the Video Sync Separator Chip separation during external synchronization signal, is passed through caused by external synchronization signal generator
Signal (Vertical Sync) and horizontal-drive signal (Horizontal Sync)), the horizontal-drive signal then separated passes
It is defeated into video clock generator, on the basis of horizontal-drive signal, output system can be compiled the video clock generator online
The high definition clock frequency (HD-CLK) needed for clock frequency (CLK) and image pixel needed for journey chip (ISP), i.e., described video
Clock generator is by the clock frequency needed for system online programmable chip (ISP) and the high definition clock frequency needed for image pixel
Transmit to field programmable gate array chip, meanwhile, verticial-sync signal and institute after the Video Sync Separator Chip separation
State horizontal-drive signal to transmit into field programmable gate array chip, now, the field programmable gate array chip is by institute
Horizontal-drive signal, verticial-sync signal and the clock signal transmission are stated into central processing unit, the central processing unit connects
Receive the horizontal-drive signal, verticial-sync signal and the clock signal, you can detect to be currently at External synchronization mode,
I.e. described central processing unit is synchronous by I2C bus marcos field programmable gate array chip output level synchronizing signal and vertically
Signal, specifically, the central processing unit by I2C bus marcos field programmable gate array chip export VS/HS signals and
VD/HD signals, herein, VS/HS and VD/HD are unified signals, and VS, VD represent that verticial-sync signal HS/HD represents horizontal
Synchronizing signal, also, CPU analyses verticial-sync signal, horizontal-drive signal and clock signal, to determine the video camera
The scan mode and output frame rate for the image to be exported, the adjusting module 20 is according to the scan mode and output frame of described image
Rate adjusts output format.
Output module 30, for exporting the image of the video camera according to the output format after adjustment.
In the present embodiment, the output module 30 includes:Second acquisition submodule and output sub-module, described second obtains
Submodule is taken to be used to obtain the image that the video camera currently gathers;The output sub-module is used for according to the output lattice after adjustment
The image of formula output collection;Second acquisition submodule is additionally operable to obtain the image of the video camera storage;Output
Module is additionally operable to the image according to the output format output storage after adjustment.
In the present embodiment, reference picture 9, it is determined that in video camera while the output format of image, obtain the system
The VS/HS and Clock (MCLK) that online programmable chip provides to sensor, and receive the view data of sensor output
(Image Data), it is to be understood that described image data are gathered by the sensor, can receive outer synchronization
Collection or the sensor are gathered and are stored in default memory space in advance during signal, and are gathered described
After the completion of view data is through system online programmable chip I SP image procossings, digital image data (Digital Video
Data) and VD/HD and Clock (PCLK) is supplied to HD-SDI chips to export HD-SDI images.
The image adjusting device that the present embodiment proposes, receive outer same caused by the external synchronization signal generator of video camera connection
Signal is walked, when receiving the external synchronization signal, according to image in video camera described in the period modulation of the external synchronization signal
Output format, the output format includes output frame rate and scan mode, is taken the photograph according to the output format output after adjustment
The image of camera, this programme adjust the output format of image in video camera by external synchronization signal so that are connected to same outer
Each video camera of synchronous generator, the output format of image is consistent, without being set respectively in every video camera
Put, the parameter regulation by correlation is consistent, is adjusted with the output format to image in each video camera, the present invention improves
Image Adjusting it is intelligent.
Further, in order to improve the flexibility of Image Adjusting, Image Adjusting dress of the present invention is proposed based on first embodiment
The second embodiment put, in the present embodiment, reference picture 6, the adjusting module 20 include:
Submodule 21 is separated, for being separated to the external synchronization signal, obtains horizontal-drive signal and vertical synchronization
Signal;
First acquisition submodule 22, for obtaining the cycle of the horizontal-drive signal;
Adjust submodule 23, the output for image in video camera described in the period modulation according to the horizontal-drive signal
Frame per second;
In the present embodiment, the separation submodule 21 separates to the external synchronization signal, obtains horizontal synchronization letter
Number and verticial-sync signal, then first acquisition submodule 22 obtain the cycle of the horizontal-drive signal, the adjustment
The output frame rate of image in the video camera according to the period modulation of the horizontal-drive signal of submodule 23, the adjustment submodule
The mode of the output frame rate of image is in the video camera according to the period modulation of the horizontal-drive signal of block 23:According to extraction
The horizontal-drive signal, obtain clock frequency corresponding to the horizontal-drive signal, according to the clock frequency obtain institute
State the cycle of horizontal-drive signal.To be best understood from the present embodiment, it is exemplified below:Each horizontal-drive signal changes from high level
For it is low level when will interrupt, and interrupted by horizontal-drive signal, it is fixed in vertical horizontal signal to increase
When device time, and interrupt each time time of increased timer can all be stored in default memory block, tire out successively
The time caused by each timer is counted, and the reference clock signal of timer is by field programmable gate in horizontal-drive signal
The clock signal clk signal that array chip FPGA is provided, the periodic regime of horizontal-drive signal is represented by Vin_ref_time
Time, and pass through the output frame rate of image in video camera described in the period modulation of the horizontal-drive signal.
Determination sub-module 24, the number of verticial-sync signal in the cycle for determining the horizontal-drive signal;
The adjustment submodule 23, it is additionally operable to the number of verticial-sync signal in the cycle according to the horizontal-drive signal
Adjust the scan mode of image in the video camera.
In the present embodiment, the determination sub-module 24 determines verticial-sync signal in the cycle of the horizontal-drive signal
The mode of number include:Obtain the cycle of the verticial-sync signal, according to the cycle of the verticial-sync signal with it is described
The ratio in the cycle of horizontal-drive signal, the number of verticial-sync signal in the cycle of the horizontal-drive signal is determined, it is described
Adjustment submodule 23 is adjusted in the video camera according to the number of verticial-sync signal in cycle of the horizontal-drive signal schemes
The scan mode of picture.To be best understood from the present embodiment, it is exemplified below:During each verticial-sync signal high level change low level
Interrupt, and interrupted by verticial-sync signal, when each horizontal-drive signal inputs, horizontal synchronization meter can be increased
The time of device is calculated, and after waiting verticial-sync signal next time to interrupt and occur, will be increased horizontal-drive signal timer
Value is stored in memory block corresponding to horizontal synchronization timer.Sweeping for image is determined by the data of horizontal-drive signal timer
Retouch mode, including Interlcae Mode (interlace mode) Progressive Mode (progressive scan mode).
Further, in order to improve the flexibility of Image Adjusting, Image Adjusting dress of the present invention is proposed based on second embodiment
The 3rd embodiment put, in the present embodiment, reference picture 7, first acquisition submodule 22 include:
First acquisition unit 221, for the horizontal-drive signal according to extraction, obtain the horizontal-drive signal pair
The clock frequency answered;
Second acquisition unit 222, for obtaining the cycle of the horizontal-drive signal according to the clock frequency.
In the present embodiment, reference picture 9, the first acquisition unit 221 first extract the level in the external synchronization signal
Synchronizing signal, then the first acquisition unit 221 is on the basis of the horizontal-drive signal, acquisition clock rate C LK, this
When, the second acquisition unit 222 cycle according to corresponding to the clock frequency determines the verticial-sync signal, and obtain institute
State the cycle.
Further, in order to improve the flexibility of Image Adjusting, Image Adjusting dress of the present invention is proposed based on second embodiment
The fourth embodiment put, in the present embodiment, reference picture 8, the determination sub-module 24 include:
3rd acquiring unit 241, for obtaining the cycle of the verticial-sync signal;
Determining unit 242, for the cycle according to the verticial-sync signal and the cycle of the horizontal-drive signal
Ratio, determine the number of verticial-sync signal in the cycle of the horizontal-drive signal.
In the present embodiment, the 3rd acquiring unit 241 first obtains the cycle of the verticial-sync signal, the determination
Unit 242 determines the level according to the ratio in the cycle and the cycle of the horizontal-drive signal of the verticial-sync signal
The number of verticial-sync signal in the cycle of synchronizing signal.
The present invention further provides a kind of Image Adjusting system.
Described image adjustment system includes external synchronization signal generator and multiple video cameras, and the video camera includes such as right
It is required that image adjusting device described above.
The Image Adjusting system that the present embodiment proposes, when detecting the output order of image, if video camera connection is outer same
Signal generator is walked, first obtains external synchronization signal caused by the external synchronization signal generator, then according to the outer synchronous letter
The output format of image in video camera described in period modulation corresponding to number, finally taken the photograph according to the output format output after adjustment
The image of camera, this programme adjust the output format of image in video camera by external synchronization signal so that are connected to same outer
Each video camera of synchronous generator, the output format of image is consistent, without being set respectively in every video camera
Put, the parameter regulation by correlation is consistent, and to be adjusted to image in each video camera, the present invention improves Image Adjusting
It is intelligent.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (5)
1. a kind of image adjusting method, it is characterised in that described image method of adjustment comprises the following steps:
When detecting the output order of image, outer synchronous letter caused by the external synchronization signal generator of video camera connection is received
Number, wherein, multiple video cameras connect an external synchronization signal generator;
When receiving the external synchronization signal, according in video camera described in the period modulation of the external synchronization signal image it is defeated
Go out form, the output format includes output frame rate and scan mode;Wherein, it is described to be adjusted according to the cycle of the external synchronization signal
Include in the whole video camera the step of output format of image:
External synchronization signal is separated by output verticial-sync signal and horizontal-drive signal by Video Sync Separator Chip, then will
The horizontal-drive signal of separation is transferred in video clock generator;
The video clock generator is on the basis of horizontal-drive signal, by the clock frequency needed for system online programmable chip
Transmitted with the high definition clock frequency needed for image pixel to field programmable gate array chip, by the field programmable gate array
Chip is transmitted to the system online programmable chip;
The Video Sync Separator Chip transmits the verticial-sync signal after separation and horizontal-drive signal can to the scene
Program in gate array chip, by the field programmable gate array chip according to the control instruction of central processing unit by horizontal synchronization
Signal, verticial-sync signal and clock signal transmission are into central processing unit;
The central processing unit passes through field programmable gate array chip output level synchronizing signal described in I2C bus marcos, perpendicular
Straight synchronizing signal and clock signal, and verticial-sync signal, horizontal-drive signal and clock signal are analyzed, to determine the shooting
The scan mode and output frame rate of the image of confidential output, output format is adjusted according to the scan mode and output frame rate;Its
In, analysis verticial-sync signal, horizontal-drive signal and the clock signal, to determine the video camera image to be exported
Scan mode and the mode of output frame rate include:According to the horizontal-drive signal of extraction, the horizontal-drive signal is obtained
Corresponding clock frequency, the cycle of the horizontal-drive signal is obtained according to the clock frequency, and according to the horizontal synchronization
The output frame rate of image in video camera described in the period modulation of signal;The cycle of the verticial-sync signal is obtained, according to described
The ratio in the cycle of verticial-sync signal and the cycle of the horizontal-drive signal, in the cycle for determining the horizontal-drive signal
The number of verticial-sync signal, the shooting is adjusted according to the number of verticial-sync signal in the cycle of the horizontal-drive signal
The scan mode of image in machine;
The image of the video camera is exported according to the output format after adjustment.
2. image adjusting method as claimed in claim 1, it is characterised in that the output format according to after adjustment exports institute
The step of image for stating video camera, includes:
The image that the video camera currently gathers is obtained, the image of collection is exported according to the output format after adjustment;
Or the image of the video camera storage is obtained, the image of storage is exported according to the output format after adjustment.
3. a kind of image adjusting device, it is characterised in that described image adjusting apparatus includes:
Receiving module, for when detecting the output order of image, receiving the external synchronization signal generator production of video camera connection
Raw external synchronization signal, wherein, multiple video cameras connect an external synchronization signal generator;
Adjusting module, for when receiving the external synchronization signal, being taken the photograph according to the period modulation of the external synchronization signal
The output format of image in camera, the output format include output frame rate and scan mode;Wherein, the adjusting module bag
Include:
External synchronization signal is separated by output verticial-sync signal and horizontal-drive signal by Video Sync Separator Chip, then will
The horizontal-drive signal of separation is transferred in video clock generator;
The video clock generator is on the basis of horizontal-drive signal, by the clock frequency needed for system online programmable chip
Transmitted with the high definition clock frequency needed for image pixel to field programmable gate array chip, by the field programmable gate array
Chip is transmitted to the system online programmable chip;
The Video Sync Separator Chip transmits the verticial-sync signal after separation and horizontal-drive signal can to the scene
Program in gate array chip, by the field programmable gate array chip according to the control instruction of central processing unit by horizontal synchronization
Signal, verticial-sync signal and clock signal transmission are into central processing unit;
The central processing unit passes through field programmable gate array chip output level synchronizing signal described in I2C bus marcos, perpendicular
Straight synchronizing signal and clock signal, and verticial-sync signal, horizontal-drive signal and clock signal are analyzed, to determine the shooting
The scan mode and output frame rate of the image of confidential output, output format is adjusted according to the scan mode and output frame rate;Its
In, central processing unit analysis verticial-sync signal, horizontal-drive signal and the clock signal, to determine that the video camera is defeated
The scan mode of the image gone out and the mode of output frame rate include:According to the horizontal-drive signal of extraction, the water is obtained
Clock frequency corresponding to flat synchronizing signal, the cycle of the horizontal-drive signal is obtained according to the clock frequency, and according to institute
State the output frame rate of image in video camera described in the period modulation of horizontal-drive signal;Obtain the week of the verticial-sync signal
Phase, according to the ratio in the cycle of the verticial-sync signal and the cycle of the horizontal-drive signal, determine the horizontal synchronization
The number of verticial-sync signal in the cycle of signal, according to the number of verticial-sync signal in the cycle of the horizontal-drive signal
Adjust the scan mode of image in the video camera;
Output module, for exporting the image of the video camera according to the output format after adjustment.
4. image adjusting device as claimed in claim 3, it is characterised in that the output module includes:
Second acquisition submodule, the image currently gathered for obtaining the video camera;
Output sub-module, for exporting the image of collection according to the output format after adjustment;
Second acquisition submodule, it is additionally operable to obtain the image of the video camera storage;
The output sub-module, it is additionally operable to the image according to the output format output storage after adjustment.
5. a kind of Image Adjusting system, it is characterised in that described image adjustment system includes external synchronization signal generator and multiple
Video camera, the video camera include the image adjusting device as described in claim 3 or 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510897533.9A CN105491288B (en) | 2015-12-08 | 2015-12-08 | Image adjusting method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510897533.9A CN105491288B (en) | 2015-12-08 | 2015-12-08 | Image adjusting method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105491288A CN105491288A (en) | 2016-04-13 |
CN105491288B true CN105491288B (en) | 2017-11-24 |
Family
ID=55677974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510897533.9A Active CN105491288B (en) | 2015-12-08 | 2015-12-08 | Image adjusting method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105491288B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106231250B (en) * | 2016-07-27 | 2019-05-24 | 成都之维安科技股份有限公司 | The method of the video monitoring equipment synchronously control of different model |
CN111083431B (en) * | 2018-10-18 | 2021-05-04 | 北京小米松果电子有限公司 | Method, device, medium and electronic device for adjusting image acquisition time |
WO2022252854A1 (en) * | 2021-05-31 | 2022-12-08 | 华为技术有限公司 | Synchronization method, electronic device, computer readable storage medium, and program product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1463549A (en) * | 2001-06-15 | 2003-12-24 | 成津C&C株式会社 | Method and appts. for high-definition multi-screen display |
CN101453662A (en) * | 2007-12-03 | 2009-06-10 | 华为技术有限公司 | Stereo video communication terminal, system and method |
CN102915650A (en) * | 2012-09-21 | 2013-02-06 | 交通运输部科学研究院 | Convergent photography-based ship navigation safety early-warning equipment for ships in water area of bridges |
CN103051866A (en) * | 2011-10-12 | 2013-04-17 | 中国电信股份有限公司 | Network 3D (three dimensional) video monitoring system and method and video processing platform |
-
2015
- 2015-12-08 CN CN201510897533.9A patent/CN105491288B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1463549A (en) * | 2001-06-15 | 2003-12-24 | 成津C&C株式会社 | Method and appts. for high-definition multi-screen display |
CN101453662A (en) * | 2007-12-03 | 2009-06-10 | 华为技术有限公司 | Stereo video communication terminal, system and method |
CN103051866A (en) * | 2011-10-12 | 2013-04-17 | 中国电信股份有限公司 | Network 3D (three dimensional) video monitoring system and method and video processing platform |
CN102915650A (en) * | 2012-09-21 | 2013-02-06 | 交通运输部科学研究院 | Convergent photography-based ship navigation safety early-warning equipment for ships in water area of bridges |
Also Published As
Publication number | Publication date |
---|---|
CN105491288A (en) | 2016-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105491288B (en) | Image adjusting method, apparatus and system | |
CN101079246B (en) | Image processing apparatus | |
CN103167293B (en) | Display system | |
CN103797790B (en) | Mobile image capturing devices, information processing system, messaging device and image processing method | |
CA2134277C (en) | Video format conversions systems -- | |
US20110096228A1 (en) | Method of adapting video images to small screen sizes | |
CN103828381B (en) | adaptive PID controller for audio/video clock recovery | |
CN105049918A (en) | Method for separating local recorded video and network live video | |
US20160050357A1 (en) | Imaging device shooting a common subject in synchronization with other imaging devices | |
JPWO2020039992A1 (en) | Image processing equipment and image processing system | |
CN103814577A (en) | Sending device, sending method, receiving device, receiving method and sending/receiving system | |
CN107277295A (en) | Audio video synchronization processing unit and method | |
US20020071037A1 (en) | Method and device for data transmission | |
CN105376658A (en) | Device and method for generating video file overview | |
CN111667826A (en) | Radio and television monitor with AI voice control function and AI voice control method | |
CN102036090A (en) | Television signal conversion device for digital television terminal | |
CN105430297B (en) | The automatic control system that more video formats are changed to IIDC protocol videos form | |
KR20100007628A (en) | Image sensor interface apparatus and digital photographing apparatus comprising the same | |
CN109495778A (en) | film editing method, device and system | |
CN109729296B (en) | Signal output device, display device, and wireless transmission method for HDMI signal | |
CN106507088A (en) | Receive the 3 D image display method of upper and lower and left-right format piece source signal | |
CN1853413B (en) | Display synchronization signal generator in digital broadcast receiver | |
US20110242411A1 (en) | Method And System For Minimizing Signals For Video Data Communication | |
CN103260044B (en) | Three dimensional super-high-definition signal processing method and device | |
JP2013070129A (en) | Image information extraction apparatus, image transmission apparatus using the same, image receiving apparatus, and image transmission 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |