Search found 1913 matches

by kwagyeman
Sun Jun 17, 2018 11:29 am
Forum: Technical Discussion
Topic: findContours
Replies: 18
Views: 4594

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: 30

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: 22

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: 19

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: 33

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: 30

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: 23

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: 21

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: 28

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: 16

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: 39

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: 39

Re: Sleep Mode - Wakeup with external interrupt

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

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: 37

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: 64

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: 64

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: 64

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: 64

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: 64

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: 41

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: 41

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: 37

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: 37

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: 41

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: 44

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: 56

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: 90

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: 90

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: 82

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: 39

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: 90

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: 1337

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: 225

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: 90

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: 19

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: 76

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: 43

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.
by kwagyeman
Sat Jun 09, 2018 3:30 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 112

Re: LCD type

Um, also, if you'd like... please submit a PR to the LCD module and add more support to it for things like windowing and higher res with the 320x240 screen. OpenMV Can manufacture that and share profits.
by kwagyeman
Sat Jun 09, 2018 3:29 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 112

Re: LCD type

The H7 will be able to do 100 MHz SPI. Not sure if the LCD can handle that but if it can that would be 2X the frame rate.
by kwagyeman
Sat Jun 09, 2018 3:16 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 112

Re: LCD type

Fixed. Run your original code with this.
by kwagyeman
Sat Jun 09, 2018 2:54 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 112

Re: LCD type

QQVGA is 160*120*2=38400 bytes... which is less than 65535.

I'll have a firmware binary fix in a bit.

...

And no, you're great.
by kwagyeman
Sat Jun 09, 2018 2:35 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 112

Re: LCD type

I found the issue. In the ST HAL code (from ST Microelectronics) they do this: HAL_StatusTypeDef HAL_SPI_Transmit_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size) And MicroPython calls it with this: HAL_SPI_Transmit_DMA(self->spi, (uint8_t*)src, len) Where len is size_t (32-bits). So, the...
by kwagyeman
Sat Jun 09, 2018 1:48 am
Forum: General Topics
Topic: Saving the image in raspberry pi
Replies: 3
Views: 44

Re: Saving the image in raspberry pi

Hi, you've asked this question multiple times and you have to write a program to receive the image from the camera to save to the Pi. Unless you need to do this automatically you can use OpenMV IDE to manually save images. If you need to do it automatically, then first, do you know how to write a pr...
by kwagyeman
Fri Jun 08, 2018 4:51 pm
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 112

Re: LCD type

MicroPython doesn't make a copy of the data. The buffer operation quite literally reads directly from the frame buffer data and sends that out of the SPI bus. I can verify exactly what happens with this tonight if you post your complete code. If you have a SPI probe I'd verify that the LCD screen is...
by kwagyeman
Fri Jun 08, 2018 12:40 pm
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 112

Re: LCD type

I don't know what that screen expects so it's hard for me to help you. However, you can manually disable interrupts of you feel they are the problem. See the pyb module. The methods to disable and re-enable interrupts are right there. Just call those methods before and after sending the data. That s...
by kwagyeman
Fri Jun 08, 2018 12:36 pm
Forum: General Topics
Topic: Problem with openmv cam
Replies: 1
Views: 34

Re: Problem with openmv cam

Hi, I'll send you an M7 camera. The M4 is kinda bad. Where are you located? Please tell us via email.
by kwagyeman
Fri Jun 08, 2018 12:35 pm
Forum: Technical Discussion
Topic: Open a video file from computer with OpenMV IDE
Replies: 4
Views: 56

Re: Open a video file from computer with OpenMV IDE

The OpenMV Cam cannot read video files from the PC. The system is a microcontroller running MicroPython. While you can program it in Python you don't have access to desktop python libraries. MicroPython is there to make it do whatever you need easy via a scripting language interface. Anyway, what is...

Go to advanced search