Search found 2404 matches

by kwagyeman
Sun Nov 18, 2018 6:25 pm
Forum: Technical Discussion
Topic: sensor.snapshot() array manipulation
Replies: 3
Views: 10

Re: sensor.snapshot() array manipulation

Yeah, just do then:

Code: Select all

for i in range(img.width()):
    rect = (i, 0, 1, img.height()) # x y w h
    stats = img.get_stats(roi = rect)
    print(stats)
by kwagyeman
Sun Nov 18, 2018 3:51 pm
Forum: Technical Discussion
Topic: sensor.snapshot() array manipulation
Replies: 3
Views: 10

Re: sensor.snapshot() array manipulation

Hi, the image array is not a numpy array. The purpose of the python API is to stich together image processing operations. You should avoid pixel wise access. That said you can use a get_pixel() and set_pixel() method to do things but you should look through our API for a method that does something s...
by kwagyeman
Fri Nov 16, 2018 12:16 pm
Forum: Technical Discussion
Topic: Copying the data matrix payload content to Clip board
Replies: 1
Views: 86

Re: Copying the data matrix payload content to Clip board

Hi, the data matrix decoding is running on the OpenMV Cam. You have to transfer it via serial to the PC. Please use the print() method and write an application on the PC to read the print() statements.
by kwagyeman
Fri Nov 16, 2018 12:15 pm
Forum: Project Discussion
Topic: SPI implementation code with Ethernet board
Replies: 3
Views: 362

Re: SPI implementation code with Ethernet board

Not really, you'll need to design an interposer board yourself. This isn't something we built the system for. Sorry I can't be of more help.
by kwagyeman
Fri Nov 16, 2018 12:44 am
Forum: Technical Discussion
Topic: Difficulty in decoding few data matrix
Replies: 1
Views: 60

Re: Difficulty in decoding few data matrix

Hi, we can't decode data matrixes like that. They aren't even close to the binary black and white ones that the library is meant for. If you want to decode a data matrixes like that you're going to have to preprocess the image to get a black and white image. What I mean by this is to look at the dat...
by kwagyeman
Thu Nov 15, 2018 11:04 pm
Forum: Technical Discussion
Topic: W5500 Ethernet controller on OpenMV
Replies: 1
Views: 59

Re: W5500 Ethernet controller on OpenMV

It looks like you need to edit the MakeFile to include the wiznet c code. Usually, this means you need to find what .c file makes that thing up and add it to the MakeFile which compiles the C file and you also need to edit the main MakeFile that links the .o files.
by kwagyeman
Thu Nov 15, 2018 6:59 pm
Forum: General Topics
Topic: blob detection
Replies: 11
Views: 547

Re: blob detection

Yes
by kwagyeman
Thu Nov 15, 2018 11:52 am
Forum: General Topics
Topic: OpenMV H7 on NUCLEO-H743ZI board
Replies: 13
Views: 644

Re: OpenMV H7 on NUCLEO-H743ZI board

I have to find some time to work on the Ili9341 driver.

As for the schematic, we were going to release it after the Kickstarter but have been asked by our partners to delay that until delivery least the system starts getting cloned immediately. Um, email me for an I/O pin map.
by kwagyeman
Thu Nov 15, 2018 11:06 am
Forum: Project Discussion
Topic: Mount for holding M7 Camera on a tripod
Replies: 1
Views: 56

Re: Mount for holding M7 Camera on a tripod

Thanks! I'll add this to the product pages!
by kwagyeman
Wed Nov 14, 2018 12:23 pm
Forum: General Topics
Topic: can't stop working.
Replies: 1
Views: 71

Re: can't stop working.

This issue is related to some USB commands being joined when sent to the camera. I can cut another version of the MAC IDE that may fix the issue. I can do this tonight if needed. Otherwise, if you have a windows or linux VM things work more smoothly on that. We've noticed a small percentage of Mac m...
by kwagyeman
Wed Nov 14, 2018 12:13 am
Forum: Technical Discussion
Topic: edge detection
Replies: 13
Views: 423

Re: edge detection

Hi, the code gets stuck here:

Code: Select all

while(True):
 clock.tick() # Track elapsed milliseconds between snapshots().
def edgedetect(img, edgeNum, a):
Because you've broken the while loop.
by kwagyeman
Tue Nov 13, 2018 12:00 pm
Forum: Technical Discussion
Topic: Use OpenMV with D1 Mini shields
Replies: 2
Views: 94

Re: Use OpenMV with D1 Mini shields

Send a PR to the boards repo: https://github.com/openmv/openmv-boards
by kwagyeman
Tue Nov 13, 2018 11:59 am
Forum: General Topics
Topic: blob detection
Replies: 11
Views: 547

Re: blob detection

Um, the algorithm for that is somewhat custom. Basically you scan the image looking for pixels that match the thresholds... once you find one you then recursively connect all pixels that share the same thresholds and keep track of what pixels you've visited. Then you continue scanning after enumerat...
by kwagyeman
Tue Nov 13, 2018 11:55 am
Forum: Technical Discussion
Topic: Pull up on Nrst pin
Replies: 2
Views: 103

Re: Pull up on Nrst pin

The product seems to work. There might be an internal pull-up too. Usually those are weak however.
by kwagyeman
Mon Nov 12, 2018 11:36 pm
Forum: Project Discussion
Topic: maximum framerate of video recording
Replies: 3
Views: 138

Re: maximum framerate of video recording

Hi, the OpenMV Cam M7/H7 can record video... but, only in the demo sense. There's no fifo onboard the system so when the SD card has to do an erase we hicup and you can see this on the video. You can hit about 10 FPS at 320x240 on the M7 and 30 FPS on the H7. The devices aren't made to record video....
by kwagyeman
Mon Nov 12, 2018 12:36 pm
Forum: General Topics
Topic: blob detection
Replies: 11
Views: 547

Re: blob detection

I see. We have no metric for this. Um, cx and cy are just the sum of x/y pixel positions in the tracked color list divided by the number of pixels tracked. Google centroid. If you want a tracking confidence... then just use the density() method to determine if the object is solid or not. density is ...
by kwagyeman
Mon Nov 12, 2018 12:10 pm
Forum: General Topics
Topic: blob detection
Replies: 11
Views: 547

Re: blob detection

? You have to write some more detail on what you want.
by kwagyeman
Sun Nov 11, 2018 8:57 pm
Forum: General Topics
Topic: M3 vs M7
Replies: 2
Views: 97

Re: M3 vs M7

The original camera has almost no memory (RAM). So, it's very hard to use beyond color tracking. The M7 has a lot more room. The H7 which will come out soon is the most comfortable for more advanced stuff. We've had to disable numerous features on the original model since they don't fit in the flash...
by kwagyeman
Sat Nov 10, 2018 10:26 pm
Forum: General Topics
Topic: blob detection
Replies: 11
Views: 547

Re: blob detection

Yes.
by kwagyeman
Sat Nov 10, 2018 10:26 pm
Forum: Project Discussion
Topic: Use OpenMV camera for another Python script
Replies: 4
Views: 303

Re: Use OpenMV camera for another Python script

It's just python with an I/O device. It's really not that hard. Just start coding and it will make sense. The scripts pretty much detail what to do.
by kwagyeman
Thu Nov 08, 2018 3:19 pm
Forum: General Topics
Topic: blob detection
Replies: 11
Views: 547

Re: blob detection

Hi, this is just the inverse of the FPS. So, if you're running at 30 FPS then it's 33ms.
by kwagyeman
Wed Nov 07, 2018 12:21 pm
Forum: Technical Discussion
Topic: Cannot detect the uSD
Replies: 3
Views: 217

Re: Cannot detect the uSD

Hmm, can you try a different sd card?
by kwagyeman
Wed Nov 07, 2018 12:20 pm
Forum: Technical Discussion
Topic: assign Image from constant
Replies: 1
Views: 107

Re: assign Image from constant

Mmm... So, keep in mind we didn't really want to implement arbitrary image resizing on the OpenMV Cam because you really don't have a lot of RAM. It's not a desktop PC where you can easily malloc large memory buffers. Anyway, if you'd like to do this use the sensor.alloc_extra_fb() method (see the d...
by kwagyeman
Tue Nov 06, 2018 10:50 pm
Forum: Technical Discussion
Topic: usage
Replies: 9
Views: 295

Re: usage

Yep, on the USB VCP port is shared with the IDE.
by kwagyeman
Tue Nov 06, 2018 12:17 pm
Forum: Technical Discussion
Topic: usage
Replies: 9
Views: 295

Re: usage

Yup, you can do that and there won't be a problem. Keep in mind however that large GND currents can build up so don't do this is a dry environment or there will be large static shocks.
by kwagyeman
Tue Nov 06, 2018 10:44 am
Forum: Project Discussion
Topic: Three lights present
Replies: 9
Views: 326

Re: Three lights present

These two scripts:

https://github.com/openmv/openmv/blob/m ... enmv_fb.py
https://github.com/openmv/openmv/blob/m ... yopenmv.py

They really aren't examples however so much as the original dev tools. That said, they are very straight forward to use.
by kwagyeman
Tue Nov 06, 2018 10:41 am
Forum: General Topics
Topic: OpenMV H7 on NUCLEO-H743ZI board
Replies: 13
Views: 644

Re: OpenMV H7 on NUCLEO-H743ZI board

Yeah, the firmware panics if it can't find a camera.
by kwagyeman
Tue Nov 06, 2018 10:40 am
Forum: General Topics
Topic: openmv can be support EdgeML Bonsai from Microsoft
Replies: 1
Views: 98

Re: openmv can be support EdgeML Bonsai from Microsoft

We support C code... so, modify the C code?
by kwagyeman
Mon Nov 05, 2018 11:08 am
Forum: Project Discussion
Topic: Three lights present
Replies: 9
Views: 326

Re: Three lights present

Are you trying to control the camera from the PC? If so, please use this script:

https://github.com/openmv/openmv/blob/m ... yopenmv.py
by kwagyeman
Mon Nov 05, 2018 10:17 am
Forum: Technical Discussion
Topic: Frame Buffer Quality in IDE
Replies: 2
Views: 85

Re: Frame Buffer Quality in IDE

Yes,

Just do:

Code: Select all

img.compress(quality=95)
As the last time in the while loop.

...

This forces the frame buffer to become a jpg image at 95 percent quality.
by kwagyeman
Mon Nov 05, 2018 10:13 am
Forum: Technical Discussion
Topic: DAC
Replies: 3
Views: 90

Re: DAC

Yeah, you don't need to use it.
by kwagyeman
Mon Nov 05, 2018 12:14 am
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 632

Re: Memory allocation error - comments!?!

Note, you can just use our LAB color code and convert the returned value to RGB...
by kwagyeman
Mon Nov 05, 2018 12:03 am
Forum: Kickstarter Topics
Topic: OpenMV H7
Replies: 14
Views: 1200

Re: OpenMV H7

We don't have external SDRAM. So, it's not like we can do anything with a high res anyway. It's not really our goal. The OV7725 works and has a good supply. So, why switch... That said, the camera module is removable now and we have driver support for that camera so it will work if you make a breako...
by kwagyeman
Mon Nov 05, 2018 12:01 am
Forum: General Topics
Topic: OpenMV H7 on NUCLEO-H743ZI board
Replies: 13
Views: 644

Re: OpenMV H7 on NUCLEO-H743ZI board

We don't support the Nucleo. If you want to try to port our code to one you can. Its more work than it's worth however.

That said you can port the algorithms rather easy.
by kwagyeman
Sun Nov 04, 2018 11:59 pm
Forum: Technical Discussion
Topic: Micropython on M7 and H7
Replies: 2
Views: 105

Re: Micropython on M7 and H7

The board pages on the MicroPython main repo are rather outdated.

We have to do our own dev work to make the M7 and H7 work. If we ever had time we'd love to send upstream patch support but generally we don't have time to do this.
by kwagyeman
Sun Nov 04, 2018 11:58 pm
Forum: Technical Discussion
Topic: DAC
Replies: 3
Views: 90

Re: DAC

The DAC is there for getting object position as an along voltage. It's kinda useless... But, it's something the pixy did so I emulated it.
by kwagyeman
Sun Nov 04, 2018 12:42 pm
Forum: Technical Discussion
Topic: edge detection
Replies: 13
Views: 423

Re: edge detection

Hi, did you try to adjust the filter offset value and kernel size? No algorithm is going to produce the image on the right perfectly. You have to turn different knobs and apply filtering operations until you get the right result. I don't really have time to write code anymore for users. I can just p...
by kwagyeman
Sat Nov 03, 2018 2:34 pm
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 632

Re: Memory allocation error - comments!?!

Try this: def analyzeArea(roi): cameraInit() #initialize the camera sensor.set_windowing(roi) #specify the region of interest sensor.skip_frames(time = 2000) # Wait for settings take effect. img = sensor.snapshot() # Take a picture and return the image. delay(100) rAvg = 0 gAvg = 0 bAvg = 0 #sum the...
by kwagyeman
Sat Nov 03, 2018 1:48 pm
Forum: Project Discussion
Topic: maestro polulu
Replies: 5
Views: 238

Re: maestro polulu

Hi, please see the pixy emulation example scripts.
by kwagyeman
Sat Nov 03, 2018 1:48 pm
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 632

Re: Memory allocation error - comments!?!

That's so much code...

Um, can you point just post the lines that have issues? Where you allocate a lot of RAM?
by kwagyeman
Sat Nov 03, 2018 1:45 pm
Forum: Technical Discussion
Topic: combining binary images with masks
Replies: 1
Views: 109

Re: combining binary images with masks

Thresholds is not a keyword argument. Remove the keyword "thresholds=".
by kwagyeman
Sat Nov 03, 2018 1:43 pm
Forum: Technical Discussion
Topic: edge detection
Replies: 13
Views: 423

Re: edge detection

Hi, please see the filtering examples -> mean filter with adaptive thresholding.
by kwagyeman
Sat Nov 03, 2018 12:25 am
Forum: Kickstarter Topics
Topic: OpenMV H7
Replies: 14
Views: 1200

Re: OpenMV H7

Yeah, I have one on my desk to add LCD support for. Just need to get to it.
by kwagyeman
Fri Nov 02, 2018 11:49 am
Forum: Technical Discussion
Topic: open mv m7, face detection output as NTSC/PAL for vtx
Replies: 1
Views: 84

Re: open mv m7, face detection output as NTSC/PAL for vtx

Um, please contact SingTown. They are one of our Chinese distributors and are working on this.

https://kaizhi-xu.world.taobao.com/
by kwagyeman
Fri Nov 02, 2018 1:21 am
Forum: Technical Discussion
Topic: Assign value to image box
Replies: 3
Views: 121

Re: Assign value to image box

Yeah, you need to allocate a second frame buffer. See the Frame differencing example scripts for how to do this.

Go to advanced search