2017-03-14 23:55:38 -0600 | commented question | Floating point exception when looping and reading images Yep, the scanLines() method is throwing the exception. I am not sure exactly why, but I needed to replace that method that has less issues overally anyways. |
2017-03-14 23:33:04 -0600 | commented question | Floating point exception when looping and reading images Thanks for the suggestion! I tried it out and it's actually quite an improvement. I am still getting a floating point exception, but at least the program will continue running because the script keeps going. Now it seems like I am getting the exception becuase one of the image processing methods is not liking certain values. This also probably means that the image not being loaded is less of the problem, but this method is much better than before. I guess this problem is mostly solved now, since I have a way to ignore the error and just need to figure out how process the images correctly. |
2017-03-14 02:43:16 -0600 | received badge | ● Editor (source) |
2017-03-14 02:43:02 -0600 | asked a question | Floating point exception when looping and reading images I'm building a line following robot with OpenCV (c++), Raspberry Pi, Arduino, and an Arducam. I keep getting a Floating point exception when I decrease the delay time between image scans (at the end of the loop in main(), down to a 1 second delay). A bash script simultaneously captures an image from the Arducam, and the c++ program continuously reads the same image file name that's being written over. At first I thought the exception was thrown because the image file was not finished being written to before it was read, but I wrote the loadImage() method in a way where (I hope) the method would not return until the data is complete. It could be wrong, I am just looking for a way to avoid or ignore the Floating point exception. (more) |