# How to get "color detection algoritem" saved data

**URL:** https://forums.openmv.io/t/how-to-get-color-detection-algoritem-saved-data/6534
**Category:** OpenMV Boards
**Created:** [November 12, 2021, 12:03pm UTC](https://forums.openmv.io/t/how-to-get-color-detection-algoritem-saved-data/6534 "2021-11-12T12:03:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jaka](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@jaka](https://forums.openmv.io/u/jaka)
#### Post date: [November 12, 2021, 12:03pm UTC](https://forums.openmv.io/t/how-to-get-color-detection-algoritem-saved-data/6534/1 "2021-11-12T12:03:36Z")

</div>

Hello,

I am kind of new to python and programming.  
I am trying to detect an object with my camera and send the position of that object through SPI bus.

I am trying to detect an object with the camera. The most reliable example that I tested was the automatic color detection example. The only problem is ,that I can not take it offline. The algorithm  
works by showing the camera an object that you want to track and then it remembers the color and tracks it.

I want to somehow record the color and use that color in the program instead of the autodetection system. So I can unplug the camera from the PC and plug it into a power source and use it only with microcontroller.

I am also having trouble with the SPI bus. I can not receive data on the camera in slave mode. I can only send. I’ll make a separate topic for that.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/f/f87427074bdff7c67548b954c570f2bebbc143fc.png)

---

<div class="post-metadata">

### Author: ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)
#### Post date: [November 13, 2021, 4:09pm UTC](https://forums.openmv.io/t/how-to-get-color-detection-algoritem-saved-data/6534/2 "2021-11-13T16:09:48Z")

</div>

Hi, you can printout the color tracking values. Also, you should use the Threshold Editor under Tools-\>Machine Vision to select the default color tracking settings.
