This article corresponds to Part 2 of here. If you are interested in the content, I would appreciate it if you could see other parts. (Writing sequentially ...)
--Last time (hardware preparation), we finally succeeded in starting the watching camera using the long-sought Rasberry Pi! ――But a problem is discovered. What should I do: thinking: --Let's sort out the repair points.
I made it a specification to acquire an image once every few seconds, but sometimes the image was blacked out or an image with only a part of the angle of view stretched was acquired.
I used Python3's Opencv-python
library to capture camera footage, but the behavior may not be within the desired update interval.
When I tried running the system on a notebook PC, the phenomenon was not reproduced, so I thought it was a hardware factor → performance problem.
(We did not verify the factors any further)
As for the system configuration, we made it a specification to browse camera images by running an HTTP server on Raspberry Pi and accessing it from a smartphone etc. on hand, but when accessing from a smartphone, the response until the page is loaded Is unusually slow. (About 10 to 20 seconds)
When I tried running the system on a notebook PC, I didn't reproduce the phenomenon, so I thought it was a hardware factor → a performance problem. Currently, I use OpenCV only to get still images from the camera, so I think there are many points for improvement ... but I feel like I shouldn't touch it. Was: cry:
There were two problems.
--Because the brightness and white balance are readjusted each time an image is acquired, there are many unnecessary changes in the image between frames. As a result, it is difficult to see the movements of the child who really wants to pay attention.
--The image update rate is fixed (1 second), but especially when it is dark, the brightness and white balance adjustments are not finished properly at that time, and only dark images can be taken. (For example, if you use the standard Raspberry Pi command raspistill
to get a still image in the same environment, you can get an image with appropriate brightness.)
For the former, the image acquisition setting is fixed (calibration is not performed each time), and for the latter, the calibration mode is implemented.
item | Correspondence |
---|---|
Performance improvement | All I want to do is get still images and HTTP server, so implement it with minimum specifications |
Image brightness optimization | Fixed image acquisition settings and implementation of calibration mode |
The former has already been remade from scratch ...! ** If I remake it anyway, should I make it in another language I'm studying so that I can learn new things ...? I decided to refine it in Go language (continued). ** **
Recommended Posts