Search found 501 matches

by iabdalkader
Sat Aug 18, 2018 8:06 pm
Forum: General Topics
Topic: OpenMV M7 Cam Latency
Replies: 1
Views: 12

Re: OpenMV M7 Cam Latency

Hi, Sounds about right, @QVGA you get 84FPS so a frame every ~12ms. Worst case scenario 12ms + time to detect the blob. If you can lower the exposure the max time will be less, ex. sensor.set_auto_exposure(False, exposure_us=4000) outputs about ~100FPS (10ms+ blob time should be 13ms total). Hello, ...
by iabdalkader
Sat Aug 18, 2018 7:54 pm
Forum: General Topics
Topic: Find_blobs() - maximum resolution
Replies: 1
Views: 14

Re: Find_blobs() - maximum resolution

Hi,

The short answer is no. The maximum image size that can be stored in RAM on the F7 is 300KBs (RGB565@VGA is 640*480*2 = 600KBs). When the image size doesn't fit in RAM the format is automatically switched to BAYER which is not supported by any image processing functions.
by iabdalkader
Sat Aug 18, 2018 7:02 pm
Forum: General Topics
Topic: Continously send images to pc
Replies: 1
Views: 26

Re: Continously send images to pc

Hi, You can use our pyopenmv.py module to grab frames from the camera in Python: https://github.com/openmv/openmv/blob/master/tools/pyopenmv.py And there's an example script using this module and pygame to draw the frames: https://github.com/openmv/openmv/blob/master/tools/pyopenmv_fb.py Does this h...
by iabdalkader
Fri Aug 17, 2018 7:04 pm
Forum: Technical Discussion
Topic: Image differencing three separate parts of camera view
Replies: 2
Views: 19

Re: Image differencing three separate parts of camera view

I think you can use mask arg to do what you want (difference parts of the image), otherwise I don't see ROI implemented for those functions.
by iabdalkader
Mon Aug 13, 2018 6:52 pm
Forum: General Topics
Topic: Openmv 2.0.0 Firmware 3.0.0 no framebuffer display
Replies: 11
Views: 132

Re: Openmv 2.0.0 Firmware 3.0.0 no framebuffer display

Using color bars mode should help narrow down the issue:

Code: Select all

sensor.set_colorbar(True)
by iabdalkader
Fri Aug 10, 2018 7:25 pm
Forum: Technical Discussion
Topic: 8bit grey scale
Replies: 2
Views: 52

Re: 8bit grey scale

Hi, we just extract the Y channel from YUV.
by iabdalkader
Fri Aug 10, 2018 4:18 pm
Forum: Technical Discussion
Topic: Saving the BAYER raw for sensor calibration
Replies: 9
Views: 176

Re: Saving the BAYER raw for sensor calibration

Note the issue with saving BAYER using ".raw" or no extension has been fixed, and will be available in the next release.
by iabdalkader
Wed Aug 08, 2018 3:56 pm
Forum: Technical Discussion
Topic: resize the framebuffer with copy function
Replies: 2
Views: 58

Re: resize the framebuffer with copy function

What do you mean by resizing the framebuffer ? You can lower the resolution or use windowing to crop the image if you want a smaller FB.
by iabdalkader
Tue Aug 07, 2018 4:16 pm
Forum: General Topics
Topic: Convert .xml to .cascade
Replies: 5
Views: 108

Re: Convert .xml to .cascade

FeKTapano wrote:
Mon Aug 06, 2018 4:02 pm
Now instead of creating a blank file, when I open my xml with the converter script, no file is generated whatsoever.
Please run the following command from the command line on Linux:

Code: Select all

python2 cascade_convert.py cascade.xml
by iabdalkader
Sun Aug 05, 2018 9:05 pm
Forum: Technical Discussion
Topic: USB HID mode
Replies: 12
Views: 300

Re: USB HID mode

Hello, * i'm use google translate I add in my file (boot.txt) this program: Boot.py import pyb pyb.main ('main.py') # main script to run after this one # pyb.usb_mode ('VCP + MSC') pyb.usb_mode ('VCP + HID') then I renamed my file (boot.txt) => (boot.py) then I add in my OpenMV IDE this program: Op...
by iabdalkader
Tue Jul 31, 2018 11:34 am
Forum: General Topics
Topic: Wi-Fi
Replies: 1
Views: 70

Re: Wi-Fi

Hi, please see the examples in the IDE File->Examples->14-WiFi-Shield menu.
by iabdalkader
Mon Jul 30, 2018 10:59 pm
Forum: Technical Discussion
Topic: USB HID mode
Replies: 12
Views: 300

Re: USB HID mode

Hi, no I didn't test it I just enabled it. I'll test it and get back to you.
by iabdalkader
Sat Jul 28, 2018 11:57 pm
Forum: Technical Discussion
Topic: Saving the BAYER raw for sensor calibration
Replies: 9
Views: 176

Re: Saving the BAYER raw for sensor calibration

kwagyeman wrote:
Thu Jul 26, 2018 11:49 am
Hi, we don't support saving bayer formats using the file system methods. Instead you have to write it out as a RAW binary file:
Actually we do now, you can save as ".raw" or leave the extension and the code will figure it out.
by iabdalkader
Thu Jul 26, 2018 8:38 pm
Forum: Technical Discussion
Topic: USB HID mode
Replies: 12
Views: 300

Re: USB HID mode

Julo7139 wrote:
Thu Jul 26, 2018 3:31 pm
Hello i'm French
do you have an example to send data using the mouse mode?

Thank you
https://docs.micropython.org/en/latest/ ... hlight=hid
by iabdalkader
Tue Jul 24, 2018 9:18 pm
Forum: Technical Discussion
Topic: Help for haar cascade
Replies: 3
Views: 118

Re: Help for haar cascade

Hi,

If it's not detecting the object, try a higher threshold and/or lower scale.
by iabdalkader
Mon Jul 23, 2018 12:49 pm
Forum: Technical Discussion
Topic: Use the OpenMV cam M7 with CMSIS-NN
Replies: 12
Views: 309

Re: Use the OpenMV cam M7 with CMSIS-NN

Hi,

The smile.network and cifar10_fast.network work on the F7 (maybe we should rename cifar10_fast to cirfar10_f7). Note the F7 heap is ~52KBs.
by iabdalkader
Sun Jul 22, 2018 11:40 am
Forum: Technical Discussion
Topic: CNN MemoryError
Replies: 4
Views: 121

Re: CNN MemoryError

Hi, yes 164KBs is larger than the F7's heap which is only ~52K (and 240KBs on the H7). The network is allocated on the heap, so it needs to be less than 52KBs (for example, the reduced cifar10_fast.network is ~33KBs). There's no restriction on the number of layers, you can have as many as you want a...
by iabdalkader
Sat Jul 21, 2018 12:42 pm
Forum: Technical Discussion
Topic: Help for haar cascade
Replies: 3
Views: 118

Re: Help for haar cascade

Hi, 1) Follow Open CV tutorials to train a haar cascade: https://docs.opencv.org/3.3.0/dc/d88/tutorial_traincascade.html https://github.com/mrnugget/opencv-haar-classifier-training https://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html * Note you have to use -baseFormatSave to...
by iabdalkader
Tue Jul 17, 2018 2:43 pm
Forum: Technical Discussion
Topic: how Debug firmware
Replies: 2
Views: 87

Re: how Debug firmware

You don't need to change the linker script, just use the main firmware image with gdb and break on main() and it will work. For example:

Code: Select all

arm-none-eabi-gdb -ex "tar ext:4242" ../firmware/OPENMV3/firmware.elf
(gdb) break main
by iabdalkader
Mon Jul 16, 2018 8:39 am
Forum: Technical Discussion
Topic: Controller Area Network
Replies: 2
Views: 62

Re: Controller Area Network

Hi, unfortunately CAN was disabled in firmware 3.0 by mistake, I just fixed this, so it's going to be re-enabled in the next release. You can use any older firmware for now if you like or wait for the next release.
by iabdalkader
Fri Jul 13, 2018 8:34 am
Forum: General Topics
Topic: Awesome product & general thanks
Replies: 2
Views: 90

Re: Awesome product & general thanks

Thank you for the kind words, it's always nice to meet an original OMV backer :)
by iabdalkader
Fri Jul 13, 2018 8:33 am
Forum: Technical Discussion
Topic: how to detect the water line
Replies: 7
Views: 147

Re: how to detect the water line

If you could put a colored float in the tubes it will be a lot easier to detect.
by iabdalkader
Tue Jul 10, 2018 2:21 pm
Forum: General Topics
Topic: Wifi Shield
Replies: 5
Views: 125

Re: Wifi Shield

Hi, Using the connect example I am able to connect to my local wifi network using an OpenMV M7 and a wifi shield. However, I was wondering if there is a way to see the video/upload code over wifi when I am not connected and if so if there are instructions somewhere for that? I.e. if that was unclea...
by iabdalkader
Sun Jul 01, 2018 5:52 pm
Forum: Technical Discussion
Topic: emotion recognition
Replies: 2
Views: 86

Re: emotion recognition

Actually we just posted the tutorial, here's the link

https://openmv.io/blogs/news/deep-learn ... p-learning
by iabdalkader
Sun Jul 01, 2018 5:49 pm
Forum: Technical Discussion
Topic: emotion recognition
Replies: 2
Views: 86

Re: emotion recognition

Yes I think this a perfect application for OpenMV CNN, especially that we have a fast face detector (see the smile detection example). We're going to release the updated fw, ide and examples very soon also we're posting a training tutorial, so you could try to train it yourself if you like. If the n...
by iabdalkader
Sat Jun 30, 2018 12:45 pm
Forum: Technical Discussion
Topic: New firmware release
Replies: 6
Views: 166

Re: New firmware release

The firmware is out already, the IDE update will follow in a few days. if you don't want to wait for the IDE update you can download the images from github and upload them to the camera:

https://github.com/openmv/openmv/releases/tag/3.0
by iabdalkader
Thu Jun 28, 2018 12:16 pm
Forum: Technical Discussion
Topic: keypoints and color detection
Replies: 2
Views: 89

Re: keypoints and color detection

Hi, keypoints will support RGB images in the new release.
by iabdalkader
Tue Jun 26, 2018 10:40 am
Forum: General Topics
Topic: starting speed of openmv
Replies: 4
Views: 156

Re: starting speed of openmv

Also if the Flash file system is corrupted it takes time to create a fresh fs.
by iabdalkader
Mon Jun 25, 2018 10:19 am
Forum: Technical Discussion
Topic: This method is unavailable on your OpenMV Cam version.
Replies: 6
Views: 174

Re: This method is unavailable on your OpenMV Cam version.

Great.. When will be your release date of OpenMV4-H7 ? I'd love to get one... Or, is there an early-bird price ? We're going to kickstart it soon. What's more, from the name, OpenMV3-F7 should come with a STM32F7? While OpenMV4-H7 comes with a STM32H7? That's true. https://www.youtube.com/watch?v=1...
by iabdalkader
Sun Jun 24, 2018 6:58 pm
Forum: Technical Discussion
Topic: camera matrix
Replies: 12
Views: 283

Re: camera matrix

I am unable to find calibration.py in the OpenMV repository. Could you please point me to the link? calibration.py is an Open-CV script https://github.com/opencv/opencv/blob/master/samples/python/calibrate.py I am using QQVGA for ar tags else there is a memory issue. Is there something else i need ...
by iabdalkader
Sun Jun 24, 2018 6:33 pm
Forum: General Topics
Topic: use of blob.cx()
Replies: 9
Views: 283

Re: use of blob.cx()

sri wrote:
Tue Jun 12, 2018 4:56 am
hi,somehow blob.cx() gives the approximate value its enough for me.In my project i have to take the snapshot and than i have to send the different blob.cx() value to the raspberry pi how can i do this.
Hi, please search the forums for serial you'll find many examples for doing that.
by iabdalkader
Sun Jun 24, 2018 6:24 pm
Forum: Technical Discussion
Topic: camera matrix
Replies: 12
Views: 283

Re: camera matrix

You can calibrate the camera the same way using Open*CV*. i.e. capture images of the squares, save to SD run the calibrate.py script. These are my results: 1.7mm VGA RMS: 0.441215118532 camera matrix: [[ 292.03384947 0. 297.59432695] [ 0. 291.68951254 221.76270058] [ 0. 0. 1. ]] distortion coefficie...
by iabdalkader
Sun Jun 24, 2018 5:57 pm
Forum: General Topics
Topic: UART Loop
Replies: 5
Views: 213

Re: UART Loop

Try a higher timeout_char (1000).
by iabdalkader
Sun Jun 24, 2018 5:41 pm
Forum: Technical Discussion
Topic: This method is unavailable on your OpenMV Cam version.
Replies: 6
Views: 174

Re: This method is unavailable on your OpenMV Cam version.

* Which version is the NEWEST with all functions enabled? The camera you have is the original OpenMV2-M4 (the kickstarter camera). I think it's at least 5 years old now (the date is the production run/rev date). The newest camera with everything enabled is the OpenMV4-H7 which is Not released yet a...
by iabdalkader
Sun Jun 24, 2018 8:32 am
Forum: Technical Discussion
Topic: saving video on SD card
Replies: 39
Views: 1505

Re: saving video on SD card

Hi, I am using the code in this discussion but am unable to get images or videos (jpg or mjpeg) to save. The file name will only show up on my computer once I have disconnected the device and reconnected it but will have zero bytes in it. Any help would be greatly appreciated! I am using a mac with...
by iabdalkader
Thu Jun 21, 2018 2:30 pm
Forum: General Topics
Topic: Would it be possible to perform the canny edge detection just inside a roi?
Replies: 2
Views: 128

Re: Would it be possible to perform the canny edge detection just inside a roi?

Hi, there's a bug in Canny edge ROI, the code allocates the gradient array for the whole image (regardless of ROI). It's now fixed and I confirmed it works on OMV3, 4 and will be included in the next release.
by iabdalkader
Wed Jun 20, 2018 2:26 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 42
Views: 12067

Re: implement own Haar-Cascade

Hi download the script like so: wget https://raw.githubusercontent.com/openmv/openmv/master/usr/openmv-cascade.py The link above seems not existed any longer. I get it from https://github.com/openmv/openmv/blob/master/ml/haarcascade/cascade_convert.py but when I ran it with attached xml file on ubu...
by iabdalkader
Tue Jun 19, 2018 9:39 pm
Forum: Technical Discussion
Topic: USB HID mode
Replies: 12
Views: 300

Re: USB HID mode

Yes from github if u don't want to wait for the next release.
by iabdalkader
Tue Jun 19, 2018 7:53 pm
Forum: Technical Discussion
Topic: USB HID mode
Replies: 12
Views: 300

Re: USB HID mode

I re-enabled boot.py, you'll be able to use it as usual (note only VCP+MSC and VCP+HID are tested and working, I wouldn't try anything else).
by iabdalkader
Mon Jun 18, 2018 12:30 am
Forum: Technical Discussion
Topic: connection between raspberrypi and openmvcam
Replies: 17
Views: 457

Re: connection between raspberrypi and openmvcam

I'd use UART to avoid the SPI master/slave issue, and you don't need high baudrates if you're just sending the detection results.
by iabdalkader
Mon Jun 18, 2018 12:27 am
Forum: Technical Discussion
Topic: USB HID mode
Replies: 12
Views: 300

Re: USB HID mode

HID mode is not enabled, I'll see if I can enable it before the next release.

Note: main.py and boot.py can run from SD or Flash the same, but we don't use boot.py so it's ignored.
by iabdalkader
Fri Jun 15, 2018 1:26 am
Forum: General Topics
Topic: Regarding openmv cam m7
Replies: 2
Views: 132

Re: Regarding openmv cam m7

Is that the MCU serial number ? From the user's perspective they shouldn't be different.
by iabdalkader
Fri Jun 15, 2018 1:24 am
Forum: General Topics
Topic: my own cascade
Replies: 6
Views: 257

Re: my own cascade

Yes we will be releasing a new firmware for M4 soon.
by iabdalkader
Tue Jun 12, 2018 8:19 pm
Forum: Technical Discussion
Topic: MemoryError when read wave frames
Replies: 10
Views: 230

Re: MemoryError when read wave frames

Just tested, it seems not fix my issue on M7. do you have an estimate of memory cost of openmv itself excluding framebuffer? Thanks Hi, Add a gc.collect at the end of detect_face_image: self.check_head_sideway(rotate_angle) gc.collect() And gc.collect() before reading frames: gc.collect() frames = ...
by iabdalkader
Tue Jun 12, 2018 6:41 pm
Forum: General Topics
Topic: my own cascade
Replies: 6
Views: 257

Re: my own cascade

Seems you're on a very old firmware, please update the firmware first.
by iabdalkader
Sat Jun 09, 2018 7:42 pm
Forum: Technical Discussion
Topic: mjpeg_streaming_ap not support ios devices
Replies: 2
Views: 124

Re: mjpeg_streaming_ap not support ios devices

On Android I use the MJpegViewer App.
by iabdalkader
Sat Jun 09, 2018 4:14 pm
Forum: Technical Discussion
Topic: MemoryError when read wave frames
Replies: 10
Views: 230

Re: MemoryError when read wave frames

This is just a fragmented memory issue, the scripts run fine on H7. I think most of memory is consumed by just loading/parsing/compiling the modules wave and chunk. This seems to fix it: frames = f.readframes(frame_rate) self.dac.write_timed(frames, frame_rate) del frames delay(1000) gc.collect()

Go to advanced search