Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into roy.uno_essentials
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Oct 15, 2024
2 parents 3909bc2 + b4ede12 commit f58450a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ jobs:
uses: softprops/action-gh-release@v2
with:
draft: true
name: ScoreSight v${{ steps.check.outputs.version }}
generate_release_notes: true
body_path: ${{ github.workspace }}/CHECKSUMS.txt
files: |
${{ github.workspace }}/uploads/scoresight-*.zip
Expand Down
8 changes: 4 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ ScoreSight is an OCR (Optical Character Recognition) application designed to ext

<strong>Download</strong>

<a href="https://github.com/locaal-ai/scoresight/releases/latest/download/scoresight-windows-0.0.14.zip"><img src="https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white" /></a>
<a href="https://github.com/locaal-ai/scoresight/releases/download/0.0.14/scoresight-macos-x86-0.0.14.dmg"><img src="https://img.shields.io/badge/mac%20Intel-000000?style=for-the-badge" /></a>
<a href="https://github.com/locaal-ai/scoresight/releases/download/0.0.14/scoresight-macos-arm64-0.0.14.dmg"><img src="https://img.shields.io/badge/mac%20M1/2/3-0a0a0a?style=for-the-badge&"/></a>
<a href="https://github.com/locaal-ai/scoresight/releases/latest/download/scoresight-linux-0.0.14.tar"><img src="https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black"/></a>
<a href="https://github.com/locaal-ai/scoresight/releases/latest/download/scoresight-windows-0.0.16.zip"><img src="https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white" /></a>
<a href="https://github.com/locaal-ai/scoresight/releases/download/0.0.16/scoresight-macos-x86-0.0.16.dmg"><img src="https://img.shields.io/badge/mac%20Intel-000000?style=for-the-badge" /></a>
<a href="https://github.com/locaal-ai/scoresight/releases/download/0.0.16/scoresight-macos-arm64-0.0.16.dmg"><img src="https://img.shields.io/badge/mac%20M1/2/3-0a0a0a?style=for-the-badge&"/></a>
<a href="https://github.com/locaal-ai/scoresight/releases/latest/download/scoresight-linux-0.0.16.tar"><img src="https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black"/></a>


<a href="https://youtu.be/wMNolI0w0tE" target="_blank"><img src="./scoresight_getting_started.png" width="50%"/></a>
Expand Down
3 changes: 2 additions & 1 deletion src/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,9 @@ def __init__(self, translator: QTranslator, parent: QObject):
self.ui.comboBox_boxDisplayStyle.currentIndexChanged.connect(
partial(self.globalSettingsChanged, "box_display_style")
)
box_display_style = fetch_data("scoresight.json", "box_display_style", 3)
self.ui.comboBox_boxDisplayStyle.setCurrentIndex(
fetch_data("scoresight.json", "box_display_style", 3)
box_display_style if type(box_display_style) == int else 3
)

self.ui.checkBox_updateOnchange.toggled.connect(self.toggleUpdateOnChange)
Expand Down
2 changes: 2 additions & 0 deletions src/resizable_rect.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ def setupTextItems(self, image_size, boxDisplayStyle):
fontPos = QFont("Arial", int(image_size / 60) if image_size > 0 else 32)
fontPos.setWeight(QFont.Weight.Bold)
self.posItem.setFont(fontPos)
self.posItem.setPen(QPen(QColor("black"), 1))
self.resultItem.setBrush(QBrush(QColor("red")))
fontRes = QFont("Arial", int(image_size / 75) if image_size > 0 else 20)
fontRes.setWeight(QFont.Weight.Bold)
Expand Down Expand Up @@ -263,6 +264,7 @@ def updateTextLabelPosition(self):
ypos = self.boundingRect().y() - self.posItem.boundingRect().height()
# set the text position to the top left corner of the rect
self.posItem.setPos(xpos, ypos)
self.bgItem.setRect(self.posItem.boundingRect())
self.bgItem.setPos(xpos, ypos)

def setBoxDisplayStyle(self, boxDisplayStyle: int):
Expand Down

0 comments on commit f58450a

Please sign in to comment.