Search found 1923 matches

by kwagyeman
Mon Jun 18, 2018 7:33 pm
Forum: General Topics
Topic: Fail to open .py file..
Replies: 7
Views: 30

Re: Fail to open .py file..

Hi, it looks like there's an error loading the mime-type database that's built-in to the IDE... Not sure what to do to fix this. I've never had this error before. >> MimeDatabase: Error loading :/qt-project.org/qmime/freedesktop.org.xml >> Cannot open :/qt-project.org/qmime/freedesktop.org.xml: No s...
by kwagyeman
Mon Jun 18, 2018 5:51 pm
Forum: General Topics
Topic: Fail to open .py file..
Replies: 7
Views: 30

Re: Fail to open .py file..

So... not to be curt... but, if it's not a binary released by OpenMV how can I know what the problem is? Building the IDE yourself means you have to fix the issues yourself. Just tested opening files in the IDE and everything works on Ubuntu. Um, you may wish to search for the error string in the co...
by kwagyeman
Mon Jun 18, 2018 5:49 pm
Forum: Technical Discussion
Topic: findContours
Replies: 21
Views: 4613

Re: findContours

We're basically using what ARM provided us. The implement work was mostly done by them. We're just taking it from demo quality to usable.
by kwagyeman
Mon Jun 18, 2018 2:49 pm
Forum: General Topics
Topic: Raspberry Pi and OpenMV IDE
Replies: 3
Views: 14

Re: Raspberry Pi and OpenMV IDE

Call the tx_buf_len() method to get the number of bytes stuck in the camera's print() buffer and then tx_buf() to get the actual data. Call fb_dump() to get the image as a numpy array. The exec_script method tells the camera to run a python file.
by kwagyeman
Mon Jun 18, 2018 1:57 pm
Forum: Project Discussion
Topic: Sending an image from open mv to Raspberry Pi over 1000ft
Replies: 4
Views: 26

Re: Sending an image from open mv to Raspberry Pi over 1000ft

Hi, I should be able to work on this Tuesday. Packing for a move right now...
by kwagyeman
Mon Jun 18, 2018 1:47 pm
Forum: Technical Discussion
Topic: findContours
Replies: 21
Views: 4613

Re: findContours

Basic getting started is here: https://github.com/openmv/openmv/tree/master/ml/cmsisnn We'll be rolling all the docs out soon. I'm just moving from Oakland to SF so I'm quite busy with other things. In the mean time focus on training some nets on the PC. 3 layer nets like (Conv -> Pool -> ReLu ) * 3...
by kwagyeman
Mon Jun 18, 2018 1:39 pm
Forum: Technical Discussion
Topic: USB HID mode
Replies: 3
Views: 16

Re: USB HID mode

Mmm, the documentation generator included that file in the doc tree even though there are no links to it.

Not sure how to hide these files. I disabled them in the index but they still show up.
by kwagyeman
Mon Jun 18, 2018 1:37 pm
Forum: General Topics
Topic: Fail to open .py file..
Replies: 7
Views: 30

Re: Fail to open .py file..

Hi, I don't have that issue on windows with v1.9.0. What OS are you on?

I can load your demo file fine.
by kwagyeman
Mon Jun 18, 2018 1:24 pm
Forum: General Topics
Topic: Raspberry Pi and OpenMV IDE
Replies: 3
Views: 14

Re: Raspberry Pi and OpenMV IDE

1: Yes - https://github.com/openmv/openmv/blob/master/tools/pyopenmv.py I'll put some time in to update that script to do everything OpenMV IDE does so it's more robust. 2: OpenMV IDE only controls the OpenMV Cam. The point of the IDE is to provide an Arduino like experience for machine vision work....
by kwagyeman
Mon Jun 18, 2018 12:54 pm
Forum: General Topics
Topic: Fail to open .py file..
Replies: 7
Views: 30

Re: Fail to open .py file..

Hi, can you provide the file?
by kwagyeman
Sun Jun 17, 2018 11:29 am
Forum: Technical Discussion
Topic: findContours
Replies: 21
Views: 4613

Re: findContours

I have no plans to add that feature, you are free to add port the c code for it to the platform if you like. We offer find blobs which finds color blobs. As for finding contours around a object using a CNN outperforms traditional countur algorithms so we have no plans to support find_contours() for ...
by kwagyeman
Fri Jun 15, 2018 2:12 pm
Forum: Technical Discussion
Topic: 16bit 640x480 OV7725 read?
Replies: 3
Views: 32

Re: 16bit 640x480 OV7725 read?

Hi, we technically don't really support RGB565 VGA images. Everything else is supported normally. Just for RGB565 VGA images we don't have the RAM. (And Bayer images are just not supported for processing in general except for jpeg compression. However, we do provide raw byte access to the Bayer imag...
by kwagyeman
Fri Jun 15, 2018 12:17 pm
Forum: General Topics
Topic: Size of an object in an image
Replies: 1
Views: 27

Re: Size of an object in an image

This is a duplicate post. I answered your question in another post.
by kwagyeman
Fri Jun 15, 2018 12:16 pm
Forum: Technical Discussion
Topic: Size of an object in an image
Replies: 1
Views: 22

Re: Size of an object in an image

Yes, have you see the find_blobs() method? It returns a list of color blobs which have a .w() and .h() attribute for the width and height of the blob respectively. You need some way to segment the image using color however.
by kwagyeman
Fri Jun 15, 2018 12:15 pm
Forum: General Topics
Topic: Regarding openmv cam m7
Replies: 2
Views: 39

Re: Regarding openmv cam m7

Hi, we gave away OpenMV Cams with a free case for the updated SparkFun unit. This was a one time thing.
by kwagyeman
Fri Jun 15, 2018 12:14 pm
Forum: Technical Discussion
Topic: 16bit 640x480 OV7725 read?
Replies: 3
Views: 32

Re: 16bit 640x480 OV7725 read?

Hi, when you set the camera to RGB565 at 640x480 there's not enough RAM onboard to store the image so we switch to BAYER format and then debayer the image for JPG file saving support. You can get more than 1 FPS and easily get above 10 FPS.
by kwagyeman
Fri Jun 15, 2018 12:12 pm
Forum: Project Discussion
Topic: parking slot detection
Replies: 1
Views: 22

Re: parking slot detection

Hi, we don't support yolo CNNs yet. However, we're about to release CNN support on the OpenMV Cam at the end of the month. You'll be able to use a sliding window CNN approach. We have a method that does the sliding part for you. So, you just have to make a classifier. Here's the video demo of CNN su...
by kwagyeman
Thu Jun 14, 2018 8:14 am
Forum: Technical Discussion
Topic: How can I build a OpenMV in the IAR?
Replies: 1
Views: 26

Re: How can I build a OpenMV in the IAR?

Hi,the project is open source. So, if you'd like to make such modifications to the move the MicroPython part of the firmware and just keep the vision libs you really should just copy the code files and import them into your IAR project.
by kwagyeman
Wed Jun 13, 2018 7:44 pm
Forum: Technical Discussion
Topic: Camera screen disappear
Replies: 2
Views: 23

Re: Camera screen disappear

Click on the drawer icon on the right of the screen. :)

The little arrow iconon the right.
by kwagyeman
Wed Jun 13, 2018 12:55 pm
Forum: Technical Discussion
Topic: Restart camera from raspberry pi zero
Replies: 4
Views: 31

Re: Restart camera from raspberry pi zero

Hi, in OpenMV IDE see Tools -> Reset OpenMV Cam.
by kwagyeman
Wed Jun 13, 2018 11:14 am
Forum: Technical Discussion
Topic: General question about QtCreator
Replies: 1
Views: 21

Re: General question about QtCreator

Hi, you can't get rid of those messages without messing with the qmake scanning process. They are all not serious errors so I just ignore them. Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version. Project MESSAGE: Running this pr...
by kwagyeman
Tue Jun 12, 2018 1:22 pm
Forum: Technical Discussion
Topic: Sleep Mode - Wakeup with external interrupt
Replies: 5
Views: 48

Re: Sleep Mode - Wakeup with external interrupt

That said, my USB current meter reports 0ma on the M7 when I do this.
by kwagyeman
Tue Jun 12, 2018 1:21 pm
Forum: Technical Discussion
Topic: Sleep Mode - Wakeup with external interrupt
Replies: 5
Views: 48

Re: Sleep Mode - Wakeup with external interrupt

Hi, you need to also shutdown the camera. Please execute the sleep method for the camera sensor.
by kwagyeman
Tue Jun 12, 2018 11:46 am
Forum: Technical Discussion
Topic: haw can y upgrade the firmware
Replies: 1
Views: 26

Re: haw can y upgrade the firmware

Hi, please see our GitHub repo: https://github.com/openmv/openmv/releases.

Go to Tools -> Run Bootloader in OpenMV IDE.
by kwagyeman
Tue Jun 12, 2018 11:44 am
Forum: Technical Discussion
Topic: Can you tell me how you invoke ffmpeg
Replies: 6
Views: 47

Re: Can you tell me how you invoke ffmpeg

Hi, I can change the emulator method to xterm on open suse. However, maybe the OS should define that program pointer so it would work normally? Anyway, as for ImageWriter, yes, when converting it to a video I make an mjpeg image file with each frame and then run ffmpeg on that. Similarly, when I wri...
by kwagyeman
Tue Jun 12, 2018 2:56 am
Forum: General Topics
Topic: I2C.SLAVE
Replies: 8
Views: 76

Re: I2C.SLAVE

Code entry points: https://github.com/openmv/micropython/blob/master/ports/stm32/pyb_i2c.c#L830 https://github.com/openmv/openmv/blob/master/src/sthal/f7/src/stm32f7xx_hal_i2c.c#L1016 https://github.com/openmv/openmv/blob/master/src/sthal/f7/src/stm32f7xx_hal_i2c.c#L1597 Not sure if you want to disa...
by kwagyeman
Mon Jun 11, 2018 10:18 pm
Forum: General Topics
Topic: I2C.SLAVE
Replies: 8
Views: 76

Re: I2C.SLAVE

I recommend heavily to ready what the underlying C code is doing for making an I2C slave and looking at the M7 HAL I2C code. It will help determine what's wrong.

(Obviously you shouldn't need to do this but... This is where we are).
by kwagyeman
Mon Jun 11, 2018 10:17 pm
Forum: General Topics
Topic: I2C.SLAVE
Replies: 8
Views: 76

Re: I2C.SLAVE

Look at the external int class under pyb. This let's you make rising or falling edge interrupts. That said, while the camera is fast enough to setup access for the I2C I'm not sure hw will handle not seeing the I2C start condition. Note, the HW functionality must be wrapped in exception handlers. I2...
by kwagyeman
Mon Jun 11, 2018 8:21 pm
Forum: General Topics
Topic: I2C.SLAVE
Replies: 8
Views: 76

Re: I2C.SLAVE

Google info: https://www.google.com/search?q=MicroPython+I2c+slave&oq=MicroPython+I2c+slave&aqs=chrome..69i57j0l2.6411j0j4&client=ms-android-verizon&sourceid=chrome-mobile&ie=UTF-8 Um, so, the slave hardware works if you setup to transfer a byte before the master needs it and then sit there waiting ...
by kwagyeman
Mon Jun 11, 2018 8:11 pm
Forum: General Topics
Topic: I2C.SLAVE
Replies: 8
Views: 76

Re: I2C.SLAVE

Um, I have actually no idea how to do this right. See the picture emulation i2c example for the best I2C code I could come up with. The general problem is that the camera will be busy doing work when an I2C transaction happens which means that you would be there to service the I2C hardware which wan...
by kwagyeman
Mon Jun 11, 2018 6:10 pm
Forum: Technical Discussion
Topic: I2C pullups
Replies: 7
Views: 48

Re: I2C pullups

Send a github PR?

We need the documentation help.
by kwagyeman
Mon Jun 11, 2018 5:13 pm
Forum: Technical Discussion
Topic: I2C pullups
Replies: 7
Views: 48

Re: I2C pullups

That code does not turn pull ups on. On our I2C boards we add pull ups. On the camera we don't. If you'd like to turn pull ups on in software then make a pin object and set pull ups on when you make it. The pin object will modify some regs in hardware that I2C will just silently benefit from. It won...
by kwagyeman
Mon Jun 11, 2018 12:47 pm
Forum: Technical Discussion
Topic: Can you tell me how you invoke ffmpeg
Replies: 6
Views: 47

Re: Can you tell me how you invoke ffmpeg

Most likely the linux program just can't run due to a binary error and it just crashes silently. So, you may need to re-build.
by kwagyeman
Mon Jun 11, 2018 12:46 pm
Forum: Technical Discussion
Topic: Can you tell me how you invoke ffmpeg
Replies: 6
Views: 47

Re: Can you tell me how you invoke ffmpeg

Hi, here's the code:

https://github.com/openmv/qt-creator/bl ... s.cpp#L549

Please send me the command line you used to launch it and I can add the fix.
by kwagyeman
Mon Jun 11, 2018 11:34 am
Forum: Technical Discussion
Topic: I2C pullups
Replies: 7
Views: 48

Re: I2C pullups

You have to enable pull ups on the pins using the PIN object. There aren't any pull ups externally. This is because the STM32 chips can pull pins high and low.
by kwagyeman
Mon Jun 11, 2018 1:08 am
Forum: General Topics
Topic: Saving the image in raspberry pi
Replies: 3
Views: 45

Re: Saving the image in raspberry pi

Hi, when you add print() to your program this sends data through the serial port to whatever PC the camera is connected to. So, go to Tools -> Save Script to OpenMV Cam. Then Tools -> Reset OpenMV Cam. Whatever script with print statements you save on the camera will now send data out onto the seria...
by kwagyeman
Sun Jun 10, 2018 12:44 pm
Forum: Technical Discussion
Topic: Open a video file from computer with OpenMV IDE
Replies: 4
Views: 58

Re: Open a video file from computer with OpenMV IDE

I see, to do this you'll need me to create a converter in OpenMV IDE that allows you to turn a video into one of the RAW video capture files the OpenMV Cam can read. I have a converter for turning that into a normal video file but not the other way around. This is a good feature request. Can you mak...
by kwagyeman
Sat Jun 09, 2018 5:44 pm
Forum: General Topics
Topic: any H7 updates?
Replies: 9
Views: 96

Re: any H7 updates?

Hi, if you have an example script that fails with UART1 please create a code necessary to debug the issue and great a github issue ticket for it and we'll fix it.
by kwagyeman
Sat Jun 09, 2018 5:16 pm
Forum: General Topics
Topic: any H7 updates?
Replies: 9
Views: 96

Re: any H7 updates?

The border should be the same width as the internal black border. I can update the generator in the IDE to make this more clear. Maybe add another black border. This way you won't put you hands in the white one. In the mean-time. Embed the images the IDE generates inside of another picture so this i...
by kwagyeman
Sat Jun 09, 2018 5:13 pm
Forum: Technical Discussion
Topic: MemoryError when read wave frames
Replies: 10
Views: 86

Re: MemoryError when read wave frames

Are you on an M4?
by kwagyeman
Sat Jun 09, 2018 5:11 pm
Forum: Technical Discussion
Topic: Sleep Mode - Wakeup with external interrupt
Replies: 5
Views: 48

Re: Sleep Mode - Wakeup with external interrupt

Hi, machine and pyb are basically the same thing. There's just some re-factoring going on with MicroPython for those two modules. Anyway, you shouldn't put code... in your call back. Instead, just have a very simple method that immediately exits. What will happen is that after standby the camera wil...
by kwagyeman
Sat Jun 09, 2018 4:11 pm
Forum: General Topics
Topic: any H7 updates?
Replies: 9
Views: 96

Re: any H7 updates?

The FPS doubles. However, ST... allocated the RAM weirdly on the H7 and we only gain 128 KB extra in the frame buffer. At 160x120 grayscale we have to store 8 copies of the image in RAM basically. Plus the default image. So, 160x120*(8+1) = 172800 bytes and the rest of the memory is used for a large...
by kwagyeman
Sat Jun 09, 2018 1:54 pm
Forum: General Topics
Topic: Higher FPS
Replies: 36
Views: 1339

Re: Higher FPS

Hi, any news?
by kwagyeman
Sat Jun 09, 2018 1:53 pm
Forum: General Topics
Topic: OpenMV IDE 1.9.0 "stopping" issue
Replies: 17
Views: 228

Re: OpenMV IDE 1.9.0 "stopping" issue

What's the status on all of this?
by kwagyeman
Sat Jun 09, 2018 1:50 pm
Forum: General Topics
Topic: any H7 updates?
Replies: 9
Views: 96

Re: any H7 updates?

Um, we're still working on getting the FLIR sensor operational. But, otherwise it's ready.

See this script for more AprilTag distance:

https://github.com/openmv/openmv/blob/m ... riltags.py
by kwagyeman
Sat Jun 09, 2018 1:49 pm
Forum: General Topics
Topic: Performance question
Replies: 1
Views: 21

Re: Performance question

Its because the camera has to JPEG compress images to stream to the IDE. When the IDE is not connected it does not need to do this.
by kwagyeman
Sat Jun 09, 2018 11:49 am
Forum: General Topics
Topic: use of blob.cx()
Replies: 7
Views: 79

Re: use of blob.cx()

Hi, it's not really possible to get the distance to and object using just one camera and vision reliablely. The size of the object on screen is related to the distance in a 1/d^2 way. E.g. as the object gets farther away the number of pixels in the object changes minimally related to the distance. T...
by kwagyeman
Sat Jun 09, 2018 3:41 am
Forum: General Topics
Topic: Problem in update the firmware latest version
Replies: 4
Views: 45

Re: Problem in update the firmware latest version

Here's the latest M4 image. Use Tools -> Run bootloader to update. Either the firmware.bin (faster to program) or the openmv.dfu file will work.

Go to advanced search