CN101729869A - Embedded camera video acquisition and network transmission module and working method thereof - Google Patents
Embedded camera video acquisition and network transmission module and working method thereof Download PDFInfo
- Publication number
- CN101729869A CN101729869A CN200910256031A CN200910256031A CN101729869A CN 101729869 A CN101729869 A CN 101729869A CN 200910256031 A CN200910256031 A CN 200910256031A CN 200910256031 A CN200910256031 A CN 200910256031A CN 101729869 A CN101729869 A CN 101729869A
- Authority
- CN
- China
- Prior art keywords
- video
- camera
- network transmission
- initialization
- embedded
- 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.)
- Granted
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
An embedded camera video acquisition and network transmission module and a working method thereof belong to the technical field of video network transmission. The module comprises hardware and software, wherein the hardware comprises a USB camera and an embedded development platform, and the software are written into the embedded development platform. The embedded development platform is a development board provided with an S3C2410 chip and an LINUX operating system. The working method comprises video data acquisition by the camera, network transmission and adjustment of image brightness and contrast. The method can control the USB camera to acquire video images on the S3C2410 embedded development platform, play the acquired video images in a local QT-compiled visualized window by adopting QT video display technology, and adjust the formats of the acquired images so that the data amount of the images is furthest compressed on the premise of ensuring the quality of the images and the compressed video data are transmitted by the network through the network programming technology under linux; and the method can adjust the brightness and the contrast of the acquired images.
Description
Technical field
The present invention relates to a kind of embedded camera video acquisition and network transmission module and method of work thereof, belong to the video network transmission technique field.
Background technology
Flourish along with network, camera video show and network transmission technology has obtained application more and more widely in daily life, in producing.Camera video demonstration and network transmission technology generally comprise the processes such as Network Transmission of video acquisition, video demonstration and the video of camera.This technology can with camera collection to video data show in real time, also can compress according to specific compression standard, form sequence of frames of video.In order to adapt to different transmission networks, a big frame of video can be split into several packets, adds respectively and goes up corresponding control information, sends to client by network.
In addition, domestic embedded technology development also is in the starting stage, and the exploitation that is applied to every technology of embedded development platform is also made slow progress, and camera video shows and network transmission technology is a blank in the realization of S3C2440 embedded development platform.
Summary of the invention
At the defective of prior art, the invention provides a kind of embedded camera video acquisition and network transmission module and method of work thereof.
A kind of embedded camera video acquisition and network transmission module, module comprise hardware and software two parts, and hardware is a USB camera and embedded development platform, and software writes embedded development platform.
Described embedded development platform is the development board that has the S3C2410 chip and LINUX operating system is housed.
The method of work of a kind of embedded camera video acquisition and network transmission module comprises camera collection video data, Network Transmission and adjusting image brightness and contrast, it is characterized in that the implementation method step is as follows:
1) is provided with by the contrast of images acquired and luminance parameter;
2) open the parameters of camera and initialization images acquired;
3) create also initialization web socket;
4) parameter of initialization video flowing demonstration;
The parameter of 5) initialization video stream compression;
6) being provided with also, the initialization video sends buffering area;
7) from camera, read a frame raw image data;
8) show raw image data;
9) raw image data is compressed;
10) set up the UDP network and connect, the raw image data that compresses is sent to purpose IP address by the UDP network;
11) according to by the definition requirement of images acquired, adjust the brightness and contrast of images acquired in real time.
Step 2) flow process of the described parameters of opening camera and initialization images acquired is as follows:
1) checks whether the camera node is arranged;
2) memory-mapped;
3) check whether the parameter that is provided with allows within the scope of value at camera;
4) image brightness is set;
5) picture contrast is set;
6) resolution of image is set;
7) data format of image is set;
8) the image acquisition passage is set.
The flow process of described step 3) establishment and initialization web socket is as follows:
1) creates the local network socket;
2) protocol suite, port, the IP address of local socket are set;
3) create the purpose web socket;
4) protocol suite, port, the TP address of purpose socket are set;
5) bound socket.
The flow process of the parameter that described step 4) initialization video flowing shows is as follows:
1) display depth of display is set;
2) resolution of image is set;
3) speed of playing image is set.
The flow process of the parameter of described step 5) initialization video stream compression is as follows:
1) compression standard of video is set;
2) frame per second of video is set;
3) resolution of video is set.
Described step 8) shows that the flow process of raw image data is as follows:
1) reads a frame image data;
2) initialization QImage class and QRgb class;
3) value of each pixel in every frame video data is converted to pixel point value in the QRgb class;
4) the pixel point value in each QRgb class is become a two field picture of QImage class according to original sequence arrangement;
5) initialization QPainter class;
6) drawImage interface function and the QImage class example that calls the QPainter class demonstrates image.
Described step 10) is set up the UDP network and is connected, and the view data of compression is as follows by the flow process that the UDP network sends to purpose IP address:
1) view data is divided into UDP bag data by regular length;
2) for wrapping data, each UDP adds control information, i.e. the RTP head;
3) the UDP bag is mail to destination address by web socket.
The present invention can realize control USB camera collection video image at the S3C2410 embedded development platform, and by adopting the QT video display technology, both the video image of gathering can be play in the visualization window that the QT of this locality writes, also can adjust the form of images acquired, make image maximum compression data volume under the prerequisite that guarantees picture quality, the rear video data will be compressed by Network Transmission by the network programming technology under the linux, and the brightness and contrast of images acquired can be regulated.
Description of drawings
Fig. 1 is a general structure block diagram of the present invention.
Fig. 2 is the flow chart of video acquisition.
The flow chart that Fig. 3 shows for video.
Fig. 4 is the flow chart that video compression and Network Transmission are engaged in.
Wherein, 1, camera, 2, development board, 3, network.
Specific embodiments:
The present invention is described in further detail below in conjunction with drawings and Examples.
Embodiment:
A kind of embedded camera video acquisition and network transmission module, module comprise hardware and software two parts, and hardware is a USB camera 1 and embedded development platform, and software writes embedded development platform.
Described embedded development platform is the development board 2 that has the S3C2410 chip and LINUX operating system is housed.
The method of work of a kind of embedded camera video acquisition and network transmission module comprises camera collection video data, Network Transmission and adjusting image brightness and contrast, it is characterized in that the implementation method step is as follows:
10) be provided with by the contrast of images acquired and luminance parameter;
11) open the parameters of camera and initialization images acquired;
12) create also initialization web socket;
13) parameter of initialization video flowing demonstration;
The parameter of 14) initialization video stream compression;
15) being provided with also, the initialization video sends buffering area;
16) from camera, read a frame raw image data;
17) show raw image data;
18) raw image data is compressed;
10) set up the UDP network and connect, the raw image data that compresses is sent to purpose IP address by the UDP network;
11) according to by the definition requirement of images acquired, adjust the brightness and contrast of images acquired in real time.
Step 2) flow process of the described parameters of opening camera and initialization images acquired is as follows:
9) check whether the camera node is arranged;
10) memory-mapped;
11) check whether the parameter that is provided with allows within the scope of value at camera;
12) image brightness is set;
13) picture contrast is set;
14) resolution of image is set;
15) data format of image is set;
16) the image acquisition passage is set.
The flow process of described step 3) establishment and initialization web socket is as follows:
6) create the local network socket;
7) protocol suite, port, the IP address of local socket are set;
8) create the purpose web socket;
9) protocol suite, port, the IP address of purpose socket are set;
10) bound socket.
The flow process of the parameter that described step 4) initialization video flowing shows is as follows:
4) display depth of display is set;
5) resolution of image is set;
6) speed of playing image is set.
The flow process of the parameter of described step 5) initialization video stream compression is as follows:
4) compression standard of video is set;
5) frame per second of video is set;
6) resolution of video is set.
Described step 8) shows that the flow process of raw image data is as follows:
6) read a frame image data;
7) initialization QImage class and QRgb class;
8) value of each pixel in every frame video data is converted to pixel point value in the QRgb class;
9) the pixel point value in each QRgb class is become a two field picture of QImage class according to original sequence arrangement;
10) initialization QPainter class;
6) drawImage interface function and the QImage class example that calls the QPainter class demonstrates image.
Described step 10) is set up the UDP network and is connected, and the view data of compression is as follows by the flow process that the UDP network sends to purpose IP address:
1) view data is divided into UDP bag data by regular length;
2) for wrapping data, each UDP adds control information, i.e. the RTP head;
3) the UDP bag is mail to destination address by web socket.
Claims (9)
1. embedded camera video acquisition and network transmission module is characterized in that module comprises hardware and software two parts, and hardware is a USB camera and embedded development platform, and software writes embedded development platform.
2. a kind of embedded camera video acquisition as claimed in claim 1 and network transmission module is characterized in that, described embedded development platform is the development board that has the S3C2410 chip and LINUX operating system is housed.
3. the method for work of described a kind of embedded camera video acquisition of claim 1 and network transmission module comprises camera collection video data, Network Transmission and adjusting image brightness and contrast, it is characterized in that the implementation method step is as follows:
1) is provided with by the contrast of images acquired and luminance parameter;
2) open the parameters of camera and initialization images acquired;
3) create also initialization web socket;
4) parameter of initialization video flowing demonstration;
The parameter of 5) initialization video stream compression;
6) being provided with also, the initialization video sends buffering area;
7) from camera, read a frame raw image data;
8) show raw image data;
9) raw image data is compressed;
10) set up the UDP network and connect, the raw image data that compresses is sent to purpose IP address by the UDP network;
11) according to by the definition requirement of images acquired, adjust the brightness and contrast of images acquired in real time.
4. the method for work of a kind of embedded camera video acquisition as claimed in claim 3 and network transmission module is characterized in that step 2) flow process of the described parameters of opening camera and initialization images acquired is as follows:
1) checks whether the camera node is arranged;
2) memory-mapped;
3) check whether the parameter that is provided with allows within the scope of value at camera;
4) image brightness is set;
5) picture contrast is set;
6) resolution of image is set;
7) data format of image is set;
8) the image acquisition passage is set.
5. the method for work of a kind of embedded camera video acquisition as claimed in claim 3 and network transmission module is characterized in that, the flow process of described step 3) establishment and initialization web socket is as follows:
1) creates the local network socket;
2) protocol suite, port, the IP address of local socket are set;
3) create the purpose web socket;
4) protocol suite, port, the IP address of purpose socket are set;
5) bound socket.
6. the method for work of a kind of embedded camera video acquisition as claimed in claim 3 and network transmission module is characterized in that, the flow process of the parameter that described step 4) initialization video flowing shows is as follows:
1) display depth of display is set;
2) resolution of image is set;
3) speed of playing image is set.
7. the method for work of a kind of embedded camera video acquisition as claimed in claim 3 and network transmission module is characterized in that, the flow process of the parameter of described step 5) initialization video stream compression is as follows:
1) compression standard of video is set;
2) frame per second of video is set;
3) resolution of video is set.
8. the method for work of a kind of embedded camera video acquisition as claimed in claim 3 and network transmission module is characterized in that, described step 8) shows that the flow process of raw image data is as follows:
1) reads a frame image data;
2) initialization QImage class and QRgb class;
3) value of each pixel in every frame video data is converted to pixel point value in the QRgb class;
4) the pixel point value in each QRgb class is become a two field picture of QImage class according to original sequence arrangement;
5) initialization QPainter class;
6) drawImage interface function and the QImage class example that calls the QPainter class demonstrates image.
9. the method for work of a kind of embedded camera video acquisition as claimed in claim 3 and network transmission module, it is characterized in that, described step 10) is set up the UDP network and is connected, and the view data of compression is as follows by the flow process that the UDP network sends to purpose IP address:
1) view data is divided into UDP bag data by regular length;
2) for wrapping data, each UDP adds control information, i.e. the RTP head;
3) the UDP bag is mail to destination address by web socket.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102560312A CN101729869B (en) | 2009-12-21 | 2009-12-21 | Embedded camera video acquisition and network transmission module and working method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102560312A CN101729869B (en) | 2009-12-21 | 2009-12-21 | Embedded camera video acquisition and network transmission module and working method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101729869A true CN101729869A (en) | 2010-06-09 |
CN101729869B CN101729869B (en) | 2011-11-09 |
Family
ID=42449947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009102560312A Expired - Fee Related CN101729869B (en) | 2009-12-21 | 2009-12-21 | Embedded camera video acquisition and network transmission module and working method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101729869B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546669A (en) * | 2012-07-13 | 2014-01-29 | 唐正宗 | Network camera device and setting method thereof |
CN108206913A (en) * | 2017-07-17 | 2018-06-26 | 北京市商汤科技开发有限公司 | A kind of image-pickup method, device, embedded system and storage medium |
CN113438241A (en) * | 2021-06-25 | 2021-09-24 | 佳缘科技股份有限公司 | Data transmission method and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1556609A (en) * | 2004-01-09 | 2004-12-22 | 东南大学 | Mobile robot network control platform device |
CN1286321C (en) * | 2004-06-11 | 2006-11-22 | 上海大学 | MPEG-4 image transmitting method and system based on MCF5272 platform |
CN1313976C (en) * | 2005-01-26 | 2007-05-02 | 上海大学 | JPEG 2000 image coding and transmitting method and system based on embedded platform |
CN101242524B (en) * | 2008-03-10 | 2010-06-02 | 杭州普诺科技有限公司 | Digital wireless visual doorbell built-in control system |
-
2009
- 2009-12-21 CN CN2009102560312A patent/CN101729869B/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546669A (en) * | 2012-07-13 | 2014-01-29 | 唐正宗 | Network camera device and setting method thereof |
CN108206913A (en) * | 2017-07-17 | 2018-06-26 | 北京市商汤科技开发有限公司 | A kind of image-pickup method, device, embedded system and storage medium |
CN108206913B (en) * | 2017-07-17 | 2021-03-09 | 北京市商汤科技开发有限公司 | Image acquisition method, image acquisition device, embedded system and storage medium |
CN113438241A (en) * | 2021-06-25 | 2021-09-24 | 佳缘科技股份有限公司 | Data transmission method and system |
CN113438241B (en) * | 2021-06-25 | 2024-02-13 | 佳缘科技股份有限公司 | Data transmission method and system |
Also Published As
Publication number | Publication date |
---|---|
CN101729869B (en) | 2011-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104917990B (en) | Video frame rate compensation is carried out by adjusting vertical blanking | |
DE112006003371B4 (en) | Display system and method | |
CN104978929B (en) | LED display pointwise correction method, correction system architecture and controller | |
TWI803639B (en) | Systems and methods for driving a display | |
KR101698951B1 (en) | System, apparatus and method for sharing a screen having multiple visual components | |
EP1385336A3 (en) | Display system, network interactive display device, terminal, and control program | |
DE112006003342T5 (en) | Wireless display system and method therefor | |
CN101729869B (en) | Embedded camera video acquisition and network transmission module and working method thereof | |
CN102611869A (en) | Output-oriented network transmission technique of multi-screen splicing system | |
US20230162324A1 (en) | Projection data processing method and apparatus | |
CN104360511B (en) | MIPI module test method and test system realizing two modes | |
CN102541555A (en) | Method for remotely smoothly playing desktop video in API (application programming interface) interception mode | |
CN105208246A (en) | Display screen parameter adaptive type display screen assembly and control method | |
CN1949872A (en) | Method and system for projecting dynamic static hybrid picture | |
CN110463212A (en) | The low latency pipeline being packaged for media to Ethernet frame | |
EP1727367A3 (en) | Electronic apparatus, image control method and image control program | |
CN106603537A (en) | System and method for marking video signal source of mobile intelligent terminal | |
CN109495707A (en) | A kind of high-speed video acquiring and transmission system and method | |
CN103838158A (en) | LED full-color display screen system controlled through smart phone | |
CN102143144B (en) | Communication module, remote monitoring system and remote monitoring terminal | |
CN1210947C (en) | Cemera device and electronic device having the cemera device | |
US7447364B2 (en) | Video image capturing and displaying method and system applying same | |
CN101325712A (en) | Portable terminal for real time acquiring and displaying image based on ARM | |
CN1862373A (en) | Camera | |
CN107707829A (en) | A kind of method that multiplex roles intelligence SDI video switching boxs are realized based on FPGA |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111109 Termination date: 20181221 |
|
CF01 | Termination of patent right due to non-payment of annual fee |