test #1

Merged
jasonchenwork merged 64 commits from test into master 2025-03-18 17:32:23 +08:00
271 changed files with 46 additions and 186 deletions
Showing only changes of commit 2568c5e20e - Show all commits

View File

@ -51,46 +51,46 @@ Height = 394
Symbols=ㄅ,ㄉ,ㄍ,ㄐ,ㄓ,ㄗ,ㄛ,ㄡ,ㄤ,ㄧ,ㄆ,ㄊ,ㄎ,ㄑ,ㄔ,ㄘ,ㄜ,ㄢ,ㄦ,ㄨ,ㄇ,ㄋ,ㄏ,ㄒ,ㄕ,ㄙ,ㄞ,ㄣ,ㄩ,ㄈ,ㄌ, ,ㄖ,ㄚ,ㄠ
[PhoneticButtonCoordinates]
button1 = 150,342,93,86
button2 = 255,342,93,86
button3 = 359,342,93,86
button4 = 463,342,93,86
button5 = 567,341,93,87
button6 = 671,341,93,86
button7 = 775,341,93,86
button8 = 879,340,93,86
button9 = 984,340,93,86
button10 = 1088,340,93,86
button11 = 151,436,93,86
button12 = 255,436,93,86
button13 = 359,436,93,86
button14 = 463,436,93,86
button15 = 567,435,93,86
button16 = 671,436,93,86
button17 = 775,436,93,86
button18 = 879,436,93,86
button19 = 984,436,93,86
button20 = 1088,436,93,86
button21 = 203,532,93,86
button22 = 307,532,93,86
button23 = 411,532,93,86
button24 = 515,532,93,86
button25 = 619,531,93,86
button26 = 723,532,93,86
button27 = 827,532,93,86
button28 = 931,532,93,86
button29 = 1035,532,93,86
button30 = 255,628,93,86
button31 = 359,628,93,86
button32 = 463,628,202,86
button33 = 676,628,93,86
button34 = 780,628,93,86
button35 = 884,628,93,86
button1 = 150,338,93,86
button2 = 255,338,93,86
button3 = 359,338,93,86
button4 = 463,338,93,86
button5 = 567,338,93,87
button6 = 671,338,93,86
button7 = 775,338,93,86
button8 = 879,338,93,86
button9 = 984,338,93,86
button10 = 1088,338,93,86
button11 = 151,434,93,86
button12 = 255,434,93,86
button13 = 359,434,93,86
button14 = 463,434,93,86
button15 = 567,434,93,86
button16 = 671,434,93,86
button17 = 775,434,93,86
button18 = 879,434,93,86
button19 = 984,434,93,86
button20 = 1088,434,93,86
button21 = 203,530,93,86
button22 = 307,530,93,86
button23 = 411,530,93,86
button24 = 515,530,93,86
button25 = 619,530,93,86
button26 = 723,530,93,86
button27 = 827,530,93,86
button28 = 931,530,93,86
button29 = 1035,530,93,86
button30 = 255,624,93,86
button31 = 359,624,93,86
button32 = 463,624,202,86
button33 = 676,624,93,86
button34 = 780,624,93,86
button35 = 884,624,93,86
[SpecialButtonCoordinates]
modifyButtonZhuYinSingers = 989,627,94,87
clearButtonZhuYinSingers = 151,627,93,87
closeButtonZhuYinSingers = 1093,627,94,87
modifyButtonZhuYinSingers = 989,624,94,87
clearButtonZhuYinSingers = 151,624,93,87
closeButtonZhuYinSingers = 1093,624,94,87
modifyButtonEnglishSingers = 1032,632,70,66
clearButtonEnglishSingers = 408,632,70,66
closeButtonEnglishSingers = 1110,632,70,66
@ -100,9 +100,9 @@ closeButtonPinYinSingers = 1091,642,94,87
refillButtonHandWritingSingers = 918,372,70,65
clearButtonHandWritingSingers = 996,372,70,65
closeButtonForSingers = 1074,372,70,65
modifyButtonZhuYinSongs = 989,627,94,87
clearButtonZhuYinSongs = 151,627,93,87
closeButtonZhuYinSongs = 1093,627,94,87
modifyButtonZhuYinSongs = 989,624,94,87
clearButtonZhuYinSongs = 151,624,93,87
closeButtonZhuYinSongs = 1093,624,94,87
modifyButtonEnglishSongs = 1032,632,70,66
clearButtonEnglishSongs = 408,632,70,66
closeButtonEnglishSongs = 1110,632,70,66
@ -141,7 +141,7 @@ mouseDown = themes\superstar\歌星\注音\VOD_歌星查詢_注音查詢(按鍵)
[InputBoxZhuYinSingers]
X=150
Y=264
Width=596
Width=605
Height=63
FontName=微軟正黑體
FontSize=26
@ -556,9 +556,9 @@ mouseOver = themes\superstar\歌星\拼音\VOD_歌星查詢_拼音查詢(按鍵)
mouseDown = themes\superstar\歌星\拼音\VOD_歌星查詢_拼音查詢(按鍵)-60.png
[InputBoxPinYinSingers]
X = 154
X = 156
Y = 370
Width = 593
Width = 628
Height = 63
FontName = Times New Roman
FontSize = 26
@ -601,9 +601,9 @@ FontStyle = Regular
ForeColor = Black
[InputBoxPinYinSongs]
X = 154
X = 156
Y = 370
Width = 593
Width = 628
Height = 63
FontName = Times New Roman
FontSize = 26

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -1,55 +0,0 @@
import cv2
import numpy as np
import os
# 使用絕對路徑
image_path = 'cropped_qrcode.jpg'
# if not os.path.exists(image_path):
# print("File does not exist:", image_path)
# else:
# print("File exists, attempting to load...")
image = cv2.imread(image_path)
if image is None:
print("But failed to load.")
else:
print("Image loaded successfully, processing...")
# Convert to HSV color space
hsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)
# Define the range for yellow color in HSV
# Adjust these ranges based on your specific yellow color and lighting conditions
lower_yellow = np.array([20, 100, 100])
upper_yellow = np.array([30, 255, 255])
lower_pink = np.array([140, 100, 100])
upper_pink = np.array([170, 255, 255])
lower_purple = np.array([129, 50, 50]) # Lower bound of purple
upper_purple = np.array([158, 255, 255]) # Upper bound of purple
lower_blue = np.array([110, 50, 50]) # Lower bound of blue
upper_blue = np.array([130, 255, 255]) # Upper bound of blue
lower_blue_violet = np.array([120, 50, 50]) # Lower bound of blue-violet
upper_blue_violet = np.array([160, 255, 255]) # Upper bound of blue-violet
lower_red2 = np.array([170, 100, 100])
upper_red2 = np.array([180, 255, 255])
# Create a mask for yellow color
mask = cv2.inRange(hsv, lower_red2, upper_red2)
# Find contours on the mask
contours, _ = cv2.findContours(mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
# Draw all contours
for contour in contours:
x, y, w, h = cv2.boundingRect(contour)
cv2.rectangle(image, (x, y), (x+w, y+h), (0, 255, 0), 2)
coordinates_text = f"X: {x}, Y: {y}, W: {w}, H: {h}"
# if w > 100:
print(coordinates_text)
# Display coordinates on the image
cv2.putText(image, coordinates_text, (x, y-10), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 255, 0), 1)
# Show the image with all bounding boxes drawn
cv2.imshow('Image with yellow contours', image)
cv2.waitKey(0)
cv2.destroyAllWindows()

Some files were not shown because too many files have changed in this diff Show More