CN105898242B - A kind of solar tracking system and method based on Image Acquisition and processing - Google Patents

A kind of solar tracking system and method based on Image Acquisition and processing Download PDF

Info

Publication number
CN105898242B
CN105898242B CN201610413856.0A CN201610413856A CN105898242B CN 105898242 B CN105898242 B CN 105898242B CN 201610413856 A CN201610413856 A CN 201610413856A CN 105898242 B CN105898242 B CN 105898242B
Authority
CN
China
Prior art keywords
machine
embeded processor
image
sun
camera
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
Application number
CN201610413856.0A
Other languages
Chinese (zh)
Other versions
CN105898242A (en
Inventor
刘卿卿
俞强
赵毛毛
王竞雄
马子涵
陆启迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University of Information Science and Technology
Original Assignee
Nanjing University of Information Science and Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanjing University of Information Science and Technology filed Critical Nanjing University of Information Science and Technology
Priority to CN201610413856.0A priority Critical patent/CN105898242B/en
Publication of CN105898242A publication Critical patent/CN105898242A/en
Application granted granted Critical
Publication of CN105898242B publication Critical patent/CN105898242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Abstract

The invention discloses a kind of solar tracking system and method based on Image Acquisition and processing, system includes camera, memory module, embeded processor, electrical level transferring chip, PC machine and servo motor, the stored module of camera is connected with embeded processor, PC machine is connected by electrical level transferring chip with embeded processor, the control terminal of servo motor is connected with embeded processor, and the output shaft of servo motor is in contact with camera;Camera collection image data are simultaneously stored in memory module, embeded processor transfers image data from memory module and is uploaded to PC machine, PC machine estimates the real-time center-of-mass coordinate of the sun according to the image data of upload, it generates motor control signal and sends embeded processor to, embeded processor drives servo motor operating according to motor control signal, and camera is driven to track sun barycenter.The present invention improves the real-time and precision of solar tracking.

Description

A kind of solar tracking system and method based on Image Acquisition and processing
Technical field
The invention belongs to image procossings and application technology, more particularly to a kind of sun based on Image Acquisition and processing with Track system and method.
Background technology
Sun tracker is the basic element of character scattered in actinometry, and accuracy directly affects scattering radiation and surveys The precision and accuracy of amount.Photo-electric sun tracing method has higher tracking essence because it has the advantages of simple structure and easy realization It spends and is widely used in the fields such as solar radiation measurement and application of solar energy.Although but traditional photo-electric tracking Instantaneous tracking accuracy is higher, but most using the tracking for being directly based upon embedded platform, is limited to embeded processor etc. The calculating speed and development difficulty of main control chip tend not to position sun barycenter precisely in real time, accumulated error, shadow easily occur Ring the stability and continuity of solar tracking.
Modern image acquisition and process is quickly grown, and various acquisition methods are quite ripe.Currently on the market big Parts of images acquisition system can be divided into two kinds, and one is based on embedded system, one is the acquisition systems based on PC.By It is limited to the development difficulty or arithmetic speed of embedded system, complicated image is needed at some based on Embedded image capturing system It is unable to get extensive use in the application of processing.The development platform supported in acquisition system based on PC is limited, and needs to design Personnel have deeper programming basis, difficulty larger.
Invention content
In order to solve the technical issues of above-mentioned background technology proposes, the present invention is intended to provide a kind of being based on Image Acquisition and place PC machine is combined by the solar tracking system and method for reason with embedded system, and by the use in image acquisition process Disconnected function improves the real-time and precision of tracking so as to quickly handle every frame image of acquisition.
In order to achieve the above technical purposes, the technical scheme is that:
A kind of solar tracking system based on Image Acquisition and processing, including camera, memory module, embedded processing Device, electrical level transferring chip, PC machine and servo motor, the stored module of described image collector are connected with embeded processor, PC Machine is connected by electrical level transferring chip with embeded processor, and the control terminal of servo motor is connected with embeded processor, servo The output shaft of motor is in contact with camera;Camera collection image data are simultaneously stored in memory module, embeded processor Image data is transferred from memory module and is uploaded to PC machine, and PC machine estimates that the real-time barycenter of the sun is sat according to the image data of upload Mark generates motor control signal further according to center-of-mass coordinate and sends embeded processor to, and embeded processor is according to motor control Signal driving servo motor operating processed, to drive camera to track sun barycenter.
Preferred embodiment based on the above-mentioned technical proposal, the model OV7725 of the camera.
Preferred embodiment based on the above-mentioned technical proposal, the model CP2102 of the electrical level transferring chip.
Preferred embodiment based on the above-mentioned technical proposal, the memory module are FIFO memory.
Preferred embodiment based on the above-mentioned technical proposal, the embeded processor use STM32 type microcontrollers.
The invention also provides the sun tracing methods based on above-mentioned solar tracking system, include the following steps:
(1)PC machine initiation parameter opens serial ports, is ready for communicating;
(2)PC machine sends handshake to embeded processor, after embeded processor receives handshake, from storage A frame image data is transferred in module is uploaded to PC machine;
(3)When PC machine receives the full stop of the frame image data, indicate that PC machine has been successfully received a frame image, this When PC machine trigger interrupt function, stop the data transmission between PC machine and embeded processor, and carried out such as in interrupt function Hypograph processing:
(a)It converts the image received to gray level image, and removes the Gaussian noise and salt-pepper noise of image;
(b)The threshold value that image binaryzation is calculated using maximum variance between clusters recycles the threshold value to carry out image binaryzation;
(c)Area threshold is preset, connected component labeling is carried out to binary image, finds out wherein area maximum and area More than the connected domain of area threshold, which is the extraction target for including solar limb information;
(d)Edge to extracting target carries out traversal interative computation, two point a and b of lie farthest away on edge is obtained, with ab Midpoint c carry out traversal interative computation again, obtain the farthest point d of range points c on edge, centered on point d, along edge respectively to Point a, b set out, and are sampled respectively to this two sections of curves in edges of regions;
(e)The sampled point obtained with two sections of curves of least square method pair is fitted, and obtains fitting circle, the center of circle of the circle The as barycenter of the sun;
(4)PC machine generates corresponding motor control signal according to the sun center-of-mass coordinate estimated, and sends to embedded Processor, embeded processor drives servo motor to operate according to motor control signal, to drive camera real-time tracking too Sun;
(5)Return to step(2), PC machine is again to embeded processor transmission handshake.
Further, in step(a)Before, it needs the image data that PC machine receives being converted into M*N from ASCII fromat Matrix, wherein M*N be preset pixel number.
Further, in step(a)In, the Gaussian noise of image is removed using wiener sef-adapting filter and the spiced salt is made an uproar Sound.
The advantageous effect brought using above-mentioned technical proposal:
(1)The present invention proposes the upper and lower computer system that PC machine is combined with embedded system, compensates for existing single The defect that PC machine or embedded system are brought is relied on, realizes and has complementary advantages, promote the precision of tracking system;
(2)The present invention uses interrupt function in image acquisition process, and image procossing and too is realized in interrupt function The estimation of positive center-of-mass coordinate improves the real-time and precision of tracking so as to quickly handle every frame image of acquisition.
Description of the drawings
Fig. 1 is present system composition frame chart.
Fig. 2 is the method for the present invention flow chart.
Specific implementation mode
Below with reference to attached drawing, technical scheme of the present invention is described in detail.
As shown in Figure 1, a kind of solar tracking system based on Image Acquisition and processing, including it is camera, memory module, embedding Enter formula processor, electrical level transferring chip, PC machine and servo motor, the stored module of camera and embeded processor phase Even, PC machine is connected by electrical level transferring chip with embeded processor, and the control terminal of servo motor is connected with embeded processor, The output shaft of servo motor is in contact with camera;Camera collection image data are simultaneously stored in memory module, embedded place Reason device transfers image data from memory module and is uploaded to PC machine, and PC machine estimates the real-time matter of the sun according to the image data of upload Heart coordinate generates motor control signal further according to center-of-mass coordinate and sends embeded processor to, and embeded processor is according to electricity Machine control signal drives servo motor operating, to drive camera to track sun barycenter.
In the present invention, host computer of the PC machine as system, and core of the embeded processor as slave computer.It is embedded Processor generally exports Transistor-Transistor Logic level signal, and the serial ports Standard General of PC machine is RS232, therefore when the two is communicated, and needs Electrical level transferring chip is accessed therebetween, realizes the conversion between Transistor-Transistor Logic level and RS232 level, in the present embodiment, level The model of conversion chip selects CP2102.
In the present embodiment, the model of camera selects OV7725.Memory module selects FIFO memory.
Embeded processor selects STM32 type microcontrollers.
The invention also provides the sun tracing methods based on above system, as shown in Fig. 2, including the following steps:
Step 1:PC machine initiation parameter opens serial ports, is ready for communicating.
Step 2:PC machine sends handshake to embeded processor, after embeded processor receives handshake, from A frame image data is transferred in memory module is uploaded to PC machine.
Step 3:When PC machine receives the full stop of the frame image data, indicate that PC machine has been successfully received a frame figure Picture, the interrupt function of PC machine triggering at this time, stops data transmission between PC machine and embeded processor, by the image collected data The matrix of M*N is converted into from ASCII fromat, wherein M*N is preset pixel number, is then carried out in interrupt function as follows Image procossing:
(a)It converts the image received to gray level image, and removes the Gaussian noise and salt-pepper noise of image;
(b)The threshold value that image binaryzation is calculated using maximum variance between clusters recycles the threshold value to carry out image binaryzation;
(c)Area threshold is preset, connected component labeling is carried out to binary image, finds out wherein area maximum and area More than the connected domain of area threshold, which is the extraction target for including solar limb information;
(d)Edge to extracting target carries out traversal interative computation, two point a and b of lie farthest away on edge is obtained, with ab Midpoint c carry out traversal interative computation again, obtain the farthest point d of range points c on edge, centered on point d, along edge respectively to Point a, b set out, and are sampled respectively to this two sections of curves in edges of regions;
(e)The sampled point obtained with two sections of curves of least square method pair is fitted, and obtains fitting circle, the center of circle of the circle The as barycenter of the sun.
Step 4:PC machine generates corresponding motor control signal according to the sun center-of-mass coordinate estimated, and sends insertion to Formula processor, embeded processor drives servo motor to operate according to motor control signal, to drive camera real-time tracking The sun.
Return to step 2, PC machine send handshake to embeded processor again, start image transmitting, the place of a new round Manage and send out motor control signal.
Above example is merely illustrative of the invention's technical idea, and protection scope of the present invention cannot be limited with this, every According to technological thought proposed by the present invention, any change done on the basis of technical solution each falls within the scope of the present invention Within.

Claims (7)

1. the sun tracing method of the solar tracking system based on Image Acquisition and processing, the sun of described image acquisition and processing Tracking system includes camera, memory module, embeded processor, electrical level transferring chip, PC machine and servo motor, the camera shooting Stored module is connected with embeded processor, and PC machine is connected by electrical level transferring chip with embeded processor, servo electricity The control terminal of machine is connected with embeded processor, and the output shaft of servo motor is in contact with camera;Camera collection image number According to and be stored in memory module, embeded processor transfers image data from memory module and is uploaded to PC machine, PC machine according to The real-time center-of-mass coordinate of the image data estimation sun of upload, generates motor control signal further according to center-of-mass coordinate and sends to embedding Enter formula processor, embeded processor drives servo motor to operate according to motor control signal, to drive camera tracking too Positive barycenter;It is characterized by comprising the following steps:
(1) PC machine initiation parameter opens serial ports, is ready for communicating;
(2) PC machine sends handshake to embeded processor, after embeded processor receives handshake, from memory module In transfer a frame image data and be uploaded to PC machine;
(3) when PC machine receives the full stop of the frame image data, indicate that PC machine has been successfully received a frame image, at this time PC Machine triggers interrupt function, stops the data transmission between PC machine and embeded processor, and such as figure below is carried out in interrupt function As processing:
(a) it converts the image received to gray level image, and removes the Gaussian noise and salt-pepper noise of image;
(b) it uses maximum variance between clusters to calculate the threshold value of image binaryzation, the threshold value is recycled to carry out image binaryzation;
(c) area threshold is preset, connected component labeling is carried out to binary image, wherein area maximum is found out and area is more than The connected domain of area threshold, the region are the extraction target for including solar limb information;
(d) traversal interative computation is carried out to the edge for extracting target, two point a and b of lie farthest away on edge is obtained, in ab Point c carries out traversal interative computation again, obtains the farthest point d of range points c on edge, centered on point d, along edge respectively to point a, B sets out, and is sampled respectively to this two sections of curves in edges of regions;
(e) sampled point obtained with two sections of curves of least square method pair is fitted, and obtains fitting circle, the center of circle of the circle is The barycenter of the sun;
(4) PC machine generates corresponding motor control signal according to the sun center-of-mass coordinate estimated, and sends embedded processing to Device, embeded processor drives servo motor to operate according to motor control signal, to drive the camera real-time tracking sun;
(5) return to step (2), PC machine send handshake to embeded processor again.
2. sun tracing method according to claim 1, it is characterised in that:Before step (a), need to receive PC machine Image data the matrix of M*N is converted into from ASCII fromat, wherein M*N is preset pixel number.
3. sun tracing method according to claim 1, it is characterised in that:In step (a), using wiener adaptive-filtering Device removes the Gaussian noise and salt-pepper noise of image.
4. sun tracing method according to claim 1, it is characterised in that:The model OV7725 of the camera.
5. sun tracing method according to claim 1, it is characterised in that:The model of the electrical level transferring chip CP2102。
6. sun tracing method according to claim 1, it is characterised in that:The memory module is FIFO memory.
7. sun tracing method according to claim 1, it is characterised in that:The embeded processor uses STM32 type lists Piece machine.
CN201610413856.0A 2016-06-13 2016-06-13 A kind of solar tracking system and method based on Image Acquisition and processing Active CN105898242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610413856.0A CN105898242B (en) 2016-06-13 2016-06-13 A kind of solar tracking system and method based on Image Acquisition and processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610413856.0A CN105898242B (en) 2016-06-13 2016-06-13 A kind of solar tracking system and method based on Image Acquisition and processing

Publications (2)

Publication Number Publication Date
CN105898242A CN105898242A (en) 2016-08-24
CN105898242B true CN105898242B (en) 2018-10-02

Family

ID=56729422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610413856.0A Active CN105898242B (en) 2016-06-13 2016-06-13 A kind of solar tracking system and method based on Image Acquisition and processing

Country Status (1)

Country Link
CN (1) CN105898242B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107992102B (en) * 2018-01-24 2021-04-16 包头市艾派克自动化科技有限公司 Single-shaft double-closed-loop sun tracking control method
CN108513414B (en) * 2018-03-26 2023-12-19 中国地质大学(武汉) Stage light-following lamp system and method with self-tracking focus
CN110045754A (en) * 2019-04-26 2019-07-23 西安理工大学 The high-precision sun tracing means for correcting and method handled using embedded image

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202003114U (en) * 2011-01-27 2011-10-05 北京高普乐光电科技有限公司 Automatic focusing control module for lens
CN102693606A (en) * 2011-03-24 2012-09-26 中国人民解放军国防科学技术大学 Shooting network-based method and system for warning of drowning prevention in swimming pool
CN103235939A (en) * 2013-05-08 2013-08-07 哈尔滨工业大学 Datum point positioning method based on machine vision
CN103840757A (en) * 2014-03-26 2014-06-04 电子科技大学 Solar tracking method and device for photovoltaic power generation equipment
CN105223971A (en) * 2015-11-09 2016-01-06 南京信息工程大学 A kind of automatic sun tracker based on optical image security

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6985780B2 (en) * 2000-03-10 2006-01-10 Adept Technology, Inc. Smart camera
CN100559131C (en) * 2008-07-22 2009-11-11 中国计量学院 A kind of method for automatically detecting pointer instrument
CN105043288A (en) * 2015-05-04 2015-11-11 天津科技大学 Machine vision-guided laser gear chamfering contour measurement apparatus and measurement method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202003114U (en) * 2011-01-27 2011-10-05 北京高普乐光电科技有限公司 Automatic focusing control module for lens
CN102693606A (en) * 2011-03-24 2012-09-26 中国人民解放军国防科学技术大学 Shooting network-based method and system for warning of drowning prevention in swimming pool
CN103235939A (en) * 2013-05-08 2013-08-07 哈尔滨工业大学 Datum point positioning method based on machine vision
CN103840757A (en) * 2014-03-26 2014-06-04 电子科技大学 Solar tracking method and device for photovoltaic power generation equipment
CN105223971A (en) * 2015-11-09 2016-01-06 南京信息工程大学 A kind of automatic sun tracker based on optical image security

Also Published As

Publication number Publication date
CN105898242A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN105898242B (en) A kind of solar tracking system and method based on Image Acquisition and processing
US11850747B2 (en) Action imitation method and robot and computer readable medium using the same
CN103198477B (en) Apple fruitlet bagging robot visual positioning method
CN201716009U (en) Tread pattern detection device
CN204666091U (en) Based on the agricultural machinery terminal of satnav working area statistics
CN105957090A (en) Monocular vision pose measurement method and system based on Davinci technology
CN105761245A (en) Automatic tracking method and device based on visual feature points
CN103402044A (en) Target recognition and tracking system based on multi-source video integration
CN103400117B (en) A kind of personnel in the pit's positioning and tracing method based on computer vision
CN204930106U (en) A kind of laser weeding aircraft
CN211324756U (en) Intelligent cleaning robot
CN108453739A (en) Stereoscopic vision positioning mechanical arm grasping system and method based on automatic shape fitting
CN106175780A (en) Facial muscle motion-captured analysis system and the method for analysis thereof
CN102306274A (en) Device for identifying parking space state and method
CN102729250A (en) Chess opening chessman-placing system and method
CN102608349B (en) Intelligent greenhouse nectarine fruit growth rate wireless monitoring system based on embedded dual-camera platform
CN204808201U (en) Gesture recognition control system based on vision
CN209105343U (en) Underwater crawler belt intelligent robot image acquisition units
CN202261627U (en) Dome camera of intelligent tracking network
CN110197497A (en) A kind of field biology tracing system and method based on deep learning
CN205563978U (en) Irrigated area information acquisition device
CN204440420U (en) The quick estimating system of a kind of human face posture
CN205692214U (en) A kind of monocular vision pose measurement system
CN202141155U (en) Automatic monitoring system air conditioner operation
CN202028163U (en) Chinese chess opening placing 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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 420, block C, Kechuang headquarters building, No. 320, pubin Road, Jiangpu street, Pukou District, Nanjing, Jiangsu

Patentee after: Nanjing University of Information Science and Technology

Address before: 210000 No. 69 Olympic Sports street, Jianye District, Jiangsu, Nanjing

Patentee before: Nanjing University of Information Science and Technology

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20160824

Assignee: Nanjing Qiyun Zhongtian Technology Co.,Ltd.

Assignor: Nanjing University of Information Science and Technology

Contract record no.: X2023320000238

Denomination of invention: A Sun Tracking System and Method Based on Image Acquisition and Processing

Granted publication date: 20181002

License type: Common License

Record date: 20231121

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20160824

Assignee: Fujian hefuyun Information Technology Co.,Ltd.

Assignor: Nanjing University of Information Science and Technology

Contract record no.: X2023980051730

Denomination of invention: A Sun Tracking System and Method Based on Image Acquisition and Processing

Granted publication date: 20181002

License type: Common License

Record date: 20231212