Use the cube of similarity
This has the effect of cranking up the similarity threshold dramatically
This commit is contained in:
parent
b1632714f8
commit
3065501f97
1 changed files with 2 additions and 2 deletions
|
@ -84,11 +84,11 @@ def poll_printers(app: App, db: Db) -> None:
|
||||||
"/api/plugin/bedready",
|
"/api/plugin/bedready",
|
||||||
json={
|
json={
|
||||||
"command": "check_bed",
|
"command": "check_bed",
|
||||||
"similarity": 0.94,
|
|
||||||
"reference": snapshots[0],
|
"reference": snapshots[0],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
return status.get("bed_clear", True)
|
similarity = status["similarity"] ** 3 # Cube it
|
||||||
|
return similarity > 0.9
|
||||||
|
|
||||||
printer_job = {}
|
printer_job = {}
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue