Be used to generate the acquisition system of three-dimensional video-frequency
[technical field]
The utility model relates to a kind of video acquisition system, specifically relates to a kind of acquisition system that is used to generate three-dimensional video-frequency.
[background technology]
When eye is observed object, because left and right sides eyes exist sighting distance poor, therefore left eye and right eye are seen is two similar but differentiated images, left eye is seen is the image that the position than reality takes over, what right eye was seen is the image of taking back than the position of reality, these two similar but differentiated images just can produce stereoeffect in human brain.Therefore, relend and help display device, just can see the effect of solid as long as produce two similar but differentiated images.
Stereo visual system is dummy robot's a important component part, is a research focus in recent years.How the image information of synchronous acquisition robot " right and left eyes " is the precondition that realizes the robot humanoid vision.Video acquisition technology at present commonly used mainly contains following 3 kinds: based on the video acquisition of VFW (Video forWindows) technology, based on the video acquisition of DirectShow technology, provide SDK the video acquisition technology of (Software Development Kit) based on video frequency collection card manufacturer.
Present video frequency collection card is that video acquisition and compression are carried out synchronously, that is to say that video flowing just is compressed into the MPG formatted file when entering computer, this process just requires computer that high-speed CPU, enough big internal memory, hard disk at a high speed, unobstructed system bus are arranged, and this just disposes higher requirement to computer.And video acquisition is stuck in software development process also being subjected to the restriction of the SDK that video frequency collection card manufacturer provides, the restriction of the data channel that hardware connection aspect also is subjected to capture card and is provided, and it is convenient to use underaction.
Utilize the DirectShow technology, can pass through 2 USB (Universal Serial Bus, USB) the interface digital camera carries out video acquisition, utilizes the Windows multi-thread programming to read this image data synchronously again, generates stereo-picture or video.This method realizes simple, need not to join in addition video frequency collection card, can build many audio video synchronization acquisition system by the common USB camera.But difficulty is adjusted in the locus of camera, because the three-dimensional video-frequency collection need be simulated the human eye visual field, levelness etc. is had relatively high expectations, and it is relatively poor therefore to gather the dynamic solid video effect.
[summary of the invention]
The purpose of this utility model provides a kind of dimensional video collecting system that has the camera adjusting device, by this adjusting device levelness, the anglec of rotation, the spacing of camera can be set easily, makes this acquisition system can simulate the human eye visual field exactly.
Another purpose of the present utility model provides a kind of building-up process of simplifying stereo-picture or video, saves the acquisition system that is used to generate three-dimensional video-frequency of cost.
Realize that described purpose technical scheme is: a kind of acquisition system that generates three-dimensional video-frequency comprises two same cameras, be used for receiving the processor of camera image or video, this processor also comprises stereo-picture or video synthesizer, this synthesizer is merged into two width of cloth images that two cameras obtain simultaneously piece image and is shown as stereo-picture by three-dimensional display, and described two cameras are installed on the adjusting device that is used for adjusting between the camera apart from the angle i of d and each camera.
The utility model makes video acquisition system can simulate the visual scene of human eye more realistically by the adjustment of camera adjusting device, image or the video information that synchronous acquisition is arrived by image or video synthesizer again, generate outstanding stereo-picture or the video of dynamic effect, can make up the platform of a robot vision research easily.
First kind of execution mode as adjusting device of the present utility model, described processor is a computer, and distance (d) is to determine and adjusted by adjusting device according to the focusing target range (h) of camera between the angle (i) of described camera (A, B) and the camera (A, B).
Second kind of execution mode as adjusting device of the present utility model, described processor comprises a servo closed-loop system, and distance (d) is definite according to the focusing target range (h) of camera by the servo closed-loop system of processor between the angle (i) of described camera (A, B) and the camera (A, B).
Described synthesizer is integrated into piece image with the even column view data of its wherein camera collection that obtains with the odd column view data of getting another camera collection.
The described acquisition system that is used to generate three-dimensional video-frequency also comprises the three-dimensional display that is used for stereoscopically displaying images or video of connection processing device.
Make first kind of execution mode of three-dimensional display of the present utility model, described three-dimensional display comprises display screen and sticks on the column grating that is used for three-dimensional imaging of display screen surface.Make second kind of execution mode of three-dimensional display of the present utility model, described three-dimensional display adopts the liquid crystal grating display.
Specific to first kind of execution mode of adjusting device, described adjusting device comprises the first camera support and the second camera support and camera first rotating shaft and second rotating shaft.
Also comprise the first scalable dial and the second scalable dial on the described first camera support and the second camera support.
Described adjusting device also comprises an object support that distance is adjustable.
Also comprise an adjustable for height object pallet up and down on the described object support.
Spacing between the described first camera support and the second camera support is by the fit adjustment of rack-and-pinion.
The utility model adopts described technical scheme, its beneficial technical effects is: the 1) acquisition system that has the three-dimensional video-frequency of camera adjusting device of the present utility model, by changing levelness, the anglec of rotation, the spacing that camera is set easily apart from the adjusting device of (d) and each camera angle (i) between the camera, make this acquisition system can simulate the human eye visual field exactly; 2) stereo-picture or the video synthesizer that is used to generate the acquisition system of three-dimensional video-frequency of the present utility model, do not need additionally to use video frequency collection card based on the Directshow technological development, synthesizer is directly gathered the image or the video data of two cameras by processor, simplify the building-up process of stereo-picture or video, saved cost.
[description of drawings]
Below by embodiment also in conjunction with the accompanying drawings, the utility model is described in further detail:
Fig. 1 is the dual camera stereo photographic device schematic diagram that the utility model is used to generate the acquisition system of three-dimensional video-frequency.
Fig. 2 is the imaging schematic diagram of the dual camera of the utility model acquisition system of being used to generate three-dimensional video-frequency.
Fig. 3 is the synthetic schematic diagram of each two field picture of three-dimensional video-frequency of the utility model acquisition system of being used to generate three-dimensional video-frequency.
[embodiment]
See also Fig. 1 and Fig. 3, the acquisition system that is used to generate three-dimensional video-frequency of the present utility model comprises two same camera A and B and is used for receiving the processor of camera image or video (figure does not show).
Described processor comprises stereo-picture or video synthesizer.Two width of cloth images that described stereo-picture or video synthesizer obtain two camera A and B simultaneously are merged into piece image and show that by three-dimensional display (figure does not show) becomes stereo-picture.
Please be installed on the adjusting device that is used for adjusting between the camera apart from the angle i of d and each camera with reference to figure 2, two camera A and B in the lump.
Relation apart from d between the angle i of camera and the camera sees also Fig. 2, and the angle i of camera is definite according to the focusing target C distance h of camera, wherein i=arctg (h/ (d/2)).As first kind of execution mode of the utility model adjusting device, focusing on target C distance h can change by moving of object support 40.
As second kind of execution mode of the utility model adjusting device, described processor also comprises a servo closed-loop system (figure does not show).Determine according to focusing on target C distance h by servo closed-loop system apart from d between the angle i of described camera and the camera.How described execution mode according to the principle of robot humanoid vision, simulates the image information of synchronous acquisition robot " right and left eyes ", generates three-dimensional video-frequency, has solved the problem of robot " binocular " synchronous acquisition data preferably, and dynamic video is effective.Realize that simply cost is low, need not equipment such as video frequency collection card, and has good secondary development and upgrading ability.
The described acquisition system that is used to generate three-dimensional video-frequency also comprises the three-dimensional display that is used for stereoscopically displaying images or video of connection processing device, and described three-dimensional display adopts the liquid crystal grating display.
Below introduce the concrete structure of first kind of execution mode of the utility model adjusting device.
Described adjusting device comprises the first camera support 10 and the second camera support 12 and camera first rotating shaft 22 and second rotating shaft 24.
Also comprise the first scalable dial 32 and the second scalable dial 33 on the described first camera support 10 and the second camera support 12.
Described adjusting device also comprises an object support 40 that distance is adjustable.
Also comprise an adjustable for height object pallet 50 up and down on the described object support (40).
Spacing between the described first camera support 10 and the second camera support 12 is by the fit adjustment of rack-and-pinion.
Adjust the spacing d of the first camera support 10 and the second camera support 12, make that distance is arranged between the 60-70mm between the sensitive film of win the camera A and the second camera B, in the present embodiment, described spacing d adjusts and can use gear ﹠ rack structure to realize.Rotate camera A and the B that first rotating shaft 22 and second rotating shaft 24 can drive on the first camera support 10 and the second camera support 12 rotates thereupon, change the focusing angle i of camera A and B respectively, also can read simultaneously the focusing angle i value of camera A and B from the first scalable dial 32 and the second scalable dial 33.
During use, set two cameras and focus on angle i and height, the axle center of win the camera A and the second camera B is remained on the same horizontal line, and aim at the object on the subject pallet 50 respectively.Subject is placed on the adjustable for height object pallet 50, and the object pallet is installed on the object support 40.Like this, two camera A and B just have certain parallax for the image that target object C shoots.
Described synthesizer is integrated into piece image with the even column view data of its wherein camera collection that obtains and the odd column view data of another camera collection.
For the described synthesizer of stereo display synthetic image or video, the described acquisition system that is used to generate three-dimensional video-frequency also comprises the three-dimensional display that is used for stereoscopically displaying images or video of connection processing device.As first kind of execution mode of the utility model three-dimensional display, described three-dimensional display comprises display screen and sticks on the column grating that is used for three-dimensional imaging of display screen surface.
As second kind of execution mode of the utility model three-dimensional display, described three-dimensional display adopts the liquid crystal grating display.
Described synthesizer can be when gathering, and the picture of two camera collections is carried out preview, and the user selects to carry out the synthetic of three-dimensional static images.The concrete course of work of described synthesizer is as follows: according to the vertical range h of relative two cameras of target C, regulate the focusing angle i of two camera A and B; The picture of two camera A and the instantaneous collection of B about processor real-time obtains; Synthesizer is showing two width of cloth picture compound stereoscopic pictures and is preserving on processor then on the three-dimensional display.
Specifically, for the view data that the first camera A collects, get the image information L0 of its even column, L2, L4... get the image information L1 of its odd column, L3, L5... for the view data that the second camera B collects.The data of the image that synthesizer will be gathered from two width of cloth pictures are according to L0, L1, L2, L3.。。Merge, generate new picture.In the present embodiment, but the picture file of described picture file BMP form or other photo-document form.
See also Fig. 3, synthesizer will generate the dynamic solid video by synthesizer according to the method that generates the static disparity sheet.The dynamic solid video that the user can select to synthesize the back generation is preserved.
The process of the collection of synthesizer of the present utility model and generation three-dimensional video-frequency is as follows: synthesizer is regulated the focusing angle i of two camera A, B according to the vertical range h of relative two camera A, B of target C; Two frame of video (piece image in the video flowing) Vl and Vr that camera A, B gather about synthesizer obtains respectively in real time; Described synthesizer is showing 2 two field picture V1 and the synthetic new image sequence of Vr and is preserving on processor on the three-dimensional display.
Specifically, synthesizer is got its even column image information L0, L2, L4...... for the view data that the first camera A collects; For the view data that the second camera B collects, get its odd column image information L1, L3, L5......; Synthesizer is described 2 two field pictures, and the data of image are according to L0, L1, and L2, L3...... merges, and generates new image.In the present embodiment, described video file is the video file of AVI form.
The utility model not only is applied to robot stereo vision's research field, more can be applied to tridimensional advertisement, 3-D cartoon, modern medical service, fields such as industrial processes.Measuring or field of detecting,, can accurately calculate the 3D surface of the object of surveying by obtaining stereo-picture.
Above content be in conjunction with concrete preferred implementation to further describing that the utility model is done, can not assert that concrete enforcement of the present utility model is confined to these explanations.For the utility model person of an ordinary skill in the technical field, under the prerequisite that does not break away from the utility model design, can also make some simple deduction or replace, all should be considered as belonging to protection range of the present utility model.