Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Add_On_AI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
frank_peschke
Add_On_AI
Commits
5406cf8d
Commit
5406cf8d
authored
8 months ago
by
ft-Demo
Browse files
Options
Downloads
Patches
Plain Diff
commit by robo pro coding
parent
db914aed
Branches
master
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/machine_learning.blockly
+634
-641
634 additions, 641 deletions
lib/machine_learning.blockly
lib/machine_learning.py
+1
-2
1 addition, 2 deletions
lib/machine_learning.py
with
635 additions
and
643 deletions
lib/machine_learning.blockly
+
634
−
641
View file @
5406cf8d
source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
lib/machine_learning.py
+
1
−
2
View file @
5406cf8d
...
...
@@ -65,8 +65,7 @@ def MakePictureRunKiReturnFoundPart():
hue
=
color
[
0
]
# range 0-180
sat
=
color
[
2
]
# range 0-255
ts_process0
=
(
time
.
time
()
*
1000
)
detector
=
ObjectDetector
(
'
/opt/ft/workspaces/machine-learning-user/models/sorting_line/model.tflite
'
,
'
/opt/ft/workspaces/machine-learning-user/models/sorting_line/labels.txt
'
)
#your python code
detector
=
ObjectDetector
(
'
/opt/ft/workspaces/machine-learning/object-detection/sorting_line/model.tflite
'
,
'
/opt/ft/workspaces/machine-learning/object-detection/sorting_line/labels.txt
'
)
ts_process1
=
(
time
.
time
()
*
1000
)
led_on
=
True
result
=
detector
.
process_image
(
frame
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment