camera

A video input device
open 2 entries with the same name
Collection
zero Useful+1
zero
Camera (CAMERA or WEBCAM) is also called computer camera Computer eye , electronic eye, etc., is a kind of video input device , widely used in video conferences Telemedicine and Real time monitoring And so on.
Ordinary people can also talk and communicate with each other through the camera on the network with video and voice. In addition, people can also use it for various popular Digital video , audio and video processing, etc.
Chinese name
camera
Foreign name
Camera/Webcam
Alias
Computer camera Computer eye
Features
Photography, video
Interface type
Serial port Parallel port USB IEEE1394
image sensor
CCD , CMOS
Type
Digital, analog
Material
Organic glass, quartz

classification

Announce
edit
Cameras can be divided into digital cameras and analog cameras. The digital camera can Video capture Equipment generated Analog video signal convert to digital signal And then store it in the computer. Analog camera capture video signal Must go through specific Video capture card take analog signal It can be converted to digital mode and compressed before being used on a computer. The digital camera can directly capture the image, and then Parallel port perhaps USB The interface is transmitted to the computer. The cameras in the computer market are mainly digital cameras, and new digital cameras are used Data transmission interface USB digital cameras are the main products in the market. In addition, there is another kind of Video capture card It is used together, but it is not the mainstream. because personal computer The overall cost of analog cameras is high and cannot meet the requirements of BSV LCD splicing screen USB interface transmission speed It is much faster than serial port and parallel port, so it is a digital camera with USB interface in the market. The analog camera can be used together with the video capture card or USB video capture card, which is convenient to connect with the computer. The typical application is general video monitoring. Clean area Camera, embedded special camera in clean area is for clean area Clean room Important equipment Key positions Real time monitoring A dedicated camera for. The camera is flat panel, embedded Color steel plate Installation, zero Sanitary corner , easy to clean, easy to install, can be quickly multi-point control, compatible with mainstream video systems.
camera (webcam) generally has video camera/transmission and still image capture basic function After the image is collected by the lens, the photo sensitive component circuit and control component in the camera process the image and convert it into digital signals that can be recognized by the computer, and then Parallel port Or the image is restored by the software after the USB connection is input to the computer.

Structural components

Announce
edit
We can list the main structures and components of the camera from its daily working principle.

camera lens

Lens structure, consisting of several lenses, including plastic lens or glass lens.

image sensor

It can be divided into two categories
CCD (charge-coupled device): Charge coupled device
CMOS (complementary metal oxide semiconductor): Complementary metal oxide semiconductor

Power Supply

Two types are required inside the camera working voltage : 3.3V and 2.5V, the latest process chip can reach 1.8V.

Remote control

Announce
edit

Normal Edition

1. Remote Surveillance camera It is a remote monitoring camera, main and sub Normal Edition , enhanced version and outdoor version, which can rotate 320 degrees from left to right and 60 degrees from top to bottom to monitor, take pictures and record videos, and send photos and videos to the mailbox or FTP server. The camera has Mobile detection Function, can set sending email warning, etc. Network Man Remote Surveillance camera The most fundamental difference with traditional cameras is that there is no need for wiring and large-scale hardware assistance. With only one network cable, you can be anywhere in the world Remote monitoring Go where you want to monitor.
2. The ordinary version of the webman remote monitoring camera is a combination of traditional cameras and network technique As long as the new generation camera Webman camera Plug in the network cable (without a computer), it can send the image to the other end of the earth through the network. sure Remote control camera Rotate 320 degrees from left to right and 60 degrees from top to bottom to monitor, record the monitoring picture and send it to the mailbox or FTP server. If you install a webcam in your company or warehouse, shop or home, you can monitor remotely as long as you can access the Internet, even if you go to another place. Ordinary companies create a video Control platform There are tens of thousands or hundreds of thousands of cameras that can't be done, and they can only be controlled on a fixed monitoring platform (you can't control them at home or in other places). To buy a webcam, it is simple to install (just plug it into the network cable), and there is no need to do port mapping, Deployment costs Low cost, remote monitoring can be realized.

Enhanced Edition

1. The enhanced version of the webman remote monitoring camera: Compared with the ordinary version, the enhanced version of the webman remote monitoring camera has more powerful performance and can easily achieve the low quality of high-definition images network bandwidth Transmission, the image is clearer than the ordinary camera, and new functions such as night vision, audio transmission, dynamic alarm, alarm time zone can be set, and abnormality can be realized Automatic recovery , automatic connection after network interruption and other new functions.
2. Outdoor version: compared with the first two versions, the outdoor version of the webman remote monitoring camera has superior performance because of its powerful outdoor video monitoring function. Unlike the enhanced version, it uses professional CCD Photosensitive chip (420 lines), hemisphere protection cover Waterproof and high temperature resistant, strong light and infrared night vision suppression; It can adapt to harsh outdoor environment and support Wireless routing It is widely used in wilderness areas, taboo areas and dangerous areas, such as Construction site , residential villas, factories, coffers, construction site Etc.

working principle

Announce
edit
The working principle of the camera is roughly: the scene is generated through the lens optical image Project to image sensor On the surface, then turn to electrical signal , via A/D Analog-to-digital conversion )Change to digital image Signal, then send to Digital signal processing chip (DSP), and then pass USB interface It is transferred to the computer for processing, and the image can be seen through the display.

Technical indicators

Announce
edit

resolving power

Resolution is used to measure bitmap A parameter of the amount of data in the image, usually expressed as dpi (dot per inch). In brief, the resolution of the camera refers to the ability of the camera to analyze images, that is, the Image sensor Of Number of pixels Highest resolution It refers to the size of the camera's ability to distinguish the highest image, that is, the highest number of pixels of the camera. The resolution of 300000 pixel CMOS is 640 × 480 (307200), and the resolution of 500000 pixel CMOS is 800 × 600 (480000). The updated camera is called 720p (1280 × 720921600 (1 million) pixels), 1080p (1920 × 10802073600 (2 million) pixels), and even 4K (four times the area of 1080p, 8 million pixels), 8K (eight times the area of 1080p, 16 million pixels), etc. The two numbers of resolution represent the unit of points occupied by a picture in length and width Aspect ratio Usually 4:3 or 16:9.
In practical application, if the camera is used for Online chat Or video conference, the higher the resolution, the greater the network bandwidth required. Therefore, consumers should pay attention in this regard, and should choose a product whose pixels are suitable for their own needs.
common transport protocol The comparison relationship with resolution is as follows:
SXGA (1280 × 1024), also known as 1.3 million pixels
XGA (1024 × 768), also called 800000 pixels
The latest Oni camera
SVGA (800 × 600), also called 500000 pixels
● VGA (640 × 480) is also called 300000 pixels (350000 refers to 648 × 488)
● CIF (352 × 288) is also called 100000 pixels
SIF / QVGA (320x240)
QCIF (176×144)
●QSIF/QQVGA(160×120)

Gamut

RGB 24, I420 Are the two most commonly used Image format
● RGB 24: 8 bits for each of R, G, and B colors, which can represent 256 shades at most, so that 256 * 256 * 256 colors can be reproduced.
● I420: one of YUV formats.
● Other formats include: RGB565 , RGB444, YUV4:2:2, etc.

Automatic white balance

Definition: It is required that the image in the screen should also be white when white objects are illuminated under different color temperature environments. Color temperature represents spectral composition, Color of light Low color temperature indication long wave There are many light components. When the color temperature changes Tricolor The proportion of (red, green, blue) will change, and the proportion of the three primary colors needs to be adjusted to achieve color balance, which is white balance The actual adjustment.

Image compression mode

JPEG : (joint photographic expert group) static image compression Mode. A lossy image compression method. Compression ratio The larger, image quality The worse. When Image accuracy demand moderately storage space When limited, you can choose this format. gross Digital camera All use JPEG format

Color depth

Reflecting the color Identification ability And the color expression ability of imaging A/D converter Of Quantization precision , refers to how many levels the signal is divided into. Common Color digits (bit) means. The higher the color depth, the more beautiful and moving the image color will be. Cameras on the market All have Up to 24 bits, some even 32 bits.

Image noise

It refers to the noise in the image. It shows that there are fixed color specks in the image.

visual angle

It is the same principle as human eye imaging. In short Imaging range It is related to the lens used.

Output and input interface

Serial interface (RS232/422): transmission speed Slow, 115 kbit/s.
Parallel interface (PP): the rate can reach 1Mbit/s.
Infrared interface (IrDA): the rate is also 115kbit/s, general Notebook computer This interface is available.
universal serial bus USB Plug and Play Of Interface standard , support Hot plug USB1.1 The speed can reach 12Mbit/s, and the USB2.0 can reach 480Mbit/s.
IEEE1394 (Firewire) interface (also called elink): its transmission rate can reach 100M~400Mbit/s.

Shopping Guide

Announce
edit
From the perspective of camera composition, the quality of a camera mainly depends on its hardware: lens Main control chip And Photosensitive chip

camera lens

camera
The "full glass" on the fifth floor is also the top camera lens. The lens is composed of lens structure, which is composed of several lenses, generally plastic lens or glass lens( glass )。 Generally, the lens structures used by cameras are: 1P, 2P, 1G1P, 1G2P, 2G2P, 4G, etc. The more lenses, the higher the cost; Glass lenses are more expensive than plastic. Therefore, a high-quality camera should use a glass lens, and the imaging effect is better than a plastic lens. Most camera products in the market are for cost reduction Generally, plastic lens or semi plastic and semi glass lens (i.e. 1P, 2P, 1G1P, 1G2P, etc.) will be used.

Photosensitive chip

(SENSOR) is composed of Digital camera According to different components.
CCD(Charge Coupled Device, Charge coupled element ), which are generally high-end technical components used in photography, applied technology Mature, good imaging effect, but relatively expensive.
CMOS (Complex Metal Oxide Semiconductor, metal oxide semiconductor Components) are used in products with lower image quality. Compared with CCD, it has low price and low power consumption.
CCD has the advantages of high sensitivity and low noise, Signal-to-noise ratio Large. however Production process Complex, high cost, high power consumption.
The advantages of CMOS are Integration High power consumption (less than 1/3 of CCD) and low cost. However, the noise is large and the sensitivity is low. Earlier CMOS had higher requirements for light source. In products using CMOS as photosensitive components, automatic gain reinforcement technology for image light source was used to automatically improve brightness white balance control technology Color saturation contrast ratio Edge enhancement as well as gamma Correction and other advanced image control technologies can approach the effect of CCD camera.
Under the same pixel CCD The imaging is usually very transparent and sharp, Color restoration Exposure can ensure basic accuracy. However, CMOS products tend to have general permeability, and they are sensitive to the color of real objects Restorability Weak, and the exposure is not very good.
High end cameras are basically CCD sensitive components, while mainstream products are basically CCD and CMOS In general, the effect of CCD is better. The size of CCD element is usually 1/3 inch or 1/4 inch. Under the same resolution, it is better to choose the larger element size. Users can choose according to their own preferences.
First, do not use it in a backlight environment (the same as CCD), especially do not point directly at the sun, otherwise“ magnifier The tragedy of burning ants will happen on your camera. secondly Ambient light Don't be too weak, or it will directly affect the imaging quality. There are two ways to overcome this difficulty, one is to strengthen the surrounding brightness, the other is to select the minimum requirement Illuminance For small products, some cameras can already reach 5lux.
The last thing to note is that Reasonable use Do not underestimate the zoom of the lens. With correct adjustment, the camera can also have the function of shooting chip. Among the digital cameras sold in the market, CCD and CMOS are basically equal. Subject to market conditions and market development The camera adopts CCD image sensor The main reason is the high cost of CCD image sensor.

Main control chip

The selection of DSP is determined according to the camera cost and market acceptance. DSP design Production technology It has gradually matured Technical indicators The difference is not very big, but some DSP Driver Further improvement is needed.

pixel

(Resolution) Sensor pixels , that is, how many pixels the camera is, which is one of the important indicators to measure the camera. Some products will be marked with 300000 pixels or 350000 pixels in the packaging box. In practical applications, the higher the camera's pixel, the Image quality The better, but on the other hand, the higher the pixel, the better. For the same picture, the higher the pixel, the stronger its ability to parse the image, but the amount of data it records will be much larger storage device Therefore, the current mainstream products should be adopted when selecting. Due to the camera price Computer hardware , imaging effect and other factors, the cameras on the market are basically sold at the level of 300000 pixels. Also, because the CMOS imaging effect is not ideal on high pixels, CCD cameras still dominate the market of high pixel cameras. It is worth noting that some resolution marks refer to what these products can achieve with software interpolation Resolution, although the accuracy of the obtained image can also be improved appropriately, there is still a certain gap compared with the hardware resolution.

Capture speed

Video capture capability is realized through software, so the requirements for computers are very high, namely CPU The processing ability of the image capture system should be fast enough. Secondly, the capture ability is different for different image requirements. Now the camera captures the image Maximum resolution 640 × 480, no digital camera can achieve the capture effect of 30 frames/second under this resolution, so the picture will bounce. It is more realistic that the combination of hardware and software under 320 × 240 resolution may achieve the acquisition index of standard rate, so for complete Video capture speed , is only a theoretical indicator.
In addition to the above, other factors that can be considered include Included software , camera appearance, lens sensitivity , Yes No Built-in microphone wait.

Maintenance skills

Announce
edit
1. Try to avoid pointing the camera directly at the sun, so as not to damage the image sensing device of the camera.
2. Avoid contact between camera and oil, steam, moisture, dust and other substances, and avoid contact with water direct contact
3. Do not use stimulating Cleaning agent or Organic solvent Wipe the camera.
4. Do not pull or twist the connecting wire, including Computer camera and Surveillance camera
5. Don't disassemble the camera and try to touch its internal parts unnecessarily, which may cause damage to the camera. Once damaged, the dealer will not give warranty.
6. When storing, the camera should be stored in a clean and dry place. Do not pull or twist the connecting cable, as similar actions may damage the camera.

Debugging method

Announce
edit
stay image processing Of Embedded system Medium, due to machine vision The processing and analysis of Image generation The debugging of the tool camera becomes more troublesome.

Visual Introduction

Machine vision is to use machines instead of human eyes to perceive, measure and judge the external environment. adopt Imaging device (i.e. image capture device, including CMOS and CCD) converts the captured target into image signal and transmits it to the dedicated image processing system , according to pixel distribution, brightness, color and other information, it is converted into digital signal; Image system All kinds of operations are carried out on these signals to extract the characteristics of the target, and then the field equipment action is controlled according to the judgment results. In some systems that require high real-time system actions, human reaction rate And information processing capabilities can not meet the requirements, and machine vision is easy to achieve information integration , and computer control system Combined, it can improve the system's Degree of automation

Commissioning purpose

The purpose of camera debugging in embedded system is to make the mechanical and electrical parameters of the camera meet system requirements Can produce the highest quality image data One involving hardware and software Imaging system The quality of imaging is often affected by many factors from external interference and self limitation, which will produce noise and imaging Uneven Factors from the software level are often algorithmic problems, which can be solved through theoretical analysis The factors from the hardware level need to be debugged with instruments through experiments Measurement analysis Because the hardware processes the bottom layer of the system, the quality of the hardware will directly affect the quality of the software, thus affecting the final imaging quality. Debugging the camera is to try to eliminate interference from the hardware level.

Debugging method

Because embedded system is a relatively broad concept, this paper uses HCS12 as Main control chip As an example, the debugging method is introduced.
(1) External erection circuit wiring CRT display
Lead out three leads of power, ground and signal from the analog camera to supply power to the camera, and then connect the video The signal line receive TV box video Input interface The VGA OUT of the TV box is connected to the CRT display, so that the CRT can display the digitized camera vision. This method is a full hardware level display, providing the same display effect as human vision. It can be used to install cameras and physically Parameter correction Significant help.
(2) Off chip expansion LCD liquid crystal
HCS12 series MCU Including serial peripheral interface SPI (Serial Peripheral Interface), which can realize the data transmission , and its Speed ratio adopt Serial asynchronous communication SCI )Fast way. SPI module also supports bidirectional, synchronous serial communication To realize peripheral expansion of MCU.
1. Display characters in the system Runtime Prompts system related operating parameters in character form. Each character occupies 8 * 6 point columns and requires 6 bytes of data Character display It is only necessary to write the corresponding data in the programming pointing position. Because of the LCD module It does not have a font library, so you need to first define ASC LCD display dot matrix data of table II characters, that is, a size of N * 6 bytes 2D array
2. After the video signal collected by the display image analog camera is digitized by MCU A/D, Information storage In a 40 * 70 two-dimensional array, the array can be binarized and displayed in a 48 * 84 resolution LCD module, enabling developers to observe the camera machine vision in real time.
This method is a combination of hardware and software Display method It can track and display relevant information of the camera in real time without interrupting the system operation process.
(3) Self writing serial communication Upper computer Software
The SCI module of MCU is used to send the picture data to the PC, and the upper computer uses MSCOMM control programming to read the communication data. After reading the data, you can use the powerful data processing ability and picture display ability of Windows programs to process the picture data, such as redrawing the picture according to the data, filtering and analyzing the array and displaying the filtering effect, and exporting the received array as a file computer simulation provide data sources
This method is a complete software display method, which can realize a series of processing on PC only after receiving data from MCU. It has advantages over other methods in checking the effect of graphics transformation, filtering analysis and data simulation ideas.

Comparison of advantages and disadvantages

1. CRT method. By accessing the camera video signal, CRT can display machine vision in high fidelity. However, it can only be limited to the camera parameter test and camera mechanical position adjustment, and it is powerless to deal with advanced digital signals.
2. LCD debugging method. Directly connected to singlechip Data transmission is carried out on SPI port, which can refresh display pictures in real time. This module can be directly mounted on the system display system Relevant information. However, due to the limitation of module resolution, only black and white binary values can be displayed, resulting in digital image distortion.
3. Serial port debugging method. Make full use of the powerful data processing and picture display functions of PC to realize digital pictures high-precision Pixel display and export Grayscale Value table, VC, MATLAB Simulation provision field data But between PC and MCU Data transmission speed Too slow, lacking Real time , lacking the advantages of dynamic tracking.

Automotive Applications

Announce
edit

Automotive effect

a. Rear view of passenger and freight cars
Car camera
b. Passenger car interior (safety, door, luggage compartment) monitoring
c. Special vehicles Image security record and monitoring (bank cash transport vehicles, urban management vehicles, engineering vehicles, etc.)
d. Car rear view
e. Car driving front view
f. Bus camera

On board trend

a. On board electronics The audio application has transited to the stage of audio and video multi-function application. Camera is an important part of vehicle video.
b. With the popularization of rear and front mounting of vehicle mounted displays, cameras have been driven to be widely used.
c. Popular in automobile families globalization The crowding of driving and parking provides a lot of space for camera assisted reversing.
d. Automotive user friendly design and customer demand , driving the development and application of the technology and products. Some models have started to configure camera products when leaving the factory.
e. Camera technology itself Maturity The adaptability to the vehicle environment eliminates the technical bottleneck.

Application period

a. Front decoration: designed synchronously with the car, and some models have been launched. In a period of time, the proportion is not large.
b. 4S Installation: special camera for special vehicle, and car sales Synchronization. It is necessary to launch different products according to the model to achieve the purpose of beautiful installation and convenient application.
c. Post market modification: generally, universal cameras are used, and the price is low. Domestic aftermarket Channel sales And foreign trade sales of such products and applications.

Car distribution sales

a. And rear-view mirror fully automatic Screen and other displays Bundle sales
b. And Visual reversing radar Bundled sales;
c. As independent Product sales

Reasons for restricting development

Announce
edit
According to the hardware development of IT industry“ Moore's law ”It can be seen that the digital camera also follows its development law, and it is believed that it will develop rapidly in the next few years. From the perspective of market conditions, the main factors restricting the development of cameras are as follows:
1. The camera market started late and consumers' awareness and acceptance were low, so Penetration rate Lower, Market capacity The growth rate is not fast enough, and some guidance is needed to promote market consumption.
2. The actual application of the camera is not wide enough and has certain limitations. It is still sold as a consumer product, and consumers only regard it as Video chat . Create simple personal image collection, simple Monitoring system And so on.
3. Computer hardware restrictions, such as computers Display card , display resolution USB1.1 The interface speed affects the real popularity of high pixel photography.
Practical application
It is widely used in agricultural military transportation and other aspects, and its application is very important, especially in transportation and public security.
1. Traffic management: owning cameras makes traffic management more convenient and efficient.
2. Police case solving: The camera plays a very important role in the police case solving, which can be solved through the camera on the road and the community camera.

Intrusion event

Announce
edit
Recently, according to CCTV It is reported that a large number of home cameras have been illegally invaded, making the previously private scenes of family life peeped and curious by strangers. The news immediately made many people feel frightened and angry.
In fact, from manufacturers, hackers to regulators, to "content" platforms and Disseminator The existing law has set up a strict firewall. In the process of production and sales, if the home camera is invaded due to product quality, the manufacturer and business need to bear the corresponding responsibility legal responsibility According to《 law for the protection of consumers'interests 》Business operators shall ensure that the goods or services they provide meet the requirements for personal and property safety, rights of privacy Is an important one Personal rights For home cameras, the product quality is not only limited to the image clarity and service life of the entity, but also includes the security and configuration scheme of the built-in software rationality [1]