Ask Your Question

pashakun's profile - activity

2015-03-02 12:32:56 -0500 received badge  Famous Question
2014-04-24 22:49:34 -0500 answered a question "Path does not exist!" error when making animated gif with ImageSet()

a totally n00b opinion, but could it be a permission issue?

maybe try saving it in a folder on C: drive specifying a path, i.e.

imset.save("c:/users/blah/test.gif", verbose=True)

documentation says if you don't specify a path, one will be randomly generated. http://simplecv.org/docs/SimpleCV.html#i/SimpleCV.ImageClass.ImageSet/save

2014-03-18 10:46:26 -0500 asked a question Controlling Image Over Serial

I'm trying to manipulate an image in SimpleCV based on analog pressure sensor reading from Arduino via serial.

Can't get the values to come through, even though Arduino IDE serial monitor confirms the data is flowing.

I've scaled down my ambitions to this simple code -- adjusting a line's size depending on the reading:

from SimpleCV import *
import sys, time, serial

ser = serial.Serial('COM3', 9600)
disp = Display()
img = Image((1200, 800))

while disp.isNotDone():
  a = ser.readline()
  a = int(a)
  if not a:
    img.dl().line((100, 400), (110, 400), Color.WHITE, width = 80)
    img.drawText("No Reading", 170, 10, color=Color.BLUE, fontsize=40)
  else:
    img.dl().line((100, 400), (a, 400), Color.WHITE, width = 80)
    img.drawText(str(a), 170, 10, color=Color.BLUE, fontsize=40)

  print a
  img.save(disp)
  time.sleep(1)
  img.clearLayers()

Print continues to return 0, no change in image...

I know that the problem isn't

  • serial port -- running a simple readline>print show the numbers are coming across
  • baud rate -- Arduino and Python both set at 9600

Arduino code is

int flexiForcePin = A0; 

void setup(){
  Serial.begin(9600);
}
void loop(){
  int flexiForceReading = analogRead(flexiForcePin);
  Serial.println(flexiForceReading);
  delay (0.1);
  }

I realize that it's probably a simple code mistake befitting my noob level, but rummaging through StackOverflow forums didn't produce an answer.

Would greatly appreciate any help,

Thanks

2014-02-07 10:48:16 -0500 received badge  Popular Question
2014-02-07 10:48:16 -0500 received badge  Notable Question
2014-01-17 23:25:42 -0500 received badge  Editor
2014-01-17 21:33:05 -0500 received badge  Enthusiast
2014-01-14 08:33:47 -0500 received badge  Supporter (source)
2014-01-14 08:33:43 -0500 commented answer No module named SimpleCV

Rodrigo, This is brilliant! Got to the shell for the very first time : ) I ran a simple Hello World program >>> logo = Image("simplecv") >>> logo.sho() and got the SimpleCV logo show! Then it promptly crashed, but this is huge progress from not getting anywhere at all on two different OS ~ Abrigado!

2014-01-10 10:40:57 -0500 answered a question No module named SimpleCV

Having the same problem - could you please post a solution if you found one?

I did a manual install from github. Had to install IPython separately with smth called Anoconda

What puzzled me is that after following the steps I had all of the dependencies, but not SimpleCV itself, not on C: nor in Python 27 libraries.

I ran the automated install again, skipping all the dependencies and now have SimpleCV on C: and see simplecv-1.3-py2.7.egg in Python site-packages. It never did appear under programs though...

when I run "python" then "from SimpleCV import Shell" I get "No module named SimpleCV"

Windows 7 64-bit btw

Appreciate any hints. tks