

-----------------------------------

romh

05 Mai 2023 17:47



-----------------------------------

Mi-a ajuns corpul camerei.

Desigur prima intrebare este daca sensorul este intr-adevar imx415 &#8230; Din pozele de mai jos se vede HD415 scris pe placa, in rest nu stiu ce alte repere as putea sa gasesc. E posibil sa fie alt producator sau sa fie ceva asamblat in china si sensorul sa fie chiar cel din descriere. Dat fiind ca a costat 40 euro nu imi bat capul acum.

https://drive.google.com/file/d/1trk9doQvInHS4TSwaPPCWu7fkwXSSEpY/view?usp=share_link
https://drive.google.com/file/d/1oRO3IoPELE38BAkvzFVxHWV0KuqJg94-/view?usp=share_link
https://drive.google.com/file/d/1IFv8yv5Ul5kO3-5DAvO3kbBo4KANO0Bv/view?usp=share_link

La prima vedere are o lentila de 2MP chiar daca sensorul ar trebui sa aiba 8MP. Lentila are o distanta focala de 16mm. Are un inel de blocare asa ca distanta dintre lentila si sensor se regleaza manual. 

Carcasa este una standard pentru camere cctv. Vad ca suportul se potriveste cu un minitrepied pe care il aveam. 

https://drive.google.com/file/d/1CIjbv210XfKLHLwZWGCarBkm1XpkWMzA/view?usp=share_link
https://drive.google.com/file/d/1fQy4E1raeQCg5J9z6PD9RkJhZmxpseeH/view?usp=share_link

Imi fac griji pentru cablul usb care nu este foarte bine asigurat&#8230;. Si daca o sa trag mai mult de el imi imaginez ca o induca zgomot in imagini. O sa incerc sa gasesc niste cleme.

In linux vad ca sunt niste drivere usb numite UVC. 



$ v4l2-ctl --list-formats-ext -d /dev/video2
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'MJPG' (Motion-JPEG, compressed)
		Size: Discrete 1920x1080
			Interval: Discrete 0.017s (60.000 fps)
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 3840x2160
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 352x288
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 424x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x360
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 800x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 800x600
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1024x576
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1280x720
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1600x896
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 2560x1440
			Interval: Discrete 0.033s (30.000 fps)
	[1]: 'YUYV' (YUYV 4:2:2)
		Size: Discrete 1920x1080
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 3840x2160
			Interval: Discrete 1.000s (1.000 fps)
		Size: Discrete 640x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 352x288
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 424x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x360
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 800x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 800x600
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1024x576
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1280x720
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1600x896
			Interval: Discrete 0.100s (10.000 fps)
		Size: Discrete 2560x1440
			Interval: Discrete 1.000s (1.000 fps)



E interesant ca anumite rezolutii au 1 fps. O fi din cauza cablului usb2 sau poate ca trebuie sa selectez aceste rezolutii si formate pt expunere&#8230; O sa aflu in timp.

Si ca sa vedem toate controalele disponibile

$ v4l2-ctl --list-ctrls-menus -d /dev/video2

User Controls

                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=-5 value=51
                       contrast 0x00980901 (int)    : min=0 max=95 step=1 default=1 value=0
                     saturation 0x00980902 (int)    : min=0 max=100 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-2000 max=2000 step=1 default=0 value=0
        white_balance_automatic 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=100 max=300 step=1 default=100 value=100
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=2 (60 Hz)
				0: Disabled
				1: 50 Hz
				2: 60 Hz
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=1 max=7 step=1 default=2 value=2
         backlight_compensation 0x0098091c (int)    : min=0 max=6 step=1 default=4 value=6

Camera Controls

                  auto_exposure 0x009a0901 (menu)   : min=0 max=3 default=3 value=3 (Aperture Priority Mode)
				1: Manual Mode
				3: Aperture Priority Mode
         exposure_time_absolute 0x009a0902 (int)    : min=3 max=2047 step=1 default=166 value=2047 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=1023 step=1 default=0 value=450 flags=inactive
     focus_automatic_continuous 0x009a090c (bool)   : default=0 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=60 step=1 default=0 value=0





La expunere e maxim 2047 &#8230; cred ca astea sunt milisecunde. Ar inseamna sa fac mai multe poze de 2 secunde si sa le stivuiesc. De fapt 1 secunda din cauza framerate-ului doar daca un dezactivez power_line&#8230; Am incercat sa experimentez cu niste setari dar degeaba, nu am vazut decat poate o usoara imbunatatire in luminozitate la camera 100% intunecata.

v4l2-ctl --set-ctrl auto_exposure=1,exposure_time_absolute=2045,brightness=-5,backlight_compensation=6 --device /dev/video2

Am luat niste poze de test cu si fara zoom software prin geam, altfel nu am cum.

https://drive.google.com/file/d/1rgLLvTZltWT7mdZ82W3a9hWB5evREP1q/view?usp=share_link
https://drive.google.com/file/d/1nuhcThuizmfC3yHmtDxfs9P9uFywxE4c/view?usp=share_link

Cred ca o sa command un adaptor, din ce am vazut sunt adaptoare c/cmount la 1.25 inch, de asta am vrut corp de camera cctv. Si da&#8230; nu stiu ce sa fac cu lentila&#8230; Momentan o folosesc pe asta de 2MP, am vazut ca sunt foarte scumpe.  Pentru niste poze simple alb/negru ar trebui sa fie deajuns.



________
https://docs.arducam.com/UVC-Camera/Quick-Start-Guide/

