Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Commit ea431c2

Browse files
committed
Add picamera blocks
1 parent 42653a5 commit ea431c2

File tree

15 files changed

+1353
-13
lines changed

15 files changed

+1353
-13
lines changed

BlockPi/index.html

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,62 @@
958958
<block type="sensehat_get_events"></block>
959959
<block type="sensehat_joystick_pushed"></block>
960960
</category>
961+
<category name="%{BKY_CATPICAMERA}" colour="%{BKY_CAMERA_HUE}">
962+
<block type="camera_enable"></block>
963+
<block type="camera_preview"></block>
964+
<block type="camera_resolution"></block>
965+
<sep gap="8"></sep>
966+
<block type="camera_framerate"></block>
967+
<sep gap="8"></sep>
968+
<block type="camera_flip"></block>
969+
<sep gap="8"></sep>
970+
<block type="camera_rotate"></block>
971+
<block type="camera_image_effect"></block>
972+
<block type="camera_capture">
973+
<value name="NAME">
974+
<shadow type="text">
975+
<field name="TEXT">image</field>
976+
</shadow>
977+
</value>
978+
</block>
979+
<block type="camera_record">
980+
<value name="NAME">
981+
<shadow type="text">
982+
<field name="TEXT">video</field>
983+
</shadow>
984+
</value>
985+
</block>
986+
<sep gap="8"></sep>
987+
<block type="camera_stop_recording"></block>
988+
<block type="camera_web_stream"></block>
989+
<block type="camera_annotate_text">
990+
<value name="TEXT">
991+
<shadow type="text"></shadow>
992+
</value>
993+
</block>
994+
<sep gap="8"></sep>
995+
<block type="camera_annotate_size"></block>
996+
<sep gap="8"></sep>
997+
<block type="camera_annotate_colour"></block>
998+
<label text="%{BKY_CATPICAMERAPRO}"></label>
999+
<block type="camera_meter_mode"></block>
1000+
<sep gap="8"></sep>
1001+
<block type="camera_exposure_mode"></block>
1002+
<sep gap="8"></sep>
1003+
<block type="camera_awb_mode"></block>
1004+
<block type="camera_iso"></block>
1005+
<sep gap="8"></sep>
1006+
<block type="camera_shutter_speed"></block>
1007+
<sep gap="8"></sep>
1008+
<block type="camera_exposure_compensation"></block>
1009+
<block type="camera_brightness"></block>
1010+
<sep gap="8"></sep>
1011+
<block type="camera_sharpness"></block>
1012+
<sep gap="8"></sep>
1013+
<block type="camera_contrast"></block>
1014+
<sep gap="8"></sep>
1015+
<block type="camera_saturation"></block>
1016+
</category>
9611017
</category>
9621018
</xml>
9631019

BlockPi/src/msg/en.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ var MSG = {
2828
catGPIOin: "GPIO IN",
2929
catGPIOout: "GPIO OUT",
3030
catTube: "Digital Tube",
31+
catPicamera: "Picamera",
32+
catPicameraPro: "Professional Mode",
3133
listVariable: "list",
3234
textVariable: "text",
3335
deviceVariable: "device",

BlockPi/src/msg/js/en.js

Lines changed: 106 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ Blockly.Msg["PROCEDURES_HUE"] = "290";
437437
Blockly.Msg["GPIOIN_HUE"] = "180";
438438
Blockly.Msg["GPIOOUT_HUE"] = "0";
439439
Blockly.Msg["SENSEHAT_HUE"] = "40";
440+
Blockly.Msg["CAMERA_HUE"] = "135";
440441

441442
Blockly.Msg["COLOUR_CONVERT_TITLE"] = "convert colour %1 to RGB array"
442443
Blockly.Msg["COLOUR_CONVERT_TOOLTIP"] = "Converts the colour to an array of RGB values(0-255)."
@@ -622,4 +623,108 @@ Blockly.Msg["TUBE_SHOW_TOOLTIP"] = "Displays a text string, no more than 4 chara
622623
Blockly.Msg["TUBE_SCROLL_TITLE"] = "%1 scroll text %2 delay %3 ms"
623624
Blockly.Msg["TUBE_SCROLL_TOOLTIP"] = "Scrolls a text string from right to left with the given delay, 250ms means 4 fps."
624625
Blockly.Msg["TUBE_CLEAR_TITLE"] = "clear %1"
625-
Blockly.Msg["TUBE_CLEAR_TOOLTIP"] = "Clears the digital tube."
626+
Blockly.Msg["TUBE_CLEAR_TOOLTIP"] = "Clears the digital tube."
627+
Blockly.Msg["CAMERA_ENABLE_TITLE"] = "%1 camera"
628+
Blockly.Msg["CAMERA_ENABLE_ENABLE"] = "enable"
629+
Blockly.Msg["CAMERA_ENABLE_STOP"] = "stop"
630+
Blockly.Msg["CAMERA_ENABLE_TOOLTIP"] = "Enables or disables the Picamera module."
631+
Blockly.Msg["CAMERA_PREVIEW_TITLE"] = "%1 preview"
632+
Blockly.Msg["CAMERA_PREVIEW_OPEN"] = "open"
633+
Blockly.Msg["CAMERA_PREVIEW_CLOSE"] = "close"
634+
Blockly.Msg["CAMERA_PREVIEW_TOOLTIP"] = "Opens or closes a preview window for the camera."
635+
Blockly.Msg["CAMERA_CAPTURE_TITLE"] = "capture image %1 . %2"
636+
Blockly.Msg["CAMERA_CAPTURE_TOOLTIP"] = "Captures an image from the camera, storing it in the given path/filename and format."
637+
Blockly.Msg["CAMERA_RECORD_TITLE"] = "record video %1 .h264"
638+
Blockly.Msg["CAMERA_RECORD_TOOLTIP"] = "Starts recording video from the camera, storing it in the given path/filename in h264 format."
639+
Blockly.Msg["CAMERA_STOP_RECORDING_TITLE"] = "stop recording video"
640+
Blockly.Msg["CAMERA_STOP_RECORDING_TOOLTIP"] = "Stops recording video."
641+
Blockly.Msg["CAMERA_WEB_STREAM_TITLE"] = "start web video streaming, port: %1"
642+
Blockly.Msg["CAMERA_WEB_STREAM_TOOLTIP"] = "Starts HTTP video streaming on your RPi ip and given port. Open the link http://your-pi-ip:port/stream.mjpg with any web browser or video player to watch the stream."
643+
Blockly.Msg["CAMERA_RESOLUTION_TITLE"] = "set camera resolution %1 x %2"
644+
Blockly.Msg["CAMERA_RESOLUTION_TOOLTIP"] = "Sets the resolution at which image captures, video recordings, and previews will be captured."
645+
Blockly.Msg["CAMERA_FLIP_TITLE"] = "flip camera %1"
646+
Blockly.Msg["CAMERA_FLIP_H"] = "horizontally"
647+
Blockly.Msg["CAMERA_FLIP_V"] = "vertically"
648+
Blockly.Msg["CAMERA_FLIP_TOOLTIP"] = "Sets whether the camera\'s output is horizontally/vertically flipped."
649+
Blockly.Msg["CAMERA_ROTATE_TITLE"] = "rotate camera %1"
650+
Blockly.Msg["CAMERA_ROTATE_TOOLTIP"] = "Sets the current rotation of the camera\'s image."
651+
Blockly.Msg["CAMERA_FRAMERATE_TITLE"] = "set camera framerate %1"
652+
Blockly.Msg["CAMERA_FRAMERATE_TOOLTIP"] = "Sets the framerate at which video recordings, and previews will run."
653+
Blockly.Msg["CAMERA_ANNOTATE_TEXT_TITLE"] = "add annotation text %1"
654+
Blockly.Msg["CAMERA_ANNOTATE_TEXT_TOOLTIP"] = "Sets a text annotation for all output. Only ASCII characters available, with a limited length of 32 characters."
655+
Blockly.Msg["CAMERA_ANNOTATE_SIZE_TITLE"] = "set annotation size %1"
656+
Blockly.Msg["CAMERA_ANNOTATE_SIZE_TOOLTIP"] = "Sets the size of the annotation text."
657+
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_TITLE"] = "set annotation %1 colour %2"
658+
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_FOREGROUND"] = "foreground"
659+
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_BACKGROUND"] = "background"
660+
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_TOOLTIP"] = "Sets the brightness or the background colour of the annotation text."
661+
Blockly.Msg["CAMERA_ISO_TITLE"] = "set iso %1"
662+
Blockly.Msg["CAMERA_ISO_AUTO"] = "auto"
663+
Blockly.Msg["CAMERA_ISO_TOOLTIP"] = "Sets the apparent ISO setting of the camera."
664+
Blockly.Msg["CAMERA_SHUTTER_SPEED_TITLE"] = "set shutter speed %1 μs"
665+
Blockly.Msg["CAMERA_SHUTTER_SPEED_TOOLTIP"] = "Sets the shutter speed of the camera in microseconds."
666+
Blockly.Msg["CAMERA_BRIGHTNESS_TITLE"] = "set image brightness %1"
667+
Blockly.Msg["CAMERA_BRIGHTNESS_TOOLTIP"] = "Sets the brightness setting of the camera(0~100)."
668+
Blockly.Msg["CAMERA_SHARPNESS_TITLE"] = "set image sharpness %1"
669+
Blockly.Msg["CAMERA_SHARPNESS_TOOLTIP"] = "Sets the sharpness setting of the camera(-100~100)."
670+
Blockly.Msg["CAMERA_CONTRAST_TITLE"] = "set image contrast %1"
671+
Blockly.Msg["CAMERA_CONTRAST_TOOLTIP"] = "Sets the contrast setting of the camera(-100~100)."
672+
Blockly.Msg["CAMERA_SATURATION_TITLE"] = "set image saturation %1"
673+
Blockly.Msg["CAMERA_SATURATION_TOOLTIP"] = "Sets the saturation setting of the camera(-100~100)."
674+
Blockly.Msg["CAMERA_AWB_MODE_TITLE"] = "set awb mode %1"
675+
Blockly.Msg["CAMERA_AWB_MODE_AUTO"] = "auto"
676+
Blockly.Msg["CAMERA_AWB_MODE_SUNLIGHT"] = "sunlight"
677+
Blockly.Msg["CAMERA_AWB_MODE_CLOUDY"] = "cloudy"
678+
Blockly.Msg["CAMERA_AWB_MODE_SHADE"] = "shade"
679+
Blockly.Msg["CAMERA_AWB_MODE_TUNGSTEN"] = "tungsten"
680+
Blockly.Msg["CAMERA_AWB_MODE_INCANDESCENT"] = "incandescent"
681+
Blockly.Msg["CAMERA_AWB_MODE_FLUORESCENT"] = "fluorescent"
682+
Blockly.Msg["CAMERA_AWB_MODE_FLASH"] = "flash"
683+
Blockly.Msg["CAMERA_AWB_MODE_HORIZON"] = "horizon"
684+
Blockly.Msg["CAMERA_AWB_MODE_TOOLTIP"] = "Sets the auto-white-balance mode of the camera."
685+
Blockly.Msg["CAMERA_EXPOSURE_COMPENSATION_TITLE"] = "set exposure compensation %1"
686+
Blockly.Msg["CAMERA_EXPOSURE_COMPENSATION_TOOLTIP"] = "Sets the exposure compensation level of the camera(-25~25)."
687+
Blockly.Msg["CAMERA_EXPOSURE_MODE_TITLE"] = "set exposure mode %1"
688+
Blockly.Msg["CAMERA_EXPOSURE_MODE_AUTO"] = "auto"
689+
Blockly.Msg["CAMERA_EXPOSURE_MODE_NIGHT"] = "night"
690+
Blockly.Msg["CAMERA_EXPOSURE_MODE_NIGHTPREVIEW"] = "night preview"
691+
Blockly.Msg["CAMERA_EXPOSURE_MODE_BACKLIGHT"] = "backlight"
692+
Blockly.Msg["CAMERA_EXPOSURE_MODE_SPOTLIGHT"] = "spotlight"
693+
Blockly.Msg["CAMERA_EXPOSURE_MODE_SPORTS"] = "sports"
694+
Blockly.Msg["CAMERA_EXPOSURE_MODE_SNOW"] = "snow"
695+
Blockly.Msg["CAMERA_EXPOSURE_MODE_BEACH"] = "beach"
696+
Blockly.Msg["CAMERA_EXPOSURE_MODE_VERYLONG"] = "very long"
697+
Blockly.Msg["CAMERA_EXPOSURE_MODE_FIXEDFPS"] = "fixed fps"
698+
Blockly.Msg["CAMERA_EXPOSURE_MODE_ANTISHAKE"] = "antishake"
699+
Blockly.Msg["CAMERA_EXPOSURE_MODE_FIREWORKS"] = "fireworks"
700+
Blockly.Msg["CAMERA_EXPOSURE_MODE_TOOLTIP"] = "Sets the exposure mode of the camera."
701+
Blockly.Msg["CAMERA_METER_MODE_TITLE"] = "set metering mode %1"
702+
Blockly.Msg["CAMERA_METER_MODE_AVERAGE"] = "average"
703+
Blockly.Msg["CAMERA_METER_MODE_SPOT"] = "spot"
704+
Blockly.Msg["CAMERA_METER_MODE_BACKLIT"] = "backlit"
705+
Blockly.Msg["CAMERA_METER_MODE_MATRIX"] = "matrix"
706+
Blockly.Msg["CAMERA_METER_MODE_TOOLTIP"] = "Sets the metering mode of the camera."
707+
Blockly.Msg["CAMERA_IMAGE_EFFECT_TITLE"] = "set image effect %1"
708+
Blockly.Msg["CAMERA_IMAGE_EFFECT_NONE"] = "none"
709+
Blockly.Msg["CAMERA_IMAGE_EFFECT_NEGATIVE"] = "negative"
710+
Blockly.Msg["CAMERA_IMAGE_EFFECT_SOLARIZE"] = "solarize"
711+
Blockly.Msg["CAMERA_IMAGE_EFFECT_SKETCH"] = "sketch"
712+
Blockly.Msg["CAMERA_IMAGE_EFFECT_DENOISE"] = "denoise"
713+
Blockly.Msg["CAMERA_IMAGE_EFFECT_EMBOSS"] = "emboss"
714+
Blockly.Msg["CAMERA_IMAGE_EFFECT_OILPAINT"] = "oilpaint"
715+
Blockly.Msg["CAMERA_IMAGE_EFFECT_HATCH"] = "hatch"
716+
Blockly.Msg["CAMERA_IMAGE_EFFECT_GPEN"] = "G pen"
717+
Blockly.Msg["CAMERA_IMAGE_EFFECT_PASTEL"] = "pastel"
718+
Blockly.Msg["CAMERA_IMAGE_EFFECT_WATERCOLOR"] = "watercolour"
719+
Blockly.Msg["CAMERA_IMAGE_EFFECT_FILM"] = "film"
720+
Blockly.Msg["CAMERA_IMAGE_EFFECT_BLUR"] = "blur"
721+
Blockly.Msg["CAMERA_IMAGE_EFFECT_SATURATION"] = "saturation"
722+
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORSWAP"] = "colour swap"
723+
Blockly.Msg["CAMERA_IMAGE_EFFECT_WASHEDOUT"] = "washed out"
724+
Blockly.Msg["CAMERA_IMAGE_EFFECT_POSTERISE"] = "posterise"
725+
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORPOINT"] = "colour point"
726+
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORBALANCE"] = "colour balance"
727+
Blockly.Msg["CAMERA_IMAGE_EFFECT_CARTOON"] = "cartoon"
728+
Blockly.Msg["CAMERA_IMAGE_EFFECT_DEINTERLACE1"] = "deinterlace1"
729+
Blockly.Msg["CAMERA_IMAGE_EFFECT_DEINTERLACE2"] = "deinterlace2"
730+
Blockly.Msg["CAMERA_IMAGE_EFFECT_TOOLTIP"] = "Sets the current image effect applied by the camera."

BlockPi/src/msg/js/zh-hans.js

Lines changed: 106 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ Blockly.Msg["PROCEDURES_HUE"] = "290";
437437
Blockly.Msg["GPIOIN_HUE"] = "180";
438438
Blockly.Msg["GPIOOUT_HUE"] = "0";
439439
Blockly.Msg["SENSEHAT_HUE"] = "40";
440+
Blockly.Msg["CAMERA_HUE"] = "135";
440441

441442
Blockly.Msg["COLOUR_CONVERT_TITLE"] = "将颜色 %1 转成RGB列表"
442443
Blockly.Msg["COLOUR_CONVERT_TOOLTIP"] = "将该颜色转化成RGB数值(0-255)组成的列表。"
@@ -622,4 +623,108 @@ Blockly.Msg["TUBE_SHOW_TOOLTIP"] = "显示字符串,不多于4个字符。"
622623
Blockly.Msg["TUBE_SCROLL_TITLE"] = "%1滚动文本%2延时%3毫秒"
623624
Blockly.Msg["TUBE_SCROLL_TOOLTIP"] = "按给定延时从右往左滚动显示字符串, 250毫秒对应每秒4帧。"
624625
Blockly.Msg["TUBE_CLEAR_TITLE"] = "清空数码管%1"
625-
Blockly.Msg["TUBE_CLEAR_TOOLTIP"] = "清空数码管显示的内容。"
626+
Blockly.Msg["TUBE_CLEAR_TOOLTIP"] = "清空数码管显示的内容。"
627+
Blockly.Msg["CAMERA_ENABLE_TITLE"] = "%1摄像头"
628+
Blockly.Msg["CAMERA_ENABLE_ENABLE"] = "启用"
629+
Blockly.Msg["CAMERA_ENABLE_STOP"] = "停用"
630+
Blockly.Msg["CAMERA_ENABLE_TOOLTIP"] = "启用或停用摄像头模块。"
631+
Blockly.Msg["CAMERA_PREVIEW_TITLE"] = "%1预览"
632+
Blockly.Msg["CAMERA_PREVIEW_OPEN"] = "打开"
633+
Blockly.Msg["CAMERA_PREVIEW_CLOSE"] = "关闭"
634+
Blockly.Msg["CAMERA_PREVIEW_TOOLTIP"] = "打开或关闭摄像头预览窗口。"
635+
Blockly.Msg["CAMERA_CAPTURE_TITLE"] = "拍摄照片%1.%2"
636+
Blockly.Msg["CAMERA_CAPTURE_TOOLTIP"] = "用摄像头拍摄一张照片,以指定的格式保存在指定的路径/文件名。"
637+
Blockly.Msg["CAMERA_RECORD_TITLE"] = "摄制视频%1.h264"
638+
Blockly.Msg["CAMERA_RECORD_TOOLTIP"] = "用摄像头开始拍摄视频,以h264格式保存在指定的路径/文件名。"
639+
Blockly.Msg["CAMERA_STOP_RECORDING_TITLE"] = "停止摄制视频"
640+
Blockly.Msg["CAMERA_STOP_RECORDING_TOOLTIP"] = "停止拍摄视频。"
641+
Blockly.Msg["CAMERA_WEB_STREAM_TITLE"] = "开始网络视频直播,端口:%1"
642+
Blockly.Msg["CAMERA_WEB_STREAM_TOOLTIP"] = "在你的树莓派IP地址和指定端口开启HTTP视频直播流。使用任意浏览器或者视频播放器打开链接http://树莓派IP:端口/stream.mjpg来观看直播。"
643+
Blockly.Msg["CAMERA_RESOLUTION_TITLE"] = "设置摄像头分辨率%1x%2"
644+
Blockly.Msg["CAMERA_RESOLUTION_TOOLTIP"] = "设置拍照、录像和预览的分辨率。"
645+
Blockly.Msg["CAMERA_FLIP_TITLE"] = "%1翻转摄像头"
646+
Blockly.Msg["CAMERA_FLIP_H"] = "水平"
647+
Blockly.Msg["CAMERA_FLIP_V"] = "垂直"
648+
Blockly.Msg["CAMERA_FLIP_TOOLTIP"] = "设置是否水平/垂直翻转摄像头的输出。"
649+
Blockly.Msg["CAMERA_ROTATE_TITLE"] = "旋转摄像头%1"
650+
Blockly.Msg["CAMERA_ROTATE_TOOLTIP"] = "设置当前摄像头图像的旋转方向。"
651+
Blockly.Msg["CAMERA_FRAMERATE_TITLE"] = "设置摄像头帧率%1"
652+
Blockly.Msg["CAMERA_FRAMERATE_TOOLTIP"] = "设置录像和预览的帧率(FPS)。"
653+
Blockly.Msg["CAMERA_ANNOTATE_TEXT_TITLE"] = "添加注释文本%1"
654+
Blockly.Msg["CAMERA_ANNOTATE_TEXT_TOOLTIP"] = "为所有输出添加一段注释文本。只允许最多32个ASCII字符。"
655+
Blockly.Msg["CAMERA_ANNOTATE_SIZE_TITLE"] = "设置注释大小%1"
656+
Blockly.Msg["CAMERA_ANNOTATE_SIZE_TOOLTIP"] = "设置注释文本的字体大小。"
657+
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_TITLE"] = "设置注释%1颜色%2"
658+
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_FOREGROUND"] = "文本"
659+
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_BACKGROUND"] = "背景"
660+
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_TOOLTIP"] = "设置注释文本的亮度或者背景的颜色。"
661+
Blockly.Msg["CAMERA_ISO_TITLE"] = "设置ISO%1"
662+
Blockly.Msg["CAMERA_ISO_AUTO"] = "自动"
663+
Blockly.Msg["CAMERA_ISO_TOOLTIP"] = "设置摄像头的ISO数值。"
664+
Blockly.Msg["CAMERA_SHUTTER_SPEED_TITLE"] = "设置快门速度%1微秒"
665+
Blockly.Msg["CAMERA_SHUTTER_SPEED_TOOLTIP"] = "设置摄像头的快门速度,单位微秒。"
666+
Blockly.Msg["CAMERA_BRIGHTNESS_TITLE"] = "设置图像亮度%1"
667+
Blockly.Msg["CAMERA_BRIGHTNESS_TOOLTIP"] = "设置摄像头的亮度设置(0~100)。"
668+
Blockly.Msg["CAMERA_SHARPNESS_TITLE"] = "设置图像锐度%1"
669+
Blockly.Msg["CAMERA_SHARPNESS_TOOLTIP"] = "设置摄像头的锐度设置(-100~100)。"
670+
Blockly.Msg["CAMERA_CONTRAST_TITLE"] = "设置图像对比度%1"
671+
Blockly.Msg["CAMERA_CONTRAST_TOOLTIP"] = "设置摄像头的对比度设置(-100~100)。"
672+
Blockly.Msg["CAMERA_SATURATION_TITLE"] = "设置图像饱和度%1"
673+
Blockly.Msg["CAMERA_SATURATION_TOOLTIP"] = "设置摄像头的饱和度设置(-100~100)。"
674+
Blockly.Msg["CAMERA_AWB_MODE_TITLE"] = "设置自动白平衡模式%1"
675+
Blockly.Msg["CAMERA_AWB_MODE_AUTO"] = "自动"
676+
Blockly.Msg["CAMERA_AWB_MODE_SUNLIGHT"] = "日光"
677+
Blockly.Msg["CAMERA_AWB_MODE_CLOUDY"] = "多云"
678+
Blockly.Msg["CAMERA_AWB_MODE_SHADE"] = "阴影"
679+
Blockly.Msg["CAMERA_AWB_MODE_TUNGSTEN"] = "钨丝灯"
680+
Blockly.Msg["CAMERA_AWB_MODE_INCANDESCENT"] = "白炽灯"
681+
Blockly.Msg["CAMERA_AWB_MODE_FLUORESCENT"] = "荧光灯"
682+
Blockly.Msg["CAMERA_AWB_MODE_FLASH"] = "闪光灯"
683+
Blockly.Msg["CAMERA_AWB_MODE_HORIZON"] = "地平线"
684+
Blockly.Msg["CAMERA_AWB_MODE_TOOLTIP"] = "设置摄像头的自动白平衡模式。"
685+
Blockly.Msg["CAMERA_EXPOSURE_COMPENSATION_TITLE"] = "设置曝光补偿%1"
686+
Blockly.Msg["CAMERA_EXPOSURE_COMPENSATION_TOOLTIP"] = "设置摄像头的曝光补偿水平(-25~25)。"
687+
Blockly.Msg["CAMERA_EXPOSURE_MODE_TITLE"] = "设置曝光模式%1"
688+
Blockly.Msg["CAMERA_EXPOSURE_MODE_AUTO"] = "自动"
689+
Blockly.Msg["CAMERA_EXPOSURE_MODE_NIGHT"] = "夜间"
690+
Blockly.Msg["CAMERA_EXPOSURE_MODE_NIGHTPREVIEW"] = "夜间预览"
691+
Blockly.Msg["CAMERA_EXPOSURE_MODE_BACKLIGHT"] = "逆光"
692+
Blockly.Msg["CAMERA_EXPOSURE_MODE_SPOTLIGHT"] = "聚光灯"
693+
Blockly.Msg["CAMERA_EXPOSURE_MODE_SPORTS"] = "运动"
694+
Blockly.Msg["CAMERA_EXPOSURE_MODE_SNOW"] = "雪景"
695+
Blockly.Msg["CAMERA_EXPOSURE_MODE_BEACH"] = "沙滩"
696+
Blockly.Msg["CAMERA_EXPOSURE_MODE_VERYLONG"] = "长曝光"
697+
Blockly.Msg["CAMERA_EXPOSURE_MODE_FIXEDFPS"] = "固定帧率"
698+
Blockly.Msg["CAMERA_EXPOSURE_MODE_ANTISHAKE"] = "防抖"
699+
Blockly.Msg["CAMERA_EXPOSURE_MODE_FIREWORKS"] = "烟火"
700+
Blockly.Msg["CAMERA_EXPOSURE_MODE_TOOLTIP"] = "设置摄像头的曝光模式。"
701+
Blockly.Msg["CAMERA_METER_MODE_TITLE"] = "设置测光模式%1"
702+
Blockly.Msg["CAMERA_METER_MODE_AVERAGE"] = "平均测光"
703+
Blockly.Msg["CAMERA_METER_MODE_SPOT"] = "点测光"
704+
Blockly.Msg["CAMERA_METER_MODE_BACKLIT"] = "模拟背光"
705+
Blockly.Msg["CAMERA_METER_MODE_MATRIX"] = "矩阵测光"
706+
Blockly.Msg["CAMERA_METER_MODE_TOOLTIP"] = "设置摄像头的测光模式。"
707+
Blockly.Msg["CAMERA_IMAGE_EFFECT_TITLE"] = "设置图像特效%1"
708+
Blockly.Msg["CAMERA_IMAGE_EFFECT_NONE"] = "无"
709+
Blockly.Msg["CAMERA_IMAGE_EFFECT_NEGATIVE"] = "负片"
710+
Blockly.Msg["CAMERA_IMAGE_EFFECT_SOLARIZE"] = "过曝"
711+
Blockly.Msg["CAMERA_IMAGE_EFFECT_SKETCH"] = "素描"
712+
Blockly.Msg["CAMERA_IMAGE_EFFECT_DENOISE"] = "降噪"
713+
Blockly.Msg["CAMERA_IMAGE_EFFECT_EMBOSS"] = "浮雕"
714+
Blockly.Msg["CAMERA_IMAGE_EFFECT_OILPAINT"] = "油画"
715+
Blockly.Msg["CAMERA_IMAGE_EFFECT_HATCH"] = "网格"
716+
Blockly.Msg["CAMERA_IMAGE_EFFECT_GPEN"] = "G笔"
717+
Blockly.Msg["CAMERA_IMAGE_EFFECT_PASTEL"] = "粉彩"
718+
Blockly.Msg["CAMERA_IMAGE_EFFECT_WATERCOLOR"] = "水彩"
719+
Blockly.Msg["CAMERA_IMAGE_EFFECT_FILM"] = "胶片"
720+
Blockly.Msg["CAMERA_IMAGE_EFFECT_BLUR"] = "模糊"
721+
Blockly.Msg["CAMERA_IMAGE_EFFECT_SATURATION"] = "饱和"
722+
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORSWAP"] = "换色"
723+
Blockly.Msg["CAMERA_IMAGE_EFFECT_WASHEDOUT"] = "冲刷"
724+
Blockly.Msg["CAMERA_IMAGE_EFFECT_POSTERISE"] = "色彩分离"
725+
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORPOINT"] = "重点色"
726+
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORBALANCE"] = "色彩均衡"
727+
Blockly.Msg["CAMERA_IMAGE_EFFECT_CARTOON"] = "卡通"
728+
Blockly.Msg["CAMERA_IMAGE_EFFECT_DEINTERLACE1"] = "反交错1"
729+
Blockly.Msg["CAMERA_IMAGE_EFFECT_DEINTERLACE2"] = "反交错2"
730+
Blockly.Msg["CAMERA_IMAGE_EFFECT_TOOLTIP"] = "设置摄像头应用的图像特效。"

0 commit comments

Comments
 (0)