-
-
[JavaScript] Promise
由
Leo145x » 2023-09-25, 02:28
在 JavaScript 時常會碰到非同步程式的狀況,大部份是與伺服器取得資料時會遇到,
以前只能用回乎函式來解決非同步程式碼的問題,但是回呼函式很難維護與閱讀,如下:
getJSON( data/ninjas.json , function(err, ninjas){...
- 0 回覆
- 5266 觀看
-
最後發表 由 Leo145x
2023-09-25, 02:28
-
-
[python] 將data寫入txt
回覆: 1
由
Lexaul » 2022-01-27, 14:42
參考資料:
w = 寫入模式
a = 添加模式
Python open() 使用添加模式主要是可以將寫入的資料附加在原本檔案的尾巴,要使用添加模式需要在 open(filename, mode) 的第二個參數使用 'a' 來開檔,a 是 append 的意思,Python 添加模式範例如下,...
- 1 回覆
- 2197 觀看
-
最後發表 由 Leo145x
2023-09-21, 04:16
-
-
- 0 回覆
- 4054 觀看
-
最後發表 由 Leo145x
2023-09-21, 03:59
-
-
[pytesseract] 影像辨識成文字類型設定
由
Lexaul » 2022-08-22, 10:29
參考資料:
all PSMs available at this moment(2021/07):
0 Orientation and script detection (OSD) only.
1 Automatic page segmentation with OSD.
2...
- 0 回覆
- 4029 觀看
-
最後發表 由 Lexaul
2022-08-22, 10:29
-
-
- 0 回覆
- 2615 觀看
-
最後發表 由 Lexaul
2022-07-11, 16:14
-
-
[yolov5] GPU training 環境設定(持續更新)
由
Lexaul » 2022-07-11, 15:51
系統及硬體環境:windows 10 64bit, python, Nvidia GPU
顯示卡型號分析及CUDA環境設定(以GT710為例)
1.確認顯示卡能被支援之CUDA版本、驅動程式
CUDA:
Driver:
python環境設定
1.安裝python...
- 0 回覆
- 2596 觀看
-
最後發表 由 Lexaul
2022-07-11, 15:51
-
-
- 0 回覆
- 2604 觀看
-
最後發表 由 Lexaul
2022-07-11, 11:57
-
-
[pytorch] GPU運算環境設定
由
Lexaul » 2022-07-11, 11:34
參考資料
Nvidia CUDA cc(計算能力) Table:
CUDA 版本錯誤 github討論:
常見錯誤
RuntimeError: CUDA error: no kernel image is available for execution on the device
GPU...
- 0 回覆
- 2570 觀看
-
最後發表 由 Lexaul
2022-07-11, 11:34
-
-
[opencv] OpenLabeling目標標記工具
由
Lexaul » 2022-07-06, 11:12
參考資料:
前置作業
安裝python
安裝模組
# requirements.txt
lxml==4.3.0
numpy==1.16.0
opencv-contrib-python==3.4.9.33
tqdm==4.29.1
置入影片或圖片...
- 0 回覆
- 2128 觀看
-
最後發表 由 Lexaul
2022-07-06, 11:12
-
-
- 0 回覆
- 2133 觀看
-
最後發表 由 Lexaul
2022-07-05, 15:21
-
-
- 0 回覆
- 2574 觀看
-
最後發表 由 Lexaul
2022-04-25, 10:24
-
-
[.NET 6] Controller
由
Lexaul » 2022-04-22, 15:29
using BookWeb.Models;
using Microsoft.AspNetCore.Mvc;
using System.Diagnostics;
namespace BookWeb.Controllers
{
public class HomeController :...
- 0 回覆
- 2746 觀看
-
最後發表 由 Lexaul
2022-04-22, 15:29
-
-
[C#] 簡介
由
Lexaul » 2022-04-22, 15:18
參考資料
環境
VS2022
Dot Net 6 (.Net Core 6)
Web App w/ C#
1.編輯專案 .csproj
開發環境設定
2.Properties -> launchSettings.json
網站建置環境設定
例如調整loacalhost的Port
SSL...
- 0 回覆
- 2786 觀看
-
最後發表 由 Lexaul
2022-04-22, 15:18
-
-
[ffmpeg] 安裝、環境變數設定
由
Lexaul » 2022-04-06, 14:44
參考資料:
How to Install FFmpeg on Windows?
Difficulty Level : Medium
Last Updated : 05 Oct, 2021
The ffmpeg is a cross-platform & open-source software...
- 0 回覆
- 2783 觀看
-
最後發表 由 Lexaul
2022-04-06, 14:44
-
-
- 0 回覆
- 2530 觀看
-
最後發表 由 Lexaul
2022-03-07, 14:59
-
-
- 0 回覆
- 2544 觀看
-
最後發表 由 Lexaul
2022-02-15, 15:46
-
-
- 0 回覆
- 2504 觀看
-
最後發表 由 Lexaul
2022-02-07, 14:15
-
-
[batch] 比較運算子
由
Lexaul » 2022-02-07, 14:09
參考資料:
equ 或==:等於
neq:不等於
lss:小於
leq:小於等於
gtr:大於
geq:大於等於
用法
set a=10
if %a% gtr 5 (
echo a is greater than 5
) else (
echo a is less then 5
)
- 0 回覆
- 2502 觀看
-
最後發表 由 Lexaul
2022-02-07, 14:09
-
-
[batch] if else
由
Lexaul » 2022-02-07, 14:07
參考資料:
@echo off
set language=de
IF %language% == de (
goto languageDE
) ELSE (
IF %language% == en (
goto languageEN
) ELSE (
echo Not...
- 0 回覆
- 2466 觀看
-
最後發表 由 Lexaul
2022-02-07, 14:07
-
-
[batch] 取字串
由
Lexaul » 2022-02-07, 13:40
參考資料:
取子字串:用 ~ 和 ,
格式:環境變數:~開始位置
開始位置由 0 起算 (Zero-based)
開始位置若為負值,表示由結尾向前
功能:環境變數的子字串操作
rem是註解的意思
rem 範例:13時35分8秒20
echo %time%
13:35:08.20
rem...
- 0 回覆
- 2507 觀看
-
最後發表 由 Lexaul
2022-02-07, 13:40
-
-
- 0 回覆
- 2125 觀看
-
最後發表 由 Lexaul
2022-02-07, 13:17
-
-
[batch] sleep
由
Lexaul » 2022-02-07, 13:13
如何在批次檔(Batch)中實現 sleep 命令讓任務暫停執行 n 秒
n=5
timeout /t 5
- 0 回覆
- 2105 觀看
-
最後發表 由 Lexaul
2022-02-07, 13:13
-
-
[python] Line Notify
由
Lexaul » 2022-02-07, 09:37
#基本功能測試
import requests
def lineNotifyMessage(token, msg):
headers = {
Authorization : Bearer + token,
Content-Type :...
- 0 回覆
- 2089 觀看
-
最後發表 由 Lexaul
2022-02-07, 09:37
-
-
[python] 擷取視訊鏡頭
由
Lexaul » 2022-01-27, 14:39
參考資料:
延伸閱讀:
使用openCV
pip install opencv-python
Code
import cv2
cap = cv2.VideoCapture(0) #開啟攝像頭
while(1):
# get a frame
ret, frame =...
- 0 回覆
- 2506 觀看
-
最後發表 由 Lexaul
2022-01-27, 14:39
-
-
[python] 自動螢幕截圖
由
Lexaul » 2022-01-27, 13:05
參考資料:
import os
import sys
import time
import PIL.ImageOps
from PIL import Image
from PIL import ImageGrab
SaveDirectory = '.\img'
#for i in...
- 0 回覆
- 2478 觀看
-
最後發表 由 Lexaul
2022-01-27, 13:05
版面權限
您 不能 在這個版面發表主題
您 不能 在這個版面回覆主題
您 不能 在這個版面編輯您的文章
您 不能 在這個版面刪除您的文章
您 不能 在這個版面上傳附加檔案