Added missing file
Also, I tried using pipe for communication between raspiraw and my algorithm and it turned out to be extremely effective, both fast, reliable and simple to implement.
Search found 22 matches
- Wed May 29, 2019 2:00 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
- Wed May 29, 2019 1:59 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
That's interesting. *q++ = (k>255 ? 255 : k) makes bright areas in image even brighter. If lighting is moderate, its fine (image 1-1.pgm), if its too light, big parts of image become completely white (1-2.pgm). *q++ = (k >> 2) makes image darker (2.pgm) if lighting is moderate or normal if lighting ...
- Wed May 29, 2019 8:10 am
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Sure, here's the .pgm picture. Smartphone picture is on imgur, as its "too large" for attachment: https://imgur.com/a/ArVKsi7
The white flagpole is glitched.
The white flagpole is glitched.
- Wed May 29, 2019 6:26 am
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Yes, i did it like this: static void callback(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer) { static int count = 0; vcos_log_error("Buffer %p returned, filled %d, timestamp %llu, flags %04X", buffer, buffer->length, buffer->pts, buffer->flags); if (running) { RASPIRAW_PARAMS_T *cfg = (R...
- Tue May 28, 2019 7:56 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Hello again. After testing the system with 320x200 .pgm output I got two more questions: 1) The camera works well with moderate lighting, but some bright objects (for example, sunlit white paper box) appear as a mess of black and white zones, making feature extraction impossible. Is it possible to f...
- Tue May 21, 2019 5:01 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Great, thank you, it outputs greyscale now. It works fine on less than 200 fps, then images begin to appear "torn apart" at lower section, with higher FPS "tear" goes higher as well, with part of next image visible below. Is it possible to fix this or its caused by camera's senso...
- Tue May 21, 2019 2:03 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
I did everything like this: static void callback(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer) { static int count = 0; vcos_log_error("Buffer %p returned, filled %d, timestamp %llu, flags %04X", buffer, buffer->length, buffer->pts, buffer->flags); if (running) { RASPIRAW_PARAMS_T *cfg =...
- Mon May 20, 2019 6:52 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
I want to use raspiraw output for feature extraction. Currently extraction algorithm uses dcraw to convert raw frame to ppm, which is then processed by opencv, but dcraw is a bit slow, especially with higher resolutions, so I wondered if its possible to use raw directly. Tried to create Mat with dat...
- Mon May 20, 2019 2:00 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Thanks. Is there any way to use .raw data in openCV?
- Mon May 20, 2019 6:19 am
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
I probably phrased question the wrong way. I meant if it is possible to obtain .raw image that can be immediately converted by dcraw without the need of "cat hd0.32k"?
- Sun May 19, 2019 7:12 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Is it possible to output files without .32k header?
- Sat May 18, 2019 10:07 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
I tried adding b/w conversion to the callback method, but I still get coloured images. What could be the reason for this? static void callback(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer) { static int count = 0; vcos_log_error("Buffer %p returned, filled %d, timestamp %llu, flags %04X"...
- Fri May 17, 2019 11:54 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Thanks. Where should I put the code to output black and white frames? In callback() method?
- Fri May 17, 2019 10:55 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
I have seen your post regarding usage of raspiraw for robot guidance and decided to build a turret robot using Lego NXT motors and RPI, that will just spin in one place and "scan" surroundings with camera. I made an algorithm using findContours from OpenCV (it seems to be much faster than ...
- Thu May 16, 2019 2:08 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Hello again. I have some questions on Raspiraw. 1) Is it possible to capture greyscale/binary images with Raspiraw? 2) Is it possible to output ppm/png files? P.S. I tested it outside during bright sunny day in 640x240, and resulting frames are of quite high quality. This may be because NoIR doesn't...
- Wed May 15, 2019 12:43 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
OK, thanks.
By the way, what does "unexpected and of file" mean in raw2ogg2anim? When I get this warning, half of the screen in .ogg video becomes kind of underprocessed.
By the way, what does "unexpected and of file" mean in raw2ogg2anim? When I get this warning, half of the screen in .ogg video becomes kind of underprocessed.
- Wed May 15, 2019 11:38 am
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Is it possible to record at 250-350 fps without bright light? I wanted to film birds outside with hi-speed camera, will natural lightning suffice?
- Wed May 15, 2019 9:14 am
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Captured frames are extremely bright now - is it because of incorrect exposure time?
- Wed May 15, 2019 8:52 am
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Tried v2 tools, same problem as before - cut:tstamps.csv: no such file or directory, ls: cannot access '/dev/shm/out.'.raw": no such file or directory. It also has some kind of syntax error on line 14 - operand expected after error token. However, raspiraw is working fine now, getting correct a...
- Tue May 14, 2019 11:56 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Re: Raspiraw problems with NoIR V2
Thanks. Will try to use V2 tools and see if it works.
P.S. Mouse trap looks amazing! What else did you record with hi-speed camera?
P.S. Mouse trap looks amazing! What else did you record with hi-speed camera?
- Tue May 14, 2019 8:25 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
- Tue May 14, 2019 6:04 pm
- Forum: Camera board
- Topic: Raspiraw problems with NoIR V2
- Replies: 43
- Views: 3515
Raspiraw problems with NoIR V2
I installed Raspiraw on my RPI 3B+ and experienced some problems with high-speed video capture: 1. No matter what resolution and FPS I set in ./raspiraw command, FPS never exceeds 243 (randomly fluctuates between 235-242), with values lower than 243 setting is fine. Note: I check for fps both via fr...