ricardojlrufino / anyka_v380ipcam_experiments

Scripts and hacks for Anyka V380 / AK3918 IP camera
47 stars 13 forks source link

Take snapshot on stock rootfs #12

Open sergeibit opened 11 months ago

sergeibit commented 11 months ago

First of all, thanks for your work! It's amazing that there's someone doing this much with such a low cost camera.

Secondly, I need to take regular snapshots for a timelapse for a school project, and I'm looking for a way to dump a frame to a bmp/jpg/png/whatever. All the rest (telnet, scripting, etc) is already done, just need a way to dump an image.

I have found some binaries compatible with the camera, such as curl, wget, httpd, etc, but I can't find anything related with image dump.

Do you have any solution for this?

P.S.: The one shared here https://github.com/ricardojlrufino/anyka_v380ipcam_experiments/tree/master/apps/ak_snapshot wont work (libs and clib different than stock system?). besides that, it seems it will create a webserver and serve the snapshot over http request. I'm looking for a simpler solution, to just dump the frame to the sdcard without any http server request involved.

Again, the work you are doing is very appreciated!

Kind regards

sergeibit commented 11 months ago

By the way, https://github.com/ricardojlrufino/anyka_v380ipcam_experiments/tree/master/apps/ak_snapshot seems simple enough to adapt and rebuild for my needing. I'll give a shot and if I have success I'll share with you in a near future. Thanks!

sergeibit commented 11 months ago

Ok, got it built, but when I try to run the app, I can't get past the ak_vi_match_sensor.

I always get the error: [isp_cfg_get_sensor_id:299] cannot get sensor id, check your camera driver

I tried some conf files I have in /mnt/mtd, and also tried the conf file you have in the repository, but none of them work. [check_data:225] /mnt/mtd/isp_gc1034_quanjing.conf is not need file!

How do you find or extract the proper isp*.conf file?