H3-based method for driving OV5640 camera under Linux

A camera and auto-focusing technology, applied in image communication, color TV parts, TV system parts, etc., can solve the problem that there is no software driver module supporting OV5640 camera, the hardware device cannot work normally, and there is no software driver module. And other issues

Inactive Publication Date: 2017-06-13
广州趣通信息科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Without a software driver module suitable for the hardware device, the hardware device cannot work normally
At present, t

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • H3-based method for driving OV5640 camera under Linux

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be further described below in conjunction with the accompanying drawings. It should be noted that this embodiment is based on the technical solution, and provides detailed implementation and specific operation process, but the protection scope of the present invention is not limited to the present invention. Example.

[0027] like figure 1 As shown, the method of driving the OV5640 camera under Linux based on H3 includes the following steps:

[0028] S1 opens the device file / dev / videoX corresponding to the OV5640 camera.

[0029] S2 adds a read and write register sys file system interface for the OV5640 camera driver. The setting in step S2 provides a convenient interface for debugging the drive module.

[0030] S3 initializes the OV5640 camera and adds auto-focus function. The setting of step S3 increases the function of the operating system to control the camera.

[0031] S4 reads the capability value VIDIOC_QUERYCAP of the OV5640 came...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an H3-based method for driving an OV5640 camera under a Linux. The method comprises the following steps of opening an equipment file/dev/videoX corresponding to the OV5640 camera; adding a read-write register sys file system interface for driving the OV5640 camera; initializing the OV5640 camera and adding an automatic focusing function; reading an ability value of the OV5640 camera; arranging a video input source; setting an initial value of a VFE-driven default input source to be 0; setting the type and the format of a data stream; setting a VFE-supported video format to be the format of the OV5640 camera; initializing a memory-mapped allocation buffer zone; querying the size of the buffer zone; mapping the equipment buffer zone into an application space mmap; adding the buffer zone to an input queue; starting the video stream, beginning to collect data until data collection is stopped, stopping the video stream and stopping data collection; releasing memory map; and closing the equipment file/dev/videoX. The gap of a Linux operation system operated by an H3 chip in the aspect of a software drive module of supporting the OV5640 camera is filled.

Description

technical field [0001] The invention relates to a method for driving a camera, in particular to a method for driving an OV5640 camera based on an Allwinner H3 ARM processor under a Linux operating system. Background technique [0002] Allwinner H3ARM chip is a core component widely used in various embedded platforms (such as vehicle electronic equipment, on-site monitoring equipment, vending machines, advertising machines, human-computer interaction systems, etc.). These platforms must run an operating system (such as Linux, Android, etc.) in order to work properly. The operating system is the bridge between the H3 chip and the hardware devices of the system (such as cameras, monitors, etc.), and the software driver module of the hardware device plays the role of communication bridge in the operating system. Without a software driver module suitable for the hardware device, the hardware device cannot work normally. At present, the Linux operating system running on the H3 c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04N5/225H04N5/232
CPCH04N23/50H04N23/66
Inventor 杨斌
Owner 广州趣通信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products