Search found 526 matches

by iabdalkader
Sat Sep 22, 2018 7:36 am
Forum: Technical Discussion
Topic: use of haar classifier for openmv
Replies: 7
Views: 227

Re: use of haar classifier for openmv

I tried to read converted file but it looks like binary (I dont know how to transform it to array in the program ?). Yes it's a binary file and you don't need to read it, see this example: https://github.com/openmv/openmv/blob/master/scripts/examples/07-Face-Detection/face_detection.py Do you have ...
by iabdalkader
Thu Sep 20, 2018 9:44 pm
Forum: Technical Discussion
Topic: Differentiate between IDE & VCP connections
Replies: 6
Views: 198

Re: Differentiate between IDE & VCP connections

Hi, I've added a new function for that (see github issue), it will be available in the next release.
by iabdalkader
Wed Sep 19, 2018 3:27 pm
Forum: General Topics
Topic: Can't fined lenet.network or cifar10.network files
Replies: 4
Views: 86

Re: Can't fined lenet.network or cifar10.network files

mjs513 wrote:
Wed Sep 19, 2018 3:05 pm
thanks will download the models and give it a try. Any place in particular to put them?
No, the root directory of the SD card will do just fine.
by iabdalkader
Wed Sep 19, 2018 2:59 pm
Forum: Technical Discussion
Topic: Script autostart
Replies: 50
Views: 1772

Re: Script autostart

Hi,
The file needs to be on the camera's storage (flash or SD card).
by iabdalkader
Wed Sep 19, 2018 2:57 pm
Forum: General Topics
Topic: Can't fined lenet.network or cifar10.network files
Replies: 4
Views: 86

Re: Can't fined lenet.network or cifar10.network files

Hi, the pre-trained models are hosted on github:

https://github.com/openmv/openmv/tree/m ... snn/models

They will be included with the next IDE release.
by iabdalkader
Tue Sep 18, 2018 3:17 pm
Forum: Technical Discussion
Topic: use of haar classifier for openmv
Replies: 7
Views: 227

Re: use of haar classifier for openmv

chrisPyres66 wrote:
Mon Sep 17, 2018 4:56 am
if i can lost quality when i convert classifier.xml to classifier.classifier for openmv.
Yes, conversion process quantizes the values.
chrisPyres66 wrote:
Mon Sep 17, 2018 4:56 am
if i can have the same parameters for the same result.
No I wouldn't use the same values, you just have to start with the defaults and tune from there.
by iabdalkader
Fri Sep 14, 2018 8:37 pm
Forum: Technical Discussion
Topic: use of haar classifier for openmv
Replies: 7
Views: 227

Re: use of haar classifier for openmv

Multi scale is like the scale factor not threshold. In general, lower the scale factor to detect images at smaller scales (octaves), and increase the threshold for a higher detection rate (more false positives).
by iabdalkader
Thu Sep 13, 2018 10:35 am
Forum: General Topics
Topic: i've follow the cmsisnn tutotrial,but don't work
Replies: 7
Views: 172

Re: i've follow the cmsisnn tutotrial,but don't work

No it works on RGB and Grayscale, it seems you may have trained it on GS and the prototxt is for RGB. I can't help without the model and prototxt
by iabdalkader
Wed Sep 12, 2018 10:59 am
Forum: General Topics
Topic: i've follow the cmsisnn tutotrial,but don't work
Replies: 7
Views: 172

Re: i've follow the cmsisnn tutotrial,but don't work

Can you attach the prototxt and the model ?
by iabdalkader
Wed Sep 12, 2018 6:34 am
Forum: Technical Discussion
Topic: Build OpenMV from source...
Replies: 8
Views: 125

Re: Build OpenMV from source...

Do you mean debug Python scripts ? I don't know of any tools for debugging MicroPython, if you mean debug the firmware I use stlink v2 + stutil + gdb.
by iabdalkader
Mon Sep 10, 2018 7:11 pm
Forum: General Topics
Topic: AttributeError: 'Image' object has no attribute 'find_number'
Replies: 5
Views: 57

Re: AttributeError: 'Image' object has no attribute 'find_number'

Yes this is an outdated example, I just removed it. See 25-Machine-Learning/nn_lenet.py and the model is here:
https://github.com/openmv/openmv/raw/ma ... et.network
by iabdalkader
Mon Sep 10, 2018 5:12 pm
Forum: Technical Discussion
Topic: use of haar classifier for openmv
Replies: 7
Views: 227

Re: use of haar classifier for openmv

Hi, not sure what the issue is with stages, but you should use the old format and we only support the most basic Haar cascade.
by iabdalkader
Thu Sep 06, 2018 3:02 pm
Forum: General Topics
Topic: Does the openMV works like a web cam?
Replies: 3
Views: 116

Re: Does the openMV works like a web cam?

Hi

No it doesn't work like a web cam.

Please start by installing the IDE:

https://openmv.io/pages/download

And then run a few examples from the File->Examples menu, have fun :)
by iabdalkader
Thu Sep 06, 2018 3:00 pm
Forum: Technical Discussion
Topic: CAN Communication Problem OPENMV CAM M7
Replies: 5
Views: 233

Re: CAN Communication Problem OPENMV CAM M7

Hi everyone, please see this issue:

https://github.com/openmv/openmv/issues/370

The CAN module was disabled by mistake in the last release, and it has been fixed and will be available in the next release. For now you can either use FW 3.0.0 or wait for 3.2.0
by iabdalkader
Thu Sep 06, 2018 2:58 pm
Forum: Technical Discussion
Topic: Filesystem access, PC and pyb simultaneously
Replies: 9
Views: 277

Re: Filesystem access, PC and pyb simultaneously

Hi, you should avoid doing that, writing files from both PC and OMV will corrupt the filesystem. The OS assumes it has exclusive access to the filesystem and it will cache read/writes and won't see changes to the filesystem. There's nothing we can do to fix this issue.
by iabdalkader
Wed Sep 05, 2018 1:48 pm
Forum: Technical Discussion
Topic: Standby consumption
Replies: 10
Views: 416

Re: Standby consumption

I'm attaching the latest firmware, there'a sensor.shutdown function now. And this is the script I used:

https://github.com/openmv/openmv/blob/m ... p_sleep.py

I'm not sure why you're getting higher current, I've asked Kwabena to test it as well.
by iabdalkader
Tue Sep 04, 2018 5:00 pm
Forum: Technical Discussion
Topic: Standby consumption
Replies: 10
Views: 416

Re: Standby consumption

Hi, Try adding this before sensor.sleep(True) sensor.__write_reg(0x4F, 0x18) sensor.sleep(True) This disables the internal core regulator, I know it doesn't make sense but it seems to work. Note sensor.sleep pulls PWDN high regardless of the argument (True or False), so you shouldn't use it if you w...
by iabdalkader
Mon Sep 03, 2018 9:37 am
Forum: Technical Discussion
Topic: Standby consumption
Replies: 10
Views: 416

Re: Standby consumption

I don't have an accurate meter, mine is limited to 1mA. When I use this firmware the current drops to 0 (so it's less than 1mA). Can you make sure you uploaded the modified fw ? Firmware Version should be 3.1.0
by iabdalkader
Thu Aug 30, 2018 9:14 pm
Forum: General Topics
Topic: File Transfer using OpenMV WiFi shield
Replies: 3
Views: 215

Re: File Transfer using OpenMV WiFi shield

Hi, we don't have any streaming protocol implemented, we just send M-JPEG over HTTP.
by iabdalkader
Thu Aug 30, 2018 9:01 pm
Forum: Technical Discussion
Topic: Standby consumption
Replies: 10
Views: 416

Re: Standby consumption

Hi, The sensor draws about 1mA in standby mode (initiated by sensor.sleep) to keep the SSCB/I2C block powered. To get under 1mA, you need to power down the sensor but the FW doesn't have a function for that yet, I'll add it to the next release. For now I attached a modified FW image with sensor.slee...
by iabdalkader
Wed Aug 29, 2018 11:58 am
Forum: General Topics
Topic: Problem related to image.match_descriptor
Replies: 8
Views: 461

Re: Problem related to image.match_descriptor

desc2=image.save_descriptor(kpts2,"/%s.orb"%(FILE_NAME4)) The save_descriptor doesn't return a descriptor object it returns True or raises an exception, so you're passing boolean values to image.match_descriptor() you should use kpts1 and kpts2. Also I don't think that's how globals are used (googl...
by iabdalkader
Wed Aug 29, 2018 11:50 am
Forum: Technical Discussion
Topic: RGB565 to RGB888?
Replies: 5
Views: 218

Re: RGB565 to RGB888?

type11969 wrote:
Wed Aug 29, 2018 8:29 am
Thanks. If I use the get_pixel() command with a bayer format, is a 10b value returned?
No you get 8 bits per pixel (R, G or B depending on the pixel position and the CFA).
type11969 wrote:
Wed Aug 29, 2018 8:29 am
Do you know if a 24b color sensor has ever been tested using the openmv platform?
Not as far as we know.
by iabdalkader
Tue Aug 21, 2018 11:02 am
Forum: Technical Discussion
Topic: USB HID mode
Replies: 16
Views: 501

Re: USB HID mode

Hi, Tested again on Windows 10, the keyboard works fine, and the mouse kinda works, scrolling works but I can't move the cursor, not sure why maybe because I'm testing on a virtual machine. Please follow this example: https://github.com/openmv/openmv/blob/master/scripts/examples/02-Board-Control/hid...
by iabdalkader
Mon Aug 20, 2018 6:54 pm
Forum: Technical Discussion
Topic: USB HID mode
Replies: 16
Views: 501

Re: USB HID mode

Hi,

This works fine on Linux, however it may need an .inf file/driver on Windows. I'll test it and get back to you. In the mean time you should check MicroPython's documentation or search for their driver.
by iabdalkader
Sat Aug 18, 2018 8:06 pm
Forum: General Topics
Topic: OpenMV M7 Cam Latency
Replies: 3
Views: 168

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

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

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: 8
Views: 163

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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: 4
Views: 157

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

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

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

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

Re: emotion recognition

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

https://openmv.io/blogs/news/deep-learn ... p-learning

Go to advanced search