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

Commit

Permalink
Add picamera blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
alienzhangyw committed May 8, 2020
1 parent 42653a5 commit ea431c2
Show file tree
Hide file tree
Showing 15 changed files with 1,353 additions and 13 deletions.
56 changes: 56 additions & 0 deletions BlockPi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,62 @@
<block type="sensehat_get_events"></block>
<block type="sensehat_joystick_pushed"></block>
</category>
<category name="%{BKY_CATPICAMERA}" colour="%{BKY_CAMERA_HUE}">
<block type="camera_enable"></block>
<block type="camera_preview"></block>
<block type="camera_resolution"></block>
<sep gap="8"></sep>
<block type="camera_framerate"></block>
<sep gap="8"></sep>
<block type="camera_flip"></block>
<sep gap="8"></sep>
<block type="camera_rotate"></block>
<block type="camera_image_effect"></block>
<block type="camera_capture">
<value name="NAME">
<shadow type="text">
<field name="TEXT">image</field>
</shadow>
</value>
</block>
<block type="camera_record">
<value name="NAME">
<shadow type="text">
<field name="TEXT">video</field>
</shadow>
</value>
</block>
<sep gap="8"></sep>
<block type="camera_stop_recording"></block>
<block type="camera_web_stream"></block>
<block type="camera_annotate_text">
<value name="TEXT">
<shadow type="text"></shadow>
</value>
</block>
<sep gap="8"></sep>
<block type="camera_annotate_size"></block>
<sep gap="8"></sep>
<block type="camera_annotate_colour"></block>
<label text="%{BKY_CATPICAMERAPRO}"></label>
<block type="camera_meter_mode"></block>
<sep gap="8"></sep>
<block type="camera_exposure_mode"></block>
<sep gap="8"></sep>
<block type="camera_awb_mode"></block>
<block type="camera_iso"></block>
<sep gap="8"></sep>
<block type="camera_shutter_speed"></block>
<sep gap="8"></sep>
<block type="camera_exposure_compensation"></block>
<block type="camera_brightness"></block>
<sep gap="8"></sep>
<block type="camera_sharpness"></block>
<sep gap="8"></sep>
<block type="camera_contrast"></block>
<sep gap="8"></sep>
<block type="camera_saturation"></block>
</category>
</category>
</xml>

Expand Down
2 changes: 2 additions & 0 deletions BlockPi/src/msg/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ var MSG = {
catGPIOin: "GPIO IN",
catGPIOout: "GPIO OUT",
catTube: "Digital Tube",
catPicamera: "Picamera",
catPicameraPro: "Professional Mode",
listVariable: "list",
textVariable: "text",
deviceVariable: "device",
Expand Down
107 changes: 106 additions & 1 deletion BlockPi/src/msg/js/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ Blockly.Msg["PROCEDURES_HUE"] = "290";
Blockly.Msg["GPIOIN_HUE"] = "180";
Blockly.Msg["GPIOOUT_HUE"] = "0";
Blockly.Msg["SENSEHAT_HUE"] = "40";
Blockly.Msg["CAMERA_HUE"] = "135";

Blockly.Msg["COLOUR_CONVERT_TITLE"] = "convert colour %1 to RGB array"
Blockly.Msg["COLOUR_CONVERT_TOOLTIP"] = "Converts the colour to an array of RGB values(0-255)."
Expand Down Expand Up @@ -622,4 +623,108 @@ Blockly.Msg["TUBE_SHOW_TOOLTIP"] = "Displays a text string, no more than 4 chara
Blockly.Msg["TUBE_SCROLL_TITLE"] = "%1 scroll text %2 delay %3 ms"
Blockly.Msg["TUBE_SCROLL_TOOLTIP"] = "Scrolls a text string from right to left with the given delay, 250ms means 4 fps."
Blockly.Msg["TUBE_CLEAR_TITLE"] = "clear %1"
Blockly.Msg["TUBE_CLEAR_TOOLTIP"] = "Clears the digital tube."
Blockly.Msg["TUBE_CLEAR_TOOLTIP"] = "Clears the digital tube."
Blockly.Msg["CAMERA_ENABLE_TITLE"] = "%1 camera"
Blockly.Msg["CAMERA_ENABLE_ENABLE"] = "enable"
Blockly.Msg["CAMERA_ENABLE_STOP"] = "stop"
Blockly.Msg["CAMERA_ENABLE_TOOLTIP"] = "Enables or disables the Picamera module."
Blockly.Msg["CAMERA_PREVIEW_TITLE"] = "%1 preview"
Blockly.Msg["CAMERA_PREVIEW_OPEN"] = "open"
Blockly.Msg["CAMERA_PREVIEW_CLOSE"] = "close"
Blockly.Msg["CAMERA_PREVIEW_TOOLTIP"] = "Opens or closes a preview window for the camera."
Blockly.Msg["CAMERA_CAPTURE_TITLE"] = "capture image %1 . %2"
Blockly.Msg["CAMERA_CAPTURE_TOOLTIP"] = "Captures an image from the camera, storing it in the given path/filename and format."
Blockly.Msg["CAMERA_RECORD_TITLE"] = "record video %1 .h264"
Blockly.Msg["CAMERA_RECORD_TOOLTIP"] = "Starts recording video from the camera, storing it in the given path/filename in h264 format."
Blockly.Msg["CAMERA_STOP_RECORDING_TITLE"] = "stop recording video"
Blockly.Msg["CAMERA_STOP_RECORDING_TOOLTIP"] = "Stops recording video."
Blockly.Msg["CAMERA_WEB_STREAM_TITLE"] = "start web video streaming, port: %1"
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."
Blockly.Msg["CAMERA_RESOLUTION_TITLE"] = "set camera resolution %1 x %2"
Blockly.Msg["CAMERA_RESOLUTION_TOOLTIP"] = "Sets the resolution at which image captures, video recordings, and previews will be captured."
Blockly.Msg["CAMERA_FLIP_TITLE"] = "flip camera %1"
Blockly.Msg["CAMERA_FLIP_H"] = "horizontally"
Blockly.Msg["CAMERA_FLIP_V"] = "vertically"
Blockly.Msg["CAMERA_FLIP_TOOLTIP"] = "Sets whether the camera\'s output is horizontally/vertically flipped."
Blockly.Msg["CAMERA_ROTATE_TITLE"] = "rotate camera %1"
Blockly.Msg["CAMERA_ROTATE_TOOLTIP"] = "Sets the current rotation of the camera\'s image."
Blockly.Msg["CAMERA_FRAMERATE_TITLE"] = "set camera framerate %1"
Blockly.Msg["CAMERA_FRAMERATE_TOOLTIP"] = "Sets the framerate at which video recordings, and previews will run."
Blockly.Msg["CAMERA_ANNOTATE_TEXT_TITLE"] = "add annotation text %1"
Blockly.Msg["CAMERA_ANNOTATE_TEXT_TOOLTIP"] = "Sets a text annotation for all output. Only ASCII characters available, with a limited length of 32 characters."
Blockly.Msg["CAMERA_ANNOTATE_SIZE_TITLE"] = "set annotation size %1"
Blockly.Msg["CAMERA_ANNOTATE_SIZE_TOOLTIP"] = "Sets the size of the annotation text."
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_TITLE"] = "set annotation %1 colour %2"
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_FOREGROUND"] = "foreground"
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_BACKGROUND"] = "background"
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_TOOLTIP"] = "Sets the brightness or the background colour of the annotation text."
Blockly.Msg["CAMERA_ISO_TITLE"] = "set iso %1"
Blockly.Msg["CAMERA_ISO_AUTO"] = "auto"
Blockly.Msg["CAMERA_ISO_TOOLTIP"] = "Sets the apparent ISO setting of the camera."
Blockly.Msg["CAMERA_SHUTTER_SPEED_TITLE"] = "set shutter speed %1 μs"
Blockly.Msg["CAMERA_SHUTTER_SPEED_TOOLTIP"] = "Sets the shutter speed of the camera in microseconds."
Blockly.Msg["CAMERA_BRIGHTNESS_TITLE"] = "set image brightness %1"
Blockly.Msg["CAMERA_BRIGHTNESS_TOOLTIP"] = "Sets the brightness setting of the camera(0~100)."
Blockly.Msg["CAMERA_SHARPNESS_TITLE"] = "set image sharpness %1"
Blockly.Msg["CAMERA_SHARPNESS_TOOLTIP"] = "Sets the sharpness setting of the camera(-100~100)."
Blockly.Msg["CAMERA_CONTRAST_TITLE"] = "set image contrast %1"
Blockly.Msg["CAMERA_CONTRAST_TOOLTIP"] = "Sets the contrast setting of the camera(-100~100)."
Blockly.Msg["CAMERA_SATURATION_TITLE"] = "set image saturation %1"
Blockly.Msg["CAMERA_SATURATION_TOOLTIP"] = "Sets the saturation setting of the camera(-100~100)."
Blockly.Msg["CAMERA_AWB_MODE_TITLE"] = "set awb mode %1"
Blockly.Msg["CAMERA_AWB_MODE_AUTO"] = "auto"
Blockly.Msg["CAMERA_AWB_MODE_SUNLIGHT"] = "sunlight"
Blockly.Msg["CAMERA_AWB_MODE_CLOUDY"] = "cloudy"
Blockly.Msg["CAMERA_AWB_MODE_SHADE"] = "shade"
Blockly.Msg["CAMERA_AWB_MODE_TUNGSTEN"] = "tungsten"
Blockly.Msg["CAMERA_AWB_MODE_INCANDESCENT"] = "incandescent"
Blockly.Msg["CAMERA_AWB_MODE_FLUORESCENT"] = "fluorescent"
Blockly.Msg["CAMERA_AWB_MODE_FLASH"] = "flash"
Blockly.Msg["CAMERA_AWB_MODE_HORIZON"] = "horizon"
Blockly.Msg["CAMERA_AWB_MODE_TOOLTIP"] = "Sets the auto-white-balance mode of the camera."
Blockly.Msg["CAMERA_EXPOSURE_COMPENSATION_TITLE"] = "set exposure compensation %1"
Blockly.Msg["CAMERA_EXPOSURE_COMPENSATION_TOOLTIP"] = "Sets the exposure compensation level of the camera(-25~25)."
Blockly.Msg["CAMERA_EXPOSURE_MODE_TITLE"] = "set exposure mode %1"
Blockly.Msg["CAMERA_EXPOSURE_MODE_AUTO"] = "auto"
Blockly.Msg["CAMERA_EXPOSURE_MODE_NIGHT"] = "night"
Blockly.Msg["CAMERA_EXPOSURE_MODE_NIGHTPREVIEW"] = "night preview"
Blockly.Msg["CAMERA_EXPOSURE_MODE_BACKLIGHT"] = "backlight"
Blockly.Msg["CAMERA_EXPOSURE_MODE_SPOTLIGHT"] = "spotlight"
Blockly.Msg["CAMERA_EXPOSURE_MODE_SPORTS"] = "sports"
Blockly.Msg["CAMERA_EXPOSURE_MODE_SNOW"] = "snow"
Blockly.Msg["CAMERA_EXPOSURE_MODE_BEACH"] = "beach"
Blockly.Msg["CAMERA_EXPOSURE_MODE_VERYLONG"] = "very long"
Blockly.Msg["CAMERA_EXPOSURE_MODE_FIXEDFPS"] = "fixed fps"
Blockly.Msg["CAMERA_EXPOSURE_MODE_ANTISHAKE"] = "antishake"
Blockly.Msg["CAMERA_EXPOSURE_MODE_FIREWORKS"] = "fireworks"
Blockly.Msg["CAMERA_EXPOSURE_MODE_TOOLTIP"] = "Sets the exposure mode of the camera."
Blockly.Msg["CAMERA_METER_MODE_TITLE"] = "set metering mode %1"
Blockly.Msg["CAMERA_METER_MODE_AVERAGE"] = "average"
Blockly.Msg["CAMERA_METER_MODE_SPOT"] = "spot"
Blockly.Msg["CAMERA_METER_MODE_BACKLIT"] = "backlit"
Blockly.Msg["CAMERA_METER_MODE_MATRIX"] = "matrix"
Blockly.Msg["CAMERA_METER_MODE_TOOLTIP"] = "Sets the metering mode of the camera."
Blockly.Msg["CAMERA_IMAGE_EFFECT_TITLE"] = "set image effect %1"
Blockly.Msg["CAMERA_IMAGE_EFFECT_NONE"] = "none"
Blockly.Msg["CAMERA_IMAGE_EFFECT_NEGATIVE"] = "negative"
Blockly.Msg["CAMERA_IMAGE_EFFECT_SOLARIZE"] = "solarize"
Blockly.Msg["CAMERA_IMAGE_EFFECT_SKETCH"] = "sketch"
Blockly.Msg["CAMERA_IMAGE_EFFECT_DENOISE"] = "denoise"
Blockly.Msg["CAMERA_IMAGE_EFFECT_EMBOSS"] = "emboss"
Blockly.Msg["CAMERA_IMAGE_EFFECT_OILPAINT"] = "oilpaint"
Blockly.Msg["CAMERA_IMAGE_EFFECT_HATCH"] = "hatch"
Blockly.Msg["CAMERA_IMAGE_EFFECT_GPEN"] = "G pen"
Blockly.Msg["CAMERA_IMAGE_EFFECT_PASTEL"] = "pastel"
Blockly.Msg["CAMERA_IMAGE_EFFECT_WATERCOLOR"] = "watercolour"
Blockly.Msg["CAMERA_IMAGE_EFFECT_FILM"] = "film"
Blockly.Msg["CAMERA_IMAGE_EFFECT_BLUR"] = "blur"
Blockly.Msg["CAMERA_IMAGE_EFFECT_SATURATION"] = "saturation"
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORSWAP"] = "colour swap"
Blockly.Msg["CAMERA_IMAGE_EFFECT_WASHEDOUT"] = "washed out"
Blockly.Msg["CAMERA_IMAGE_EFFECT_POSTERISE"] = "posterise"
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORPOINT"] = "colour point"
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORBALANCE"] = "colour balance"
Blockly.Msg["CAMERA_IMAGE_EFFECT_CARTOON"] = "cartoon"
Blockly.Msg["CAMERA_IMAGE_EFFECT_DEINTERLACE1"] = "deinterlace1"
Blockly.Msg["CAMERA_IMAGE_EFFECT_DEINTERLACE2"] = "deinterlace2"
Blockly.Msg["CAMERA_IMAGE_EFFECT_TOOLTIP"] = "Sets the current image effect applied by the camera."
107 changes: 106 additions & 1 deletion BlockPi/src/msg/js/zh-hans.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ Blockly.Msg["PROCEDURES_HUE"] = "290";
Blockly.Msg["GPIOIN_HUE"] = "180";
Blockly.Msg["GPIOOUT_HUE"] = "0";
Blockly.Msg["SENSEHAT_HUE"] = "40";
Blockly.Msg["CAMERA_HUE"] = "135";

Blockly.Msg["COLOUR_CONVERT_TITLE"] = "将颜色 %1 转成RGB列表"
Blockly.Msg["COLOUR_CONVERT_TOOLTIP"] = "将该颜色转化成RGB数值(0-255)组成的列表。"
Expand Down Expand Up @@ -622,4 +623,108 @@ Blockly.Msg["TUBE_SHOW_TOOLTIP"] = "显示字符串,不多于4个字符。"
Blockly.Msg["TUBE_SCROLL_TITLE"] = "%1滚动文本%2延时%3毫秒"
Blockly.Msg["TUBE_SCROLL_TOOLTIP"] = "按给定延时从右往左滚动显示字符串, 250毫秒对应每秒4帧。"
Blockly.Msg["TUBE_CLEAR_TITLE"] = "清空数码管%1"
Blockly.Msg["TUBE_CLEAR_TOOLTIP"] = "清空数码管显示的内容。"
Blockly.Msg["TUBE_CLEAR_TOOLTIP"] = "清空数码管显示的内容。"
Blockly.Msg["CAMERA_ENABLE_TITLE"] = "%1摄像头"
Blockly.Msg["CAMERA_ENABLE_ENABLE"] = "启用"
Blockly.Msg["CAMERA_ENABLE_STOP"] = "停用"
Blockly.Msg["CAMERA_ENABLE_TOOLTIP"] = "启用或停用摄像头模块。"
Blockly.Msg["CAMERA_PREVIEW_TITLE"] = "%1预览"
Blockly.Msg["CAMERA_PREVIEW_OPEN"] = "打开"
Blockly.Msg["CAMERA_PREVIEW_CLOSE"] = "关闭"
Blockly.Msg["CAMERA_PREVIEW_TOOLTIP"] = "打开或关闭摄像头预览窗口。"
Blockly.Msg["CAMERA_CAPTURE_TITLE"] = "拍摄照片%1.%2"
Blockly.Msg["CAMERA_CAPTURE_TOOLTIP"] = "用摄像头拍摄一张照片,以指定的格式保存在指定的路径/文件名。"
Blockly.Msg["CAMERA_RECORD_TITLE"] = "摄制视频%1.h264"
Blockly.Msg["CAMERA_RECORD_TOOLTIP"] = "用摄像头开始拍摄视频,以h264格式保存在指定的路径/文件名。"
Blockly.Msg["CAMERA_STOP_RECORDING_TITLE"] = "停止摄制视频"
Blockly.Msg["CAMERA_STOP_RECORDING_TOOLTIP"] = "停止拍摄视频。"
Blockly.Msg["CAMERA_WEB_STREAM_TITLE"] = "开始网络视频直播,端口:%1"
Blockly.Msg["CAMERA_WEB_STREAM_TOOLTIP"] = "在你的树莓派IP地址和指定端口开启HTTP视频直播流。使用任意浏览器或者视频播放器打开链接http://树莓派IP:端口/stream.mjpg来观看直播。"
Blockly.Msg["CAMERA_RESOLUTION_TITLE"] = "设置摄像头分辨率%1x%2"
Blockly.Msg["CAMERA_RESOLUTION_TOOLTIP"] = "设置拍照、录像和预览的分辨率。"
Blockly.Msg["CAMERA_FLIP_TITLE"] = "%1翻转摄像头"
Blockly.Msg["CAMERA_FLIP_H"] = "水平"
Blockly.Msg["CAMERA_FLIP_V"] = "垂直"
Blockly.Msg["CAMERA_FLIP_TOOLTIP"] = "设置是否水平/垂直翻转摄像头的输出。"
Blockly.Msg["CAMERA_ROTATE_TITLE"] = "旋转摄像头%1"
Blockly.Msg["CAMERA_ROTATE_TOOLTIP"] = "设置当前摄像头图像的旋转方向。"
Blockly.Msg["CAMERA_FRAMERATE_TITLE"] = "设置摄像头帧率%1"
Blockly.Msg["CAMERA_FRAMERATE_TOOLTIP"] = "设置录像和预览的帧率(FPS)。"
Blockly.Msg["CAMERA_ANNOTATE_TEXT_TITLE"] = "添加注释文本%1"
Blockly.Msg["CAMERA_ANNOTATE_TEXT_TOOLTIP"] = "为所有输出添加一段注释文本。只允许最多32个ASCII字符。"
Blockly.Msg["CAMERA_ANNOTATE_SIZE_TITLE"] = "设置注释大小%1"
Blockly.Msg["CAMERA_ANNOTATE_SIZE_TOOLTIP"] = "设置注释文本的字体大小。"
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_TITLE"] = "设置注释%1颜色%2"
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_FOREGROUND"] = "文本"
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_BACKGROUND"] = "背景"
Blockly.Msg["CAMERA_ANNOTATE_COLOUR_TOOLTIP"] = "设置注释文本的亮度或者背景的颜色。"
Blockly.Msg["CAMERA_ISO_TITLE"] = "设置ISO%1"
Blockly.Msg["CAMERA_ISO_AUTO"] = "自动"
Blockly.Msg["CAMERA_ISO_TOOLTIP"] = "设置摄像头的ISO数值。"
Blockly.Msg["CAMERA_SHUTTER_SPEED_TITLE"] = "设置快门速度%1微秒"
Blockly.Msg["CAMERA_SHUTTER_SPEED_TOOLTIP"] = "设置摄像头的快门速度,单位微秒。"
Blockly.Msg["CAMERA_BRIGHTNESS_TITLE"] = "设置图像亮度%1"
Blockly.Msg["CAMERA_BRIGHTNESS_TOOLTIP"] = "设置摄像头的亮度设置(0~100)。"
Blockly.Msg["CAMERA_SHARPNESS_TITLE"] = "设置图像锐度%1"
Blockly.Msg["CAMERA_SHARPNESS_TOOLTIP"] = "设置摄像头的锐度设置(-100~100)。"
Blockly.Msg["CAMERA_CONTRAST_TITLE"] = "设置图像对比度%1"
Blockly.Msg["CAMERA_CONTRAST_TOOLTIP"] = "设置摄像头的对比度设置(-100~100)。"
Blockly.Msg["CAMERA_SATURATION_TITLE"] = "设置图像饱和度%1"
Blockly.Msg["CAMERA_SATURATION_TOOLTIP"] = "设置摄像头的饱和度设置(-100~100)。"
Blockly.Msg["CAMERA_AWB_MODE_TITLE"] = "设置自动白平衡模式%1"
Blockly.Msg["CAMERA_AWB_MODE_AUTO"] = "自动"
Blockly.Msg["CAMERA_AWB_MODE_SUNLIGHT"] = "日光"
Blockly.Msg["CAMERA_AWB_MODE_CLOUDY"] = "多云"
Blockly.Msg["CAMERA_AWB_MODE_SHADE"] = "阴影"
Blockly.Msg["CAMERA_AWB_MODE_TUNGSTEN"] = "钨丝灯"
Blockly.Msg["CAMERA_AWB_MODE_INCANDESCENT"] = "白炽灯"
Blockly.Msg["CAMERA_AWB_MODE_FLUORESCENT"] = "荧光灯"
Blockly.Msg["CAMERA_AWB_MODE_FLASH"] = "闪光灯"
Blockly.Msg["CAMERA_AWB_MODE_HORIZON"] = "地平线"
Blockly.Msg["CAMERA_AWB_MODE_TOOLTIP"] = "设置摄像头的自动白平衡模式。"
Blockly.Msg["CAMERA_EXPOSURE_COMPENSATION_TITLE"] = "设置曝光补偿%1"
Blockly.Msg["CAMERA_EXPOSURE_COMPENSATION_TOOLTIP"] = "设置摄像头的曝光补偿水平(-25~25)。"
Blockly.Msg["CAMERA_EXPOSURE_MODE_TITLE"] = "设置曝光模式%1"
Blockly.Msg["CAMERA_EXPOSURE_MODE_AUTO"] = "自动"
Blockly.Msg["CAMERA_EXPOSURE_MODE_NIGHT"] = "夜间"
Blockly.Msg["CAMERA_EXPOSURE_MODE_NIGHTPREVIEW"] = "夜间预览"
Blockly.Msg["CAMERA_EXPOSURE_MODE_BACKLIGHT"] = "逆光"
Blockly.Msg["CAMERA_EXPOSURE_MODE_SPOTLIGHT"] = "聚光灯"
Blockly.Msg["CAMERA_EXPOSURE_MODE_SPORTS"] = "运动"
Blockly.Msg["CAMERA_EXPOSURE_MODE_SNOW"] = "雪景"
Blockly.Msg["CAMERA_EXPOSURE_MODE_BEACH"] = "沙滩"
Blockly.Msg["CAMERA_EXPOSURE_MODE_VERYLONG"] = "长曝光"
Blockly.Msg["CAMERA_EXPOSURE_MODE_FIXEDFPS"] = "固定帧率"
Blockly.Msg["CAMERA_EXPOSURE_MODE_ANTISHAKE"] = "防抖"
Blockly.Msg["CAMERA_EXPOSURE_MODE_FIREWORKS"] = "烟火"
Blockly.Msg["CAMERA_EXPOSURE_MODE_TOOLTIP"] = "设置摄像头的曝光模式。"
Blockly.Msg["CAMERA_METER_MODE_TITLE"] = "设置测光模式%1"
Blockly.Msg["CAMERA_METER_MODE_AVERAGE"] = "平均测光"
Blockly.Msg["CAMERA_METER_MODE_SPOT"] = "点测光"
Blockly.Msg["CAMERA_METER_MODE_BACKLIT"] = "模拟背光"
Blockly.Msg["CAMERA_METER_MODE_MATRIX"] = "矩阵测光"
Blockly.Msg["CAMERA_METER_MODE_TOOLTIP"] = "设置摄像头的测光模式。"
Blockly.Msg["CAMERA_IMAGE_EFFECT_TITLE"] = "设置图像特效%1"
Blockly.Msg["CAMERA_IMAGE_EFFECT_NONE"] = "无"
Blockly.Msg["CAMERA_IMAGE_EFFECT_NEGATIVE"] = "负片"
Blockly.Msg["CAMERA_IMAGE_EFFECT_SOLARIZE"] = "过曝"
Blockly.Msg["CAMERA_IMAGE_EFFECT_SKETCH"] = "素描"
Blockly.Msg["CAMERA_IMAGE_EFFECT_DENOISE"] = "降噪"
Blockly.Msg["CAMERA_IMAGE_EFFECT_EMBOSS"] = "浮雕"
Blockly.Msg["CAMERA_IMAGE_EFFECT_OILPAINT"] = "油画"
Blockly.Msg["CAMERA_IMAGE_EFFECT_HATCH"] = "网格"
Blockly.Msg["CAMERA_IMAGE_EFFECT_GPEN"] = "G笔"
Blockly.Msg["CAMERA_IMAGE_EFFECT_PASTEL"] = "粉彩"
Blockly.Msg["CAMERA_IMAGE_EFFECT_WATERCOLOR"] = "水彩"
Blockly.Msg["CAMERA_IMAGE_EFFECT_FILM"] = "胶片"
Blockly.Msg["CAMERA_IMAGE_EFFECT_BLUR"] = "模糊"
Blockly.Msg["CAMERA_IMAGE_EFFECT_SATURATION"] = "饱和"
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORSWAP"] = "换色"
Blockly.Msg["CAMERA_IMAGE_EFFECT_WASHEDOUT"] = "冲刷"
Blockly.Msg["CAMERA_IMAGE_EFFECT_POSTERISE"] = "色彩分离"
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORPOINT"] = "重点色"
Blockly.Msg["CAMERA_IMAGE_EFFECT_COLORBALANCE"] = "色彩均衡"
Blockly.Msg["CAMERA_IMAGE_EFFECT_CARTOON"] = "卡通"
Blockly.Msg["CAMERA_IMAGE_EFFECT_DEINTERLACE1"] = "反交错1"
Blockly.Msg["CAMERA_IMAGE_EFFECT_DEINTERLACE2"] = "反交错2"
Blockly.Msg["CAMERA_IMAGE_EFFECT_TOOLTIP"] = "设置摄像头应用的图像特效。"
Loading

0 comments on commit ea431c2

Please sign in to comment.