nadavsachch4 發表在 痞客邦 留言(0) 人氣()
官方文件鏈結 https://docs.ultralytics.com/models/
程式碼
- from ultralytics import YOLO
- import os
- os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"
-
- if __name__ == '__main__':
- # Load a COCO-pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Display model information (optional)
- model.info()
-
- # Train the model on the COCO8 example dataset for 100 epochs
- results = model.train(data='coco8.yaml', epochs=100, imgsz=640)
-
- # Run inference with the YOLOv8n model on the 'bus.jpg' image
- results = model('bus.jpg')
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
cxSelect 是基於jQuery 的多級聯動菜單插件,合用於省市、商品分類等聯動菜單。
列表數據通過AJAX 獲得,也可以自界說,數據內容利用JSON 格式。
同時兼容Zepto,方便在移動端利用。
國內省市縣數據來曆:basecss/cityData Date: 2014.03.31
全球主要城市數據起原:清算國內經常使用網站和軟件Date: 2014.07.29
版本:jQuery的V1.7 +的Zepto V1.0 +jQuery的cxSelect V1.4.0
使用方式载入 JavaScript 文件
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
在架設了DNS後
該如何肯定該網域是不是被GOOGLE接管呢?
到該網址
https://www.whatsmydns.net/
輸入網域就能夠知道具體內容了
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
官方文件鏈結 https://docs.ultralytics.com/models/
程式碼
- from ultralytics import YOLO
- import os
- os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"
-
- if __name__ == '__main__':
- # Load a COCO-pretrained YOLOv8n model
- model = YOLO('yolov8n.pt')
-
- # Display model information (optional)
- model.info()
-
- # Train the model on the COCO8 example dataset for 100 epochs
- results = model.train(data='coco8.yaml', epochs=100, imgsz=640)
-
- # Run inference with the YOLOv8n model on the 'bus.jpg' image
- results = model('bus.jpg')
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
因搜索引擎改版,網站不能不改https
當網站安裝了SSL後,若何把網址主動轉成https?
在網頁目錄-public_html,有一個檔案叫 .htaccess,編纂檔案內容,然後將以下轉向的劃定規矩寫在裡面:
寫法1:
- RewriteCond %{HTTPS} off
- RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
前兩天收到中華電信HINET的德律風
說某一網域被入侵,亂發信被揭發
今天客戶說寄到GMAIL的信全數寄不出去
查了一下,先到下面網址打入IPhttps://mxtoolbox.com
https://www.dnsbl.info/dnsbl-details.php?dnsbl=dnsbl.spfbl.net
發現有被兩個單元列入黑名單
問了谷歌後,只要在其他dnsbl或是CBL裡沒有紀錄就好
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
前台看到 相幹商品
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
EyeSee 官網:https://eyesee.cht.com.tw/
申請帳號(用HINET線路HN申請)
申請好了以後
1.監測報表->寬頻上網->加值辦事治理
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
影片
TB6612FNG是東芝生產的馬達驅動與節制IC,內部包括兩組H橋式電路,可驅動和控制兩個小型直流馬達,或一個雙極性步進馬達。
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
類型圖片
CSS
- body{ text-align:center;}
- *{ margin:0; padding:0;}
- img{ border:none;}
- #container{ width:900px; height:900px; background:#000000; border:1px solid #006633; margin:auto; padding:0;}
- #loader{ width:480px; margin:auto; height:500px; background:#FFFFFF; float:left; margin-right:5px;}
- #imageOptions{ float:left;}
- #imageOptions li{ list-style:none; margin:10px;}
- .loading{ background:url(images/spinner.gif) center center no-repeat;}
- h3{ line-height:500px;}
|
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
當在設計網頁時,網頁預設是新細明體,
看起來真的不是很好看
所以測驗考試改變一下字體
讓網頁看起來更順眼
所以在CSS裡,到場
- @font-face {
- font-family: 'cwTeXHei';
- font-style: normal;
- font-weight: 500;
- src: url(//fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.eot);
- src: url(//fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.eot?#iefix) format('embedded-opentype'),
- url(//fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.woff2) format('woff2'),
- url(//fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.woff) format('woff'),
- url(//fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.ttf) format('truetype');
- }
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
進入CPANEL ROOT後台
選取Transfer Tool
Remote Server Address:
輸入原主機的IP
拔取 ROOT帳號
輸入密碼
鄙人一步設定便可
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
用ESP32 PWM實現LED漸漸亮起。
程式的部分主要分成三個:1.設定頻道LEDchannel、2.附加到PIN腳、3.決定輸出巨細。
1.設定頻道LEDchannel屬性
ledcSetup(LEDChannel, freq, resolution);
//LEDChannel設定為0,分歧輸出要設定到分歧頻道,例如RGB LED就要開三個頻道分別辦理R、G、B
//freq輸出頻率,建議值5000 Hz
//resolution代表輸出解析度,例如8代表0-255,10代表0-1023
2.附加到PIN腳
ledcAttachPin(ledPin, LEDChannel);
//ledPin代表腳位,看你把裝備接在哪個腳位上面
//LEDchannel代表步調1所宣佈的LEDchannel,也就是說把設定好的LEDchannel屬性附加到某個腳位上
3.決議輸出巨細。
ledcWrite(LEDChannel, dutyCycle);
//將LEDchannel輸出dutyCycle的值。
範例程式將使接在Pin16的LED逐步亮起並熄滅,範例複製於 https://randomnerdtutorials.com/esp32-pwm-arduino-ide/
- // the number of the LED pin
- const int ledPin = 16; // 16 corresponds to GPIO16
-
- // setting PWM properties
- const int freq = 5000;
- const int ledChannel = 0;
- const int resolution = 8;
-
- void setup(){
- // configure LED PWM functionalitites
- ledcSetup(ledChannel, freq, resolution);
-
- // attach the channel to the GPIO to be controlled
- ledcAttachPin(ledPin, ledChannel);
- }
-
- void loop(){
- // increase the LED brightness
- for(int dutyCycle = 0; dutyCycle <= 255; dutyCycle++){
- // changing the LED brightness with PWM
- ledcWrite(ledChannel, dutyCycle);
- delay(15);
- }
-
- // decrease the LED brightness
- for(int dutyCycle = 255; dutyCycle >= 0; dutyCycle--){
- // changing the LED brightness with PWM
- ledcWrite(ledChannel, dutyCycle);
- delay(15);
- }
- }
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
為了將圖片數據轉換為合適 AI練習的花樣,利用 OpenCV先對面部進行辨識,然後將面部數據另存為同一的格式。
- import cv2
-
- face_cascade = cv2.CascadeClassifier('./cascades/haarcascade_frontalface_default.xml')
- eye_cascade = cv2.CascadeClassifier('./cascades/haarcascade_eye.xml')
-
- def detect(filename):
- img = cv2.imread(filename)
- gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
- faces = face_cascade.detectMultiScale(gray,
- scaleFactor=1.2,
- minNeighbors=3,)
- for (x,y,w,h) in faces:
- roi_gray = gray[y:y+h, x:x+w]
- eyes = eye_cascade.detectMultiScale(roi_gray,
- scaleFactor=1.02,
- minNeighbors=3,
- minSize=(40,40),)
- img = cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)
- for (ex,ey,ew,eh) in eyes:
- img = cv2.rectangle(img,(x+ex,y+ey),(x+ex+ew,y+ey+eh),(0,255,0),2)
- cv2.imwrite('./tzuyu_face.jpg', img)
-
- detect('tzuyu.jpg')
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
學會Arduino基本操控後
必然會想學會無線遙控,如藍芽Bluetooth, Wifi
這篇申明藍芽Bluetooth操控
了局圖
影片
代碼:
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
以下有兩個大項目需要設定,依序為:
若何申請Google Maps API金鑰?
如何啟用Google Maps API辦事?
nadavsachch4 發表在 痞客邦 留言(0) 人氣()
最近電腦重灌WIN10
arduino從頭安裝及設定
發現輸入開辟辦理員網址時會呈現毛病
- https://dl.espressif.com/dl/package_esp32_index.json
nadavsachch4 發表在 痞客邦 留言(0) 人氣()