定制排序模型开发指南

快速入门 用户需要实现 CustomModel 继承 BaseModel:框架会通过build函数触发构图,具体调用步骤如下:def build(self):self.build_placeholder()self.build_model()self.setup_global_step()self.reg_loss()self.loss_op()self.update_op...

蓝牙 Mesh OTA SDK

[self connectDevice:bleDevice];[self.bleDevice setBLEDeviceDelegate:self];} } if!self.bleDevice){[self startScan:timeOut];} } else {[self startScan:timeOut];} }/开始蓝牙GATT扫描方法-(void)startScan:(NSTimeInterval)timeOut ...

日期组件

self.apPickerView.tag=1000;[self.view addSubview:self.apPickerView];[self.apPickerView show];成员方法创建的 pickerView_apPickerView2=[[AUDatePicker alloc]initWithFrame:CGRectMake(0,200,200,200)withTitle:nil];apPickerView2....

加载组件

[self.view addSubview:self.loadingView];self.loadingView2=[[AULoadingView alloc]init];self.loadingView2.center=CGPointMake(200,150);self.loadingView2.isShowProgressPer=YES;self.loadingView2.isShowLoadingText=YES;[self.view...

功能说明

[self testBaseFaceBeauty];[self testAdvancedFaceBeauty];[self testFaceMakeup];[self testFaceShape];[self testBodyShape];[self testFilter];[self testSticker];[self testGreenScreenOrBlueScreenCutout];[self testAutoFilter];...

索引组件

self.tableView.dataSource=self;[self.view addSubview:self.tableView];self.bladeView=[[AUBladeView alloc]initWithFrame:CGRectMake(self.view.frame.size.width-16.0,80,16.0,self.view.bounds.size.height-60)];self.bladeView....

Python SDK使用说明

data class DescribeCastersRequest(RpcRequest):def_init_(self):RpcRequest._init_(self,'live','2016-11-01','DescribeCasters','live')self.set_method('POST')if hasattr(self,"endpoint_map"):setattr(self,"endpoint_map",endpoint_...

视频裁剪

设置输入路径,输出路径,裁剪时间/设置视频的输入和输出文件路径 self.crop.inputPath=[self.class resourcePath:@"input.mp4"];self.crop.outputPath=[self.class resourcePath:@"output.mp4"];设置裁剪的时间起点和时间终点,单位:秒 ...

功能说明

}-(void)testBackgroundCutout {/开启智能抠像前,可以根据需要设置其性能模式,包括自动模式、最佳画质模式、平衡模式、最佳性能模式,如果不设置则默认为自动模式/[self.beautyEngine setSegmentPerformanceMode:kQueenSegmentPMAuto];...

视频裁剪

设置输入路径,输出路径,裁剪时间/设置视频的输入和输出文件路径 self.crop.inputPath=[self.class resourcePath:@"input.mp4"];self.crop.outputPath=[self.class resourcePath:@"output.mp4"];设置裁剪的时间起点和时间终点,单位:秒 ...

Mac端集成美颜特效SDK

[self testBaseFaceBeauty];[self testAdvancedFaceBeauty];[self testFaceMakeup];[self testFaceShape];[self testBodyShape];[self testFilter];[self testSticker];[self testGreenScreenOrBlueScreenCutout];[self testAutoFilter];...

上下文

def_init_(self,account_id,request_id,credentials,function_meta,service_meta,region,tracing):self.credentials=credentials self.function=function_meta self.request_id=request_id self.service=service_meta self.region=region ...

基础录制

if(self.recordState=RecorderStateFinish){ if(self.aliyunRecorder.clipManager.duration>=self.aliyunRecorder.clipManager.minDuration){[self.aliyunRecorder finishRecording];} else { self.recordState=RecorderStatePreviewing;} ...

管理自定义步骤

import AppiumLib class clicksByxpath():#interface to set appium params def setAppium(self,driver=None,step=None):self.driver=driver self.step=step self.xpath=step.get("xpath")self.times=step.get("times")def run(self):#add ...

iOS端集成美颜特效SDK

if(makeupWhole){/设置美妆整妆效果,资源路径也可以是资源的绝对路径[self.beautyEngine setMakeupWithType:kQueenBeautyMakeupTypeWhole paths:@[@"makeup/whole/huoli.2.31.png"]blendType:kQueenBeautyBlendLabMix];设置美妆整妆效果的...

上下文

def_init_(self,account_id,request_id,credentials,function_meta,service_meta,region,tracing):self.credentials=credentials self.function=function_meta self.request_id=request_id self.service=service_meta self.region=region ...

MRTC 配合 MPIDRSSDK 的使用说明

self.ttsPlaying|(self.customAudioDataIndex+320>(int)[self.customAudioData length])){[self stopPublishCustomAudio];return;} NSRange range=NSMakeRange(self.customAudioDataIndex,320);NSData*data=[self.customAudioData ...

基础录制

if(self.recordState=RecorderStateFinish){ if(self.aliyunRecorder.clipManager.duration>=self.aliyunRecorder.clipManager.minDuration){[self.aliyunRecorder finishRecording];} else { self.recordState=RecorderStatePreviewing;} ...

网关与子设备

[self.subChannel logout:^(BOOL succeeded,NSError*_Nullable error){ LinkkitLogDebug(@"subDevice logout error:%",error);dispatch_async(dispatch_get_main_queue(),^{ weakSelf.lableSubState.text="未上线;[weakSelf ims_...

批量删除作业

steps:self.close()def close(self):print('')print(self.infoDone)self.i=0 class DeleteJob(threading.Thread):def_init_(self,client,jobQueue,error_queue):threading.Thread._init_(self)self.jobQueue=jobQueue self.error_queue=...

上拉刷新控件

self.tableView.delegate=self;self.tableView.backgroundColor=[UIColor colorWithRGB:0xf5f5f9];self.tableView.separatorColor=[UIColor colorWithRGB:0xdddddd];[self.view addSubview:self.tableView];if(_refreshHeaderView=nil){ ...

iOS SDK集成

主播创建房间/*实现AliRtcEngineDelegate 监听回调*/_engine=[AliRtcEngine sharedInstance:self extras:extras];设置频道模式[self.engine setChannelProfile:AliRtcInteractivelive];设置用户角色[self.engine setClientRole:...

HTTP Endpoint示例代码

Headers:%s ReqBody:%s"%(self.headers,self.req_body))elif not self.validateBody(self.req_body,self.msg,self.msg_type):res_code=400 res_content="Invalid Notify Message"logger.warning("Invalid Notify Message!Headers:%s ...

ANYDATA

MEMBER FUNCTION AccessChar(self IN AnyData)RETURN CHAR,MEMBER FUNCTION AccessVarchar(self IN AnyData)RETURN VARCHAR,MEMBER FUNCTION AccessVarchar2(self IN AnyData)RETURN VARCHAR2,MEMBER FUNCTION AccessNVarchar(self IN ...

iOS SDK集成

功能时序图 主播创建房间/*实现AliRtcEngineDelegate 监听回调*/_engine=[AliRtcEngine sharedInstance:self extras:extras];设置频道模式[self.engine setChannelProfile:AliRtcInteractivelive];设置用户角色[self.engine setClientRole:...

多源录制

[self.aliyunRecorder.config setBgMusicWithFile:filePath startTime:0.0/从0秒开始 duration:MIN(self.aliyunRecorder.clipManager.maxDuration,audioDuration)];移除背景音乐[self.aliyunRecorder.config removeBgMusic];水印/生成水印-...

远程双录

IDRSRecordRemote 远程双录模式[MPIDRSSDK initWithRecordType:IDRSRecordRemote userId:userId appId:AppId packageName:PackageName AK:Ak SK:Sk model:type addDelegate:self success:^(id responseObject){ self.idrs=responseObject;...

断点续传下载

if(self.progress){ self.progress(data.length,self.totalReceivedContentLength,self.checkpoint.totalExpectedLength);} }@end DownloadRequest定义#import<Foundation/Foundation.h>typedef void(^DownloadProgressBlock)(int64_t ...

多源录制

[self.aliyunRecorder.config setBgMusicWithFile:filePath startTime:0.0/从0秒开始 duration:MIN(self.aliyunRecorder.clipManager.maxDuration,audioDuration)];移除背景音乐[self.aliyunRecorder.config removeBgMusic];水印/生成水印-...

自定义启动加载页

if(self){ self.backgroundColor=[UIColor grayColor];self.titleLabel.backgroundColor=[UIColor redColor];self.titleLabel.font=[UIFont boldSystemFontOfSize:8];self.iconImageView.backgroundColor=[UIColor blueColor];self....

本地双录 SDK

是否横屏录制 self.processSdk=[[IDRSFlow alloc]initIDRSWithDelegate:self Config:config success:^(NSString*string,JsonBlock jsonBlock){/接收流程Json/string:流程Json-需要自行添加人脸图片及文本中姓名的替换/事例见:Demo NSLog...

ECS主机状态变化事件的自动化运维

coding:utf-8-*-import json from mns.mns_exception import MNSExceptionBase import logging from mns.account import Account from.import Conf class MNSClient(object):def_init_(self):self.account=Account(Conf.endpoint,Conf....

物模型通信

def_init_(self):self._linkkit=linkkit.LinkKit(host_name="cn-shanghai",product_key="a18wP*",device_name="LightSwitch",device_secret="uwMTmVAMnGGHaAkqmeDY6cHxxB*")配置物模型文件 用户需要从云端控制台下载物模型文件,该文件需要...

iOS SDK集成

功能时序图 主播创建房间/*实现AliRtcEngineDelegate 监听回调*/_engine=[AliRtcEngine sharedInstance:self extras:extras];设置频道模式[self.engine setChannelProfile:AliRtcInteractivelive];设置用户角色[self.engine setClientRole:...

选图组件视觉与交互封装

[self.view addSubview:self.picker];[self.view addSubview:self.button];self.view.backgroundColor=RGB(0xEBEBEB);}-(void)imagePickerAddButtonClick:(AUImagePickerSkeleton*)imagePicker { AUImagePickerData*data=...

ECS主机状态变化事件的自动化运维

coding:utf-8-*-import json from mns.mns_exception import MNSExceptionBase import logging from mns.account import Account from.import Conf class MNSClient(object):def_init_(self):self.account=Account(Conf.endpoint,Conf....

iOS

[self.engine setChannelProfile:AliRtcChannelProfileInteractivelive];在教师加入频道之前设置为非自动发布和自动订阅模式。[self.engine setAutoPublish:NO withAutoSubscribe:YES];在教师加入频道之前设置角色为...

不支持AGGREGATE关键字

member function ODCIAggregateIterate(self IN OUT secmax_context,value IN number)return number is begin if value>self.firmax then self.secmax:=self.firmax;self.firmax:=value;elsif value>self.secmax then self.secmax:=value;...

定制 H5 页面导航栏

返回区域[self.target addEventListener:kNBEvent_Scene_NavigationItem_Left_Back_Create_Before withListener:self useCapture:NO];[self.target addEventListener:kNBEvent_Scene_NavigationItem_Left_Back_Create_After withListener:...

下拉刷新控件

self.tableView.delegate=self;self.tableView.backgroundColor=[UIColor colorWithRGB:0xf5f5f9];self.tableView.separatorColor=[UIColor colorWithRGB:0xdddddd];[self.view addSubview:self.tableView];if(_refreshHeaderView=nil){ ...
共有38条 < 1 2 3 4 ... 38 >
跳转至: GO
产品推荐
云服务器 安全管家服务 安全中心
这些文档可能帮助您
弹性公网IP 短信服务 人工智能平台 PAI 金融分布式架构 对象存储 物联网平台
新人特惠 爆款特惠 最新活动 免费试用