Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kharijarrett committed May 4, 2023
1 parent e07bc8f commit bcb840c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
4 changes: 2 additions & 2 deletions go/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
If you already have the viam and openCV package installed, this example should be as easy as running `go run cmd.go`
If you already have the viam package installed, this example should be as easy as running `go run cmd.go`

Make sure to change the full path to the tflite files to where they are located on your robot, or else robot setup will fail.
Make sure to change the full path to the tflite files to where they are located on your robot (in robot_config.json and cmd.go), or else robot setup will fail.
2 changes: 1 addition & 1 deletion go/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (

func main() {
// Setup robot client
logger := golog.NewDevelopmentLogger("opencv")
logger := golog.NewDevelopmentLogger("example")

// if you want to create the robot directly from a JSON config
r, err := robotimpl.RobotFromConfigPath(context.Background(), "robot_config.json", logger)
Expand Down
32 changes: 17 additions & 15 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,25 @@ In CONFIG -> Components, configure your webcam
}
```

In CONFIG -> Services, configure your object detection model
In CONFIG -> Services, add your mlmodel and your object detection vision service
```
{
"name": "vis_service",
"type": "vision",
"model": "tflite_cpu",
"attributes": {
"register_models": [
{
"parameters": {
"model_path": "/full/path/to/vision-service-examples/data/effdet0.tflite",
"label_path": "/full/path/to/vision-service-examples/data/effdetlabels.txt",
"num_threads": 1
},
"name": "find_objects",
"type": "tflite_detector"
}
]
}
"model_path": "/full/path/to/vision-service-examples/data/effdet0.tflite",
"label_path": "/full/path/to/vision-service-examples/data/effdetlabels.txt",
"num_threads": 1
},
"name": "EffDet",
"type": "mlmodel"
},
{
"depends_on": ["EffDet"],
"model": "mlmodel",
"attributes": {
"mlmodel_name": "EffDet"
},
"name": "myDetector",
"type": "vision"
}
```

0 comments on commit bcb840c

Please sign in to comment.