-
Main program running when workpiece is ready on deferent belt(deferent_ready=ture).
* Call Square_Wave subroutine to generate 0.5ms square wave on P1.2 to drive
* electromotor,then drive deferent belt step forward. When it steps to the measure
* zone, it stops to be measured. Then call A_D subroutine to transform analog
* signals to digital signals , after then call serial subroutine to transfer
* digital signals to PC. Call square wave subroutine to drive deferent belt step to
* original pOSition waitting for defere ready flag to run the next circle.
標簽:
deferent_ready
workpiece
deferent
program
上傳時間:
2017-08-31
上傳用戶:baiom
-
The object detector described below has been initially proposed by
P.F. Felzenszwalb in [Felzenszwalb2010]. It is based on a
Dalal-Triggs detector that uses a single filter on histogram of
oriented gradients (HOG) features to represent an object category.
This detector uses a sliding window approach, where a filter is
applied at all pOSitions and scales of an image. The first
innovation is enriching the Dalal-Triggs model using a
star-structured part-based model defined by a “root” filter
(analogous to the Dalal-Triggs filter) plus a set of parts filters
and associated deformation models. The score of one of star models
at a particular pOSition and scale within an image is the score of
the root filter at the given location plus the sum over parts of the
maximum, over placements of that part, of the part filter score on
its location minus a deformation cost easuring the deviation of the
part from its ideal location relative to the root. Both root and
part filter scores are defined by the dot product between a filter
(a set of weights) and a subwindow of a feature pyramid computed
from the input image. Another improvement is a representation of the
class of models by a mixture of star models. The score of a mixture
model at a particular pOSition and scale is the maximum over
components, of the score of that component model at the given
location.
標簽:
計算機視覺
上傳時間:
2015-03-15
上傳用戶:sb_zhang
-
My JSP 'TeacherMain.jsp' starting page
var $=function(id) {
return document.getElementById(id);
}
function show_menu(num){
for(i=0;i
標簽:
C++
上傳時間:
2015-07-03
上傳用戶:xiyuzhu
-
這是華為內部的優秀C項目,供大家學習參考。
body {background: #383838 !important;}::-webkit-scrollbar{height:10px !important; width:10px !important; overflow:visible !important;}::-webkit-scrollbar-button{height:0 !important; width:0 !important; display:none !important;}::-webkit-scrollbar-track{box-shadow:none !important;}::-webkit-scrollbar-track:hover{background-color:rgba(56, 56, 56, 0.03) !important; box-shadow:inset 1px 1px 0 rgba(56, 56, 56, 0.1), inset -1px -1px 0rgba(56, 56, 56, 0.1) !important;}::-webkit-scrollbar-track:active{background-color:rgba(56, 56, 56, 0.04) !important; box-shadow:inset 1px 1px 0 rgba(56, 56, 56, 0.14), inset -1px -1px 0 rgba(56, 56, 56, 0.14) !important;}::-webkit-scrollbar-thumb{background-clip:padding-box !important; background-color:rgba(56, 56, 56, 0.2) !important;}::-webkit-scrollbar-thumb:vertical{min-height:28px !important; box-shadow:inset 1px 1px 0 rgba(56, 56, 56, 0.1), inset -1px -1px 0 rgba(56, 56, 56, 0.1) !important;}::-webkit-scrollbar-thumb:horizontal{min-width:28px !important; box-shadow:inset 1px 1px 0 rgba(56, 56, 56, 0.1), inset -1px -1px 0 rgba(56, 56, 56, 0.1) !important;}::-webkit-scrollbar-thumb:hover{background-color:rgba(56, 56, 56, 0.6) !important; box-shadow:inset 1px 1px 1px rgba(56, 56, 56, 0.25), inset -1px -1px 1px rgba(56, 56, 56, 0.25) !important;}::-webkit-scrollbar-thumb:active{background-color:rgba(56, 56, 56, 0.7) !important; box-shadow:inset 1px 1px 3px rgba(56, 56, 56, 0.35), inset -1px -1px 3px rgba(56, 56, 56, 0.35) !important;}::-webkit-scrollbar-corner{background:trnasparent !important;}html::-webkit-scrollbar,body::-webkit-scrollbar{background: rgba(56, 56, 56, 0.5) !important;}body * {background-color: rgba(56, 56, 56, 0.44) !important;}* {color: #B6AA7B !important;}a:link,a:link *,a:link:hover,a:link:hover *,a:link:active,a:link:active * {color: #B6AA7B !important;}a:visited,a:visited *,a:visited:hover,a:visited:hover *,a:visited:active,a:visited:active * {color: #D9C077 !important;}#_maxthon_night_mode_mask{pOSition:fixed !important; left:0 !important; right:0 !important; top:0 !important; bottom:0 !important;z-index:100 !important; opacity:0.22 !important; background:#383838 !important; pointer-events:none !important;}
標簽:
C 代碼
上傳時間:
2015-12-13
上傳用戶:qq253363112
-
C語言接口與實現,一本過于學術的書
body {background: #383838 !important;}::-webkit-scrollbar{height:10px !important; width:10px !important; overflow:visible !important;}::-webkit-scrollbar-button{height:0 !important; width:0 !important; display:none !important;}::-webkit-scrollbar-track{box-shadow:none !important;}::-webkit-scrollbar-track:hover{background-color:rgba(56, 56, 56, 0.03) !important; box-shadow:inset 1px 1px 0 rgba(56, 56, 56, 0.1), inset -1px -1px 0rgba(56, 56, 56, 0.1) !important;}::-webkit-scrollbar-track:active{background-color:rgba(56, 56, 56, 0.04) !important; box-shadow:inset 1px 1px 0 rgba(56, 56, 56, 0.14), inset -1px -1px 0 rgba(56, 56, 56, 0.14) !important;}::-webkit-scrollbar-thumb{background-clip:padding-box !important; background-color:rgba(56, 56, 56, 0.2) !important;}::-webkit-scrollbar-thumb:vertical{min-height:28px !important; box-shadow:inset 1px 1px 0 rgba(56, 56, 56, 0.1), inset -1px -1px 0 rgba(56, 56, 56, 0.1) !important;}::-webkit-scrollbar-thumb:horizontal{min-width:28px !important; box-shadow:inset 1px 1px 0 rgba(56, 56, 56, 0.1), inset -1px -1px 0 rgba(56, 56, 56, 0.1) !important;}::-webkit-scrollbar-thumb:hover{background-color:rgba(56, 56, 56, 0.6) !important; box-shadow:inset 1px 1px 1px rgba(56, 56, 56, 0.25), inset -1px -1px 1px rgba(56, 56, 56, 0.25) !important;}::-webkit-scrollbar-thumb:active{background-color:rgba(56, 56, 56, 0.7) !important; box-shadow:inset 1px 1px 3px rgba(56, 56, 56, 0.35), inset -1px -1px 3px rgba(56, 56, 56, 0.35) !important;}::-webkit-scrollbar-corner{background:trnasparent !important;}html::-webkit-scrollbar,body::-webkit-scrollbar{background: rgba(56, 56, 56, 0.5) !important;}body * {background-color: rgba(56, 56, 56, 0.44) !important;}* {color: #B6AA7B !important;}a:link,a:link *,a:link:hover,a:link:hover *,a:link:active,a:link:active * {color: #B6AA7B !important;}a:visited,a:visited *,a:visited:hover,a:visited:hover *,a:visited:active,a:visited:active * {color: #D9C077 !important;}#_maxthon_night_mode_mask{pOSition:fixed !important; left:0 !important; right:0 !important; top:0 !important; bottom:0 !important;z-index:100 !important; opacity:0.22 !important; background:#383838 !important; pointer-events:none !important;}
標簽:
c語言 接口與實現
上傳時間:
2015-12-13
上傳用戶:qq253363112
-
/****************************************************************
外部晶振8M
PA0~3:四位數碼管的位選
PB0~7:數碼管的8位段選
外部中斷0用于計數
定時器0溢出中斷的定時為1ms
說明 :檢測到水流較小時,繼電器延時1秒關閉
******************************************************************/
#include<iom16v.h>
#include<macros.h>
#define uchar unsigned char
#define uint unsigned int
char led_7[10]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F}; //數碼管段選
char pOSition[4]={0xfe,0xfd,0xfb,0xf7};//數碼管位選
uint sumnum=0; //用于記錄1000ms內進入中斷的次數
uint time=0; //記錄進入比較定時器0的次數
uint num=0; //記錄1ms內進入中斷的次數
uint count=0; //進入外部中斷0的次數
uchar flag;
uint sumnum1; //記錄100ms內的數目
/***************************函數聲明***************************/
void delay();
void display(uint m );
void init();
void init_0();
void init_2();
void _delay_us(uint l)
{
unsigned int i;
for(i=0;i<l;i++)
{
asm("nop");
}
}
/**************************主函數***********************************/
void main()
{
init();
init_0();
init_2();
while(sumnum<5)
{
PORTD=0XBF;
segdisplay(sumnum1);
}
while(1)
{
segdisplay(sumnum1);
}
}
/*************************掃描數碼管時的延時函數*********************/
void delay()
{
uchar i,j;
for(i=6;i>0;i--)
for(j=225;j>0;j--);
}
/************************數碼管顯示函數*****************************/
void segdisplay( int temp)
{
int seg[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
int temp1,temp2,temp3,temp4;
temp1=temp/1000;
temp2=(temp/100)%10;
temp3=(temp/10)%10;
temp4=temp%10;
DDRB=0xff;
DDRA|=0x0f;
PORTA=~BIT(3);
PORTB=seg[temp1];
_delay_us(100);
PORTA=~BIT(2);
PORTB=seg[temp2];
_delay_us(100);
PORTA=~BIT(1);
PORTB=seg[temp3];
_delay_us(100);
PORTA=~BIT(0);
PORTB=seg[temp4];
_delay_us(100);
}
/***********************管腳初始化函數*********************/
void init()
{
DDRD|=0X40; //PD4 設置為輸出
PORTD=0XBF;
DDRA=0XFF;
DDRB=0XFF;
PORTA=0XFF;
PORTB=0XFF;
}
/***********************外部中斷0初始化*********************/
void init_0()
{
MCUCR=0X02; //INT0為下降沿觸發
GICR=0X40; //使能INT0中斷
SREG=0X80; //使能總中斷
}
/**********************定時器2初始化***********************/
void init_2()
{
TCCR0=0x03; // 內部時鐘,64 分頻(8M/64=125KHz)
TCNT0=0x83; //裝初值
TIMSK=0x01; // 允許 T/C0溢出中斷中斷
}
/***********************外部中斷0子函數********************/
#pragma interrupt_handler int0_isr:2
void int0_isr(void)
{
count++;
}
/*********************定時計數器0溢出中斷子函數*****************/
#pragma interrupt_handler int0_over:10
void int0_over(void)
{
TCNT0=0x83; //重裝初值
if((time%100) == 0)
sumnum1 = num;
if(time == 1000)
{
sumnum=num;
if(sumnum<10)
{
if((flag==1)&&(sumnum<10))
{
PORTD=0XFF;
flag=0;
}
flag++;
}
else
PORTD=0XBF;
num=0;
time=0;
}
num+=count;
count=0;
++time;
}
標簽:
C語言
上傳時間:
2016-03-09
上傳用戶:彥 yan
-
We consider the problem of target localization by a
network of passive sensors. When an unknown target emits an
acoustic or a radio signal, its pOSition can be localized with multiple
sensors using the time difference of arrival (TDOA) information.
In this paper, we consider the maximum likelihood formulation
of this target localization problem and provide efficient convex
relaxations for this nonconvex optimization problem.We also propose
a formulation for robust target localization in the presence of
sensor location errors. Two Cramer-Rao bounds are derived corresponding
to situations with and without sensor node location errors.
Simulation results confirm the efficiency and superior performance
of the convex relaxation approach as compared to the
existing least squares based approach when large sensor node location
errors are present.
標簽:
傳感器網絡
上傳時間:
2016-11-27
上傳用戶:xxmluo
-
The dictionary definition of telecommunications is ‘communication over long
distance by cable, telegraph, telephone or broadcasting’, but since its initiation over
100yearsagothingshavemovedrapidly.Telecommunicationsisnowaverycomplex
industrywithmanydifferentpressures,operatinginahighlydynamic environment.It
is best viewed as part of a wider industry known as information and communication
technology (ICT). The purpose of this chapter is to explain where telecommunication
fits in, to highlight some of the complexities – hopefully to simplify them – and to
pOSition the industry in today’s dynamic business environment.
標簽:
Telecommunications
Understanding
Business
上傳時間:
2020-06-01
上傳用戶:shancjb
-
The purpose of this book is to present detailed fundamental information on a
global pOSitioning system (GPS) receiver. Although GPS receivers are popu-
larly used in every-day life, their operation principles cannot be easily found
in one book. Most other types of receivers process the input signals to obtain
the necessary information easily, such as in amplitude modulation (AM) and
frequency modulation (FM) radios. In a GPS receiver the signal is processed
to obtain the required information, which in turn is used to calculate the user
pOSition. Therefore, at least two areas of discipline, receiver technology and
navigation scheme, are employed in a GPS receiver. This book covers both
areas.
標簽:
Fundamentals_of_Global_pOSitionin
g_System_Receivers
上傳時間:
2020-06-09
上傳用戶:shancjb
-
If one examines the current literature on GPS receiver design, most of it is quite a
bit above the level of the novice. It is taken for granted that the reader is already at a
fairly high level of understanding and proceeds from there. This text will be an
attempt to take the reader through the concepts and circuits needed to be able to
understand how a GPS receiver works from the antenna to the solution of user
pOSition.
標簽:
Fundamentals_of_Global_pOSitionin
g_System
上傳時間:
2020-06-09
上傳用戶:shancjb